Class: Gtk::ColorDialog
- Inherits:
-
Object
- Object
- Gtk::ColorDialog
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#choose_rgba(parent, initial_color, cancellable, callback, user_data) ⇒ nil
This function initiates a color choice operation by presenting a color chooser dialog to the user.
-
#choose_rgba_finish(result) ⇒ Gdk::RGBA
Finishes the [methodGtk.ColorDialog.choose_rgba] call and returns the resulting color.
-
#initialize ⇒ Gtk::ColorDialog
constructor
Creates a new
GtkColorDialogobject. -
#modal ⇒ Boolean
Returns whether the color chooser dialog blocks interaction with the parent window while it is presented.
-
#modal=(modal) ⇒ Boolean
Whether the color chooser dialog is modal.
-
#modal? ⇒ Boolean
Whether the color chooser dialog is modal.
-
#title ⇒ String
A title that may be shown on the color chooser dialog that is presented by [methodGtk.ColorDialog.choose_rgba].
-
#title=(title) ⇒ String
A title that may be shown on the color chooser dialog that is presented by [methodGtk.ColorDialog.choose_rgba].
-
#with_alpha ⇒ Boolean
Returns whether colors may have alpha.
-
#with_alpha=(with_alpha) ⇒ Boolean
Whether colors may have alpha (translucency).
-
#with_alpha? ⇒ Boolean
Whether colors may have alpha (translucency).
Constructor Details
#initialize ⇒ Gtk::ColorDialog
Creates a new GtkColorDialog object.
Instance Method Details
#choose_rgba(parent, initial_color, cancellable, callback, user_data) ⇒ nil
This function initiates a color choice operation by presenting a color chooser dialog to the user.
The callback will be called when the dialog is dismissed. It should call [methodGtk.ColorDialog.choose_rgba_finish] to obtain the result.
#choose_rgba_finish(result) ⇒ Gdk::RGBA
Finishes the [methodGtk.ColorDialog.choose_rgba] call and returns the resulting color.
#modal ⇒ Boolean
Returns whether the color chooser dialog blocks interaction with the parent window while it is presented.
#modal=(modal) ⇒ Boolean
Whether the color chooser dialog is modal.
#modal? ⇒ Boolean
Whether the color chooser dialog is modal.
#title ⇒ String
A title that may be shown on the color chooser dialog that is presented by [methodGtk.ColorDialog.choose_rgba].
#title=(title) ⇒ String
A title that may be shown on the color chooser dialog that is presented by [methodGtk.ColorDialog.choose_rgba].
#with_alpha ⇒ Boolean
Returns whether colors may have alpha.
#with_alpha=(with_alpha) ⇒ Boolean
Whether colors may have alpha (translucency).
When with-alpha is false, the color that is selected will be forced to have alpha == 1.
#with_alpha? ⇒ Boolean
Whether colors may have alpha (translucency).
When with-alpha is false, the color that is selected will be forced to have alpha == 1.