Class: Gtk::ColorButton
- Inherits:
-
Object
- Object
- Gtk::ColorButton
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#alpha ⇒ Integer
The selected opacity value (0 fully transparent, 65535 fully opaque).
-
#alpha=(alpha) ⇒ Integer
The selected opacity value (0 fully transparent, 65535 fully opaque).
-
#color ⇒ Gdk::Color
The selected color.
-
#color=(color) ⇒ Gdk::Color
The selected color.
-
#get_color(color) ⇒ nil
Sets color to be the current color in the Gtk::ColorButton widget.
-
#get_rgba(rgba) ⇒ nil
Sets rgba to be the current color in the Gtk::ColorButton widget.
-
#new ⇒ Gtk::Widget
Creates a new color button.
-
#new_with_color(color) ⇒ Gtk::Widget
Creates a new color button.
-
#new_with_rgba(rgba) ⇒ Gtk::Widget
Creates a new color button.
-
#rgba ⇒ Gdk::RGBA
The RGBA color.
-
#rgba=(rgba) ⇒ Gdk::RGBA
The RGBA color.
-
#show_editor=(show_editor) ⇒ TrueClass
Set this property to true to skip the palette in the dialog and go directly to the color editor.
-
#show_editor? ⇒ TrueClass
Set this property to true to skip the palette in the dialog and go directly to the color editor.
-
#title ⇒ String
The title of the color selection dialog.
-
#title=(title) ⇒ String
The title of the color selection dialog.
-
#use_alpha ⇒ TrueClass
Does the color selection dialog use the alpha channel ?.
-
#use_alpha=(use_alpha) ⇒ TrueClass
If this property is set to true, the color swatch on the button is rendered against a checkerboard background to show its opacity and the opacity slider is displayed in the color selection dialog.
-
#use_alpha? ⇒ TrueClass
If this property is set to true, the color swatch on the button is rendered against a checkerboard background to show its opacity and the opacity slider is displayed in the color selection dialog.
Instance Method Details
#alpha ⇒ Integer
The selected opacity value (0 fully transparent, 65535 fully opaque).
#alpha=(alpha) ⇒ Integer
The selected opacity value (0 fully transparent, 65535 fully opaque).
#color ⇒ Gdk::Color
The selected color.
#color=(color) ⇒ Gdk::Color
The selected color.
#get_color(color) ⇒ nil
Sets color to be the current color in the Gtk::ColorButton widget.
#get_rgba(rgba) ⇒ nil
Sets rgba to be the current color in the Gtk::ColorButton widget.
#new ⇒ Gtk::Widget
Creates a new color button.
This returns a widget in the form of a small button containing a swatch representing the current selected color. When the button is clicked, a color-selection dialog will open, allowing the user to select a color. The swatch will be updated to reflect the new color when the user finishes.
#new_with_color(color) ⇒ Gtk::Widget
Creates a new color button.
#new_with_rgba(rgba) ⇒ Gtk::Widget
Creates a new color button.
#rgba ⇒ Gdk::RGBA
The RGBA color.
#rgba=(rgba) ⇒ Gdk::RGBA
The RGBA color.
#show_editor=(show_editor) ⇒ TrueClass
Set this property to true to skip the palette in the dialog and go directly to the color editor.
This property should be used in cases where the palette in the editor would be redundant, such as when the color button is already part of a palette.
#show_editor? ⇒ TrueClass
Set this property to true to skip the palette in the dialog and go directly to the color editor.
This property should be used in cases where the palette in the editor would be redundant, such as when the color button is already part of a palette.
#title ⇒ String
The title of the color selection dialog
#title=(title) ⇒ String
The title of the color selection dialog
#use_alpha ⇒ TrueClass
Does the color selection dialog use the alpha channel ?
#use_alpha=(use_alpha) ⇒ TrueClass
If this property is set to true, the color swatch on the button is rendered against a checkerboard background to show its opacity and the opacity slider is displayed in the color selection dialog.
#use_alpha? ⇒ TrueClass
If this property is set to true, the color swatch on the button is rendered against a checkerboard background to show its opacity and the opacity slider is displayed in the color selection dialog.