Class: Wx::PenInfo
- Inherits:
-
Object
- Object
- Wx::PenInfo
- Defined in:
- lib/wx/doc/gen/pen.rb,
lib/wx/doc/pen.rb
Overview
Note:
This class is untracked and should not be derived from nor instances extended!
This class is a helper used for Pen creation using named parameter idiom: it allows specifying various Pen attributes using the chained calls to its clearly named methods instead of passing them in the fixed order to Pen constructors.
For instance, to create a dotted blue pen with the given join style you could do
pen = Wx::Pen.new(Wx::PenInfo.new(Wx::BLUE).style(Wx::PENSTYLE_DOT).join(Wx::JOIN_BEVEL))
Instance Method Summary collapse
- #cap(cap) ⇒ Wx::PenInfo
- #colour(col) ⇒ Wx::PenInfo
- #get_cap ⇒ Wx::PenCap
- #get_colour ⇒ Wx::Colour
- #get_dash_count ⇒ Integer (also: #dash_count)
- #get_dashes ⇒ Array<Integer> (also: #dashes)
- #get_join ⇒ Wx::PenJoin
- #get_quality ⇒ Wx::PenQuality
- #get_stipple ⇒ Wx::Bitmap
- #get_style ⇒ Wx::PenStyle
- #get_width ⇒ Integer
-
#high_quality ⇒ Wx::PenInfo
Set high pen quality.
- #initialize(colour = (Wx::Colour.new()), width = 1, style = Wx::PenStyle::PENSTYLE_SOLID) ⇒ Wx::PenInfo constructor
- #is_transparent ⇒ Boolean (also: #transparent?)
- #join(join) ⇒ Wx::PenInfo
-
#low_quality ⇒ Wx::PenInfo
Set low pen quality.
-
#quality(quality) ⇒ Wx::PenInfo
Set the pen quality.
- #stipple(stipple) ⇒ Wx::PenInfo
- #style(style) ⇒ Wx::PenInfo
- #width(width) ⇒ Wx::PenInfo
Constructor Details
#initialize(colour = (Wx::Colour.new()), width = 1, style = Wx::PenStyle::PENSTYLE_SOLID) ⇒ Wx::PenInfo
433 |
# File 'lib/wx/doc/gen/pen.rb', line 433 def initialize(colour=(Wx::Colour.new()), width=1, style=Wx::PenStyle::PENSTYLE_SOLID) end |
Instance Method Details
#get_dash_count ⇒ Integer Also known as: dash_count
498 |
# File 'lib/wx/doc/gen/pen.rb', line 498 def get_dash_count; end |
#get_dashes ⇒ Array<Integer> Also known as: dashes
44 |
# File 'lib/wx/doc/pen.rb', line 44 def get_dashes; end |
#get_width ⇒ Integer
506 |
# File 'lib/wx/doc/gen/pen.rb', line 506 def get_width; end |
#high_quality ⇒ Wx::PenInfo
Set high pen quality.
This is the same as calling #quality with Wx::PenQuality::PEN_QUALITY_HIGH.
477 |
# File 'lib/wx/doc/gen/pen.rb', line 477 def high_quality; end |
#is_transparent ⇒ Boolean Also known as: transparent?
502 |
# File 'lib/wx/doc/gen/pen.rb', line 502 def is_transparent; end |
#low_quality ⇒ Wx::PenInfo
Set low pen quality.
This is the same as calling #quality with Wx::PenQuality::PEN_QUALITY_LOW.
471 |
# File 'lib/wx/doc/gen/pen.rb', line 471 def low_quality; end |
#quality(quality) ⇒ Wx::PenInfo
Set the pen quality.
Using #low_quality or #high_quality is usually more convenient.
465 |
# File 'lib/wx/doc/gen/pen.rb', line 465 def quality(quality) end |
#stipple(stipple) ⇒ Wx::PenInfo
449 |
# File 'lib/wx/doc/gen/pen.rb', line 449 def stipple(stipple) end |