Class: Wx::SF::CrossBarProngArrow
- Inherits:
 - 
      ProngArrow
      
        
- Object
 - ArrowBase
 - LineArrow
 - OpenArrow
 - ProngArrow
 - Wx::SF::CrossBarProngArrow
 
 
- Defined in:
 - lib/wx/shapes/arrows/cross_bar_prong_arrow.rb
 
Overview
Class extends the Wx::ProngArrow class and encapsulates arrow shape consisting of single two lines bisecting before the end of the parent line shape with a crossbar at the intersection point.
Class Method Summary collapse
Instance Method Summary collapse
- 
  
    
      #draw(from, to, dc)  ⇒ Wx::Point 
    
    
  
  
  
  
  
  
  
  
  
    
Draw arrow shape at the end of a virtual line.
 - #scale ⇒ Object protected
 
Methods inherited from OpenArrow
Methods inherited from LineArrow
#get_pen, #get_pen_width, #initialize, #set_parent_shape, #set_pen
Methods inherited from ArrowBase
#get_parent_shape, #initialize, #set_parent_shape, #translate_arrow
Constructor Details
This class inherits a constructor from Wx::SF::OpenArrow
Class Method Details
Instance Method Details
#draw(from, to, dc) ⇒ Wx::Point
Draw arrow shape at the end of a virtual line.
      36 37 38 39 40 41 42 43 44 45  | 
    
      # File 'lib/wx/shapes/arrows/cross_bar_prong_arrow.rb', line 36 def draw(from, to, dc) to = super dc.with_pen(pen) do |dc| , , = translate_arrow(line, from, to) dc.draw_line(, ) dc.draw_line(, to.to_point) to = end to end  | 
  
#scale ⇒ Object (protected)
      25 26 27 28  | 
    
      # File 'lib/wx/shapes/arrows/cross_bar_prong_arrow.rb', line 25 def scale @line = nil super end  |