Class: Wx::GraphicsPenInfo
- Inherits:
-
Object
- Object
- Wx::GraphicsPenInfo
- Defined in:
- lib/wx/doc/gen/graphics_context.rb,
lib/wx/doc/graphics_context.rb
Overview
Note:
This class is untracked and should not be derived from nor instances extended!
This class is a helper used for GraphicsPen creation using named parameter idiom: it allows specifying various GraphicsPen attributes using the chained calls to its clearly named methods instead of passing them in the fixed order to GraphicsPen constructors.
Typically you would use GraphicsPenInfo with a GraphicsContext, e.g. to start drawing with a dotted blue pen slightly wider than normal you could write the following:
ctx = Wx::GraphicsContext.create(dc)
ctx.set_pen(Wx::GraphicsPenInfo.new(Wx::BLUE).width(1.25).style(Wx::PENSTYLE_DOT))
Instance Method Summary collapse
- #cap(cap) ⇒ Wx::GraphicsPenInfo
- #colour(col) ⇒ Wx::GraphicsPenInfo
- #get_cap ⇒ Wx::PenCap
- #get_colour ⇒ Wx::Colour
- #get_dash_count ⇒ Integer (also: #dash_count)
- #get_dashes ⇒ Array<Integer> (also: #dashes)
- #get_end_x ⇒ Float (also: #end_x)
- #get_end_y ⇒ Float (also: #end_y)
- #get_gradient_type ⇒ Wx::GradientType (also: #gradient_type)
- #get_join ⇒ Wx::PenJoin
- #get_radius ⇒ Float (also: #radius)
- #get_start_x ⇒ Float (also: #start_x)
- #get_start_y ⇒ Float (also: #start_y)
- #get_stipple ⇒ Wx::Bitmap
- #get_stops ⇒ Wx::GraphicsGradientStops (also: #stops)
- #get_style ⇒ Wx::PenStyle
- #get_width ⇒ Float
- #get_x1 ⇒ Float (also: #x1)
- #get_x2 ⇒ Float (also: #x2)
- #get_y1 ⇒ Float (also: #y1)
- #get_y2 ⇒ Float (also: #y2)
- #initialize(colour = (Wx::Colour.new()), width = 1.0, style = Wx::PenStyle::PENSTYLE_SOLID) ⇒ Wx::GraphicsPenInfo constructor
- #is_transparent ⇒ Boolean (also: #transparent?)
- #join(join) ⇒ Wx::GraphicsPenInfo
- #linear_gradient(*args) ⇒ Object
- #radial_gradient(*args) ⇒ Object
- #stipple(stipple) ⇒ Wx::GraphicsPenInfo
- #style(style) ⇒ Wx::GraphicsPenInfo
- #width(width) ⇒ Wx::GraphicsPenInfo
Constructor Details
#initialize(colour = (Wx::Colour.new()), width = 1.0, style = Wx::PenStyle::PENSTYLE_SOLID) ⇒ Wx::GraphicsPenInfo
915 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 915 def initialize(colour=(Wx::Colour.new()), width=1.0, style=Wx::PenStyle::PENSTYLE_SOLID) end |
Instance Method Details
#cap(cap) ⇒ Wx::GraphicsPenInfo
939 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 939 def cap(cap) end |
#colour(col) ⇒ Wx::GraphicsPenInfo
919 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 919 def colour(col) end |
#get_colour ⇒ Wx::Colour
982 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 982 def get_colour; end |
#get_dash_count ⇒ Integer Also known as: dash_count
997 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 997 def get_dash_count; end |
#get_dashes ⇒ Array<Integer> Also known as: dashes
76 |
# File 'lib/wx/doc/graphics_context.rb', line 76 def get_dashes; end |
#get_end_x ⇒ Float Also known as: end_x
1036 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 1036 def get_end_x; end |
#get_end_y ⇒ Float Also known as: end_y
1040 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 1040 def get_end_y; end |
#get_gradient_type ⇒ Wx::GradientType Also known as: gradient_type
1008 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 1008 def get_gradient_type; end |
#get_radius ⇒ Float Also known as: radius
1044 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 1044 def get_radius; end |
#get_start_x ⇒ Float Also known as: start_x
1028 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 1028 def get_start_x; end |
#get_start_y ⇒ Float Also known as: start_y
1032 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 1032 def get_start_y; end |
#get_stipple ⇒ Wx::Bitmap
985 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 985 def get_stipple; end |
#get_stops ⇒ Wx::GraphicsGradientStops Also known as: stops
1048 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 1048 def get_stops; end |
#get_style ⇒ Wx::PenStyle
988 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 988 def get_style; end |
#get_width ⇒ Float
1005 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 1005 def get_width; end |
#get_x1 ⇒ Float Also known as: x1
1012 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 1012 def get_x1; end |
#get_x2 ⇒ Float Also known as: x2
1020 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 1020 def get_x2; end |
#get_y1 ⇒ Float Also known as: y1
1016 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 1016 def get_y1; end |
#get_y2 ⇒ Float Also known as: y2
1024 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 1024 def get_y2; end |
#is_transparent ⇒ Boolean Also known as: transparent?
1001 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 1001 def is_transparent; end |
#join(join) ⇒ Wx::GraphicsPenInfo
935 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 935 def join(join) end |
#linear_gradient(x1, y1, x2, y2, c1, c2, matrix = Wx::NULL_GRAPHICS_MATRIX) ⇒ Wx::GraphicsPenInfo #linear_gradient(x1, y1, x2, y2, stops, matrix = Wx::NULL_GRAPHICS_MATRIX) ⇒ Wx::GraphicsPenInfo
958 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 958 def linear_gradient(*args) end |
#radial_gradient(startX, startY, endX, endY, radius, oColor, cColor, matrix = Wx::NULL_GRAPHICS_MATRIX) ⇒ Wx::GraphicsPenInfo #radial_gradient(startX, startY, endX, endY, radius, stops, matrix = Wx::NULL_GRAPHICS_MATRIX) ⇒ Wx::GraphicsPenInfo
979 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 979 def radial_gradient(*args) end |
#stipple(stipple) ⇒ Wx::GraphicsPenInfo
931 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 931 def stipple(stipple) end |
#style(style) ⇒ Wx::GraphicsPenInfo
927 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 927 def style(style) end |
#width(width) ⇒ Wx::GraphicsPenInfo
923 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 923 def width(width) end |