Class: Wx::SF::CrossBarCircleArrow
- Inherits:
 - 
      CircleArrow
      
        
- Object
 - ArrowBase
 - LineArrow
 - FilledArrow
 - CircleArrow
 - Wx::SF::CrossBarCircleArrow
 
 
- Defined in:
 - lib/wx/shapes/arrows/cross_bar_circle_arrow.rb
 
Overview
Class extends the Wx::CircleArrow class and encapsulates circle arrow shapes with a crossbar.
Constant Summary collapse
- RADIUS =
          
Default circle radius.
 4
Class Method Summary collapse
Instance Method Summary collapse
- 
  
    
      #draw(from, to, dc)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Draw arrow shape at the end of a virtual line.
 - 
  
    
      #initialize(parent = nil)  ⇒ CrossBarCircleArrow 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
Constructor.
 - #scale ⇒ Object protected
 
Methods inherited from CircleArrow
Methods inherited from FilledArrow
Methods inherited from LineArrow
#get_pen, #get_pen_width, #set_parent_shape, #set_pen
Methods inherited from ArrowBase
#get_parent_shape, #set_parent_shape, #translate_arrow
Constructor Details
#initialize(parent = nil) ⇒ CrossBarCircleArrow
Constructor
      24 25 26 27  | 
    
      # File 'lib/wx/shapes/arrows/cross_bar_circle_arrow.rb', line 24 def initialize(parent=nil) super scale end  | 
  
Class Method Details
Instance Method Details
#draw(from, to, dc) ⇒ Object
Draw arrow shape at the end of a virtual line.
      44 45 46 47 48 49 50 51 52  | 
    
      # File 'lib/wx/shapes/arrows/cross_bar_circle_arrow.rb', line 44 def draw(from, to, dc) dc.with_pen(pen) do |dc| , , = translate_arrow(line, from, to) dc.draw_line(, ) dc.draw_line(, to.to_point) to = end super(from, to, dc) end  | 
  
#scale ⇒ Object (protected)
      34 35 36 37  | 
    
      # File 'lib/wx/shapes/arrows/cross_bar_circle_arrow.rb', line 34 def scale @line = nil super end  |