Class: Wx::SF::SquareArrow
- Inherits:
-
SolidArrow
- Object
- ArrowBase
- LineArrow
- FilledArrow
- SolidArrow
- Wx::SF::SquareArrow
- Defined in:
- lib/wx/shapes/arrows/square_arrow.rb
Overview
Class extends the Wx::SolidArrow class and encapsulates square arrow shapes.
Constant Summary collapse
- SIZE =
Default square size
11
Class Method Summary collapse
Instance Method Summary collapse
-
#get_size ⇒ Object
(also: #size)
Get the circle radius.
- #vertices ⇒ Object protected
Methods inherited from SolidArrow
Methods inherited from FilledArrow
#get_fill, #initialize, #set_fill
Methods inherited from LineArrow
#get_pen, #get_pen_width, #initialize, #scale, #set_parent_shape, #set_pen
Methods inherited from ArrowBase
#draw, #get_parent_shape, #initialize, #set_parent_shape, #translate_arrow
Constructor Details
This class inherits a constructor from Wx::SF::SolidArrow
Class Method Details
Instance Method Details
#get_size ⇒ Object Also known as: size
Get the circle radius
25 26 27 |
# File 'lib/wx/shapes/arrows/square_arrow.rb', line 25 def get_size (SIZE * @ratio).to_i end |
#vertices ⇒ Object (protected)
30 31 32 |
# File 'lib/wx/shapes/arrows/square_arrow.rb', line 30 def vertices @vertices ||= SquareArrow.arrow(get_size) end |