Class: Wx::SF::CrossedCircleArrow
- Inherits:
-
CircleArrow
- Object
- ArrowBase
- LineArrow
- FilledArrow
- CircleArrow
- Wx::SF::CrossedCircleArrow
- Defined in:
- lib/wx/shapes/arrows/crossed_circle.rb
Overview
Class extends the Wx::CircleArrow class and encapsulates arrow shape consisting a crossed circle.
Constant Summary
Constants inherited from CircleArrow
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 CircleArrow
Methods inherited from FilledArrow
#get_fill, #initialize, #set_fill
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::CircleArrow
Class Method Details
Instance Method Details
#draw(from, to, dc) ⇒ Wx::Point
Draw arrow shape at the end of a virtual line.
34 35 36 37 38 39 40 41 42 |
# File 'lib/wx/shapes/arrows/crossed_circle.rb', line 34 def draw(from, to, dc) cp = super cb = translate_arrow(, from, to) dc.with_pen(pen) do |dc| dc.draw_line(cb[0], cb[1]) dc.draw_line(cp, to.to_point) end cp end |
#scale ⇒ Object (protected)
23 24 25 26 |
# File 'lib/wx/shapes/arrows/crossed_circle.rb', line 23 def scale @crossbar = nil super end |