Class: Wx::ColourData
Overview
This class is untracked and should not be derived from nor instances extended!
This class holds a variety of information related to colour dialogs.
Category: Common Dialogs, Data Structures
Constant Summary collapse
- NUM_CUSTOM =
16
Instance Method Summary collapse
-
#from_string(str) ⇒ Boolean
Decodes the given string, which should be in the same format returned by #to_string, and sets the internal colours.
-
#get_choose_alpha ⇒ Boolean
(also: #choose_alpha)
Indicates whether the colour dialog will display alpha values and an opacity selector.
-
#get_choose_full ⇒ Boolean
(also: #choose_full)
Under Windows, determines whether the Windows colour dialog will display the full dialog with custom colour selection controls.
-
#get_colour ⇒ Wx::Colour
(also: #colour)
Gets the current colour associated with the colour dialog.
-
#get_custom_colour(i) ⇒ Wx::Colour
(also: #custom_colour)
Returns custom colours associated with the colour dialog.
-
#initialize ⇒ Wx::ColourData
constructor
Constructor.
-
#set_choose_alpha(flag) ⇒ void
(also: #choose_alpha=)
Tells the colour dialog to show alpha values and an opacity selector (slider).
-
#set_choose_full(flag) ⇒ void
(also: #choose_full=)
Under Windows, tells the Windows colour dialog to display the full dialog with custom colour selection controls.
-
#set_colour(colour) ⇒ void
(also: #colour=)
Sets the default colour for the colour dialog.
-
#set_custom_colour(i, colour) ⇒ void
Sets custom colours for the colour dialog.
-
#to_string ⇒ String
Converts the colours saved in this class in a string form, separating the various colours with a comma.
Methods inherited from Object
#clone, #dup, #is_same_as, #un_share
Constructor Details
#initialize ⇒ Wx::ColourData
Constructor.
Initializes the custom colours to NULL_COLOUR, the data colour setting to black, and the choose full setting to true.
104 |
# File 'lib/wx/doc/gen/colour_dialog.rb', line 104 def initialize; end |
Instance Method Details
#from_string(str) ⇒ Boolean
Decodes the given string, which should be in the same format returned by #to_string, and sets the internal colours.
174 |
# File 'lib/wx/doc/gen/colour_dialog.rb', line 174 def from_string(str) end |
#get_choose_alpha ⇒ Boolean Also known as: choose_alpha
Indicates whether the colour dialog will display alpha values and an opacity selector.
It is meaningful under WXGTK, WXOSX and with regards to generic colour dialog. The default value is false, except WXOSX where it is true (for the sake of backward compatibility).
119 |
# File 'lib/wx/doc/gen/colour_dialog.rb', line 119 def get_choose_alpha; end |
#get_choose_full ⇒ Boolean Also known as: choose_full
Under Windows, determines whether the Windows colour dialog will display the full dialog with custom colour selection controls.
Has no meaning under other platforms. The default value is true.
111 |
# File 'lib/wx/doc/gen/colour_dialog.rb', line 111 def get_choose_full; end |
#get_colour ⇒ Wx::Colour Also known as: colour
Gets the current colour associated with the colour dialog.
The default colour is black.
126 |
# File 'lib/wx/doc/gen/colour_dialog.rb', line 126 def get_colour; end |
#get_custom_colour(i) ⇒ Wx::Colour Also known as: custom_colour
Returns custom colours associated with the colour dialog.
132 |
# File 'lib/wx/doc/gen/colour_dialog.rb', line 132 def get_custom_colour(i) end |
#set_choose_alpha(flag) ⇒ void Also known as: choose_alpha=
This method returns an undefined value.
Tells the colour dialog to show alpha values and an opacity selector (slider).
Currently it has effect under WXGTK, WXOSX and for generic colour dialog. The default value is false, except WXOSX where it is true for backward compatibility.
150 |
# File 'lib/wx/doc/gen/colour_dialog.rb', line 150 def set_choose_alpha(flag) end |
#set_choose_full(flag) ⇒ void Also known as: choose_full=
This method returns an undefined value.
Under Windows, tells the Windows colour dialog to display the full dialog with custom colour selection controls.
Under other platforms, has no effect. The default value is true.
141 |
# File 'lib/wx/doc/gen/colour_dialog.rb', line 141 def set_choose_full(flag) end |
#set_colour(colour) ⇒ void Also known as: colour=
This method returns an undefined value.
Sets the default colour for the colour dialog.
The default colour is black.
158 |
# File 'lib/wx/doc/gen/colour_dialog.rb', line 158 def set_colour(colour) end |
#set_custom_colour(i, colour) ⇒ void
This method returns an undefined value.
Sets custom colours for the colour dialog.
165 |
# File 'lib/wx/doc/gen/colour_dialog.rb', line 165 def set_custom_colour(i, colour) end |
#to_string ⇒ String
Converts the colours saved in this class in a string form, separating the various colours with a comma.
169 |
# File 'lib/wx/doc/gen/colour_dialog.rb', line 169 def to_string; end |