Class: Wx::SF::DoubleCrossBarArrow

Inherits:
CrossBarArrow show all
Defined in:
lib/wx/shapes/arrows/double_cross_bar_arrow.rb

Overview

Class extends the Wx::CrossBarArrow class and encapsulates arrow shape consisting of double crossbar before the end of the parent line shape.

Class Method Summary collapse

Methods inherited from CrossBarArrow

#draw, #initialize, #scale

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::CrossBarArrow

Class Method Details

.arrow(ratio) ⇒ Object



14
15
16
17
# File 'lib/wx/shapes/arrows/double_cross_bar_arrow.rb', line 14

def arrow(ratio)
  x = ratio*7; y = ratio*6
  [[Wx::RealPoint.new(2+x/2,y), Wx::RealPoint.new(2+x/2, -y)],[Wx::RealPoint.new(2+x,y), Wx::RealPoint.new(2+x, -y), Wx::RealPoint.new(2+x, 0)]]
end