Class: Wx::GraphicsGradientStop
- Inherits:
-
Object
- Object
- Wx::GraphicsGradientStop
- 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!
Represents a single gradient stop in a collection of gradient stops as represented by GraphicsGradientStops.
Category: Graphics Device Interface (GDI)
Instance Method Summary collapse
-
#get_colour ⇒ Wx::Colour, ...
(also: #colour)
Return the stop colour.
-
#get_position ⇒ Float
(also: #position)
Return the stop position.
-
#initialize(col = Wx::TRANSPARENT_COLOUR, pos = 0.0) ⇒ Wx::GraphicsGradientStop
constructor
Creates a stop with the given colour and position.
-
#set_colour(col) ⇒ void
(also: #colour=)
Change the stop colour.
-
#set_position(pos) ⇒ void
(also: #position=)
Change the stop position.
Constructor Details
#initialize(col = Wx::TRANSPARENT_COLOUR, pos = 0.0) ⇒ Wx::GraphicsGradientStop
Creates a stop with the given colour and position.
65 |
# File 'lib/wx/doc/graphics_context.rb', line 65 def initialize(col=Wx::TRANSPARENT_COLOUR, pos=0.0) end |
Instance Method Details
#get_colour ⇒ Wx::Colour, ... Also known as: colour
Return the stop colour.
810 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 810 def get_colour; end |
#get_position ⇒ Float Also known as: position
Return the stop position.
821 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 821 def get_position; end |
#set_colour(col) ⇒ void Also known as: colour=
This method returns an undefined value.
Change the stop colour.
816 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 816 def set_colour(col) end |
#set_position(pos) ⇒ void Also known as: position=
This method returns an undefined value.
Change the stop position.
827 |
# File 'lib/wx/doc/gen/graphics_context.rb', line 827 def set_position(pos) end |