It derives from <GObject>.
Asynchronous API to present a color chooser dialog.
<GtkColorDialog> collects the arguments that
are needed to present the dialog to the user, such as a title for the
dialog and whether it should be modal.
The dialog is shown with the color-dialog:choose-rgba function.
See <GtkColorDialogButton> for a
convenient control that uses <GtkColorDialog>
and presents the results.
Whether the color chooser dialog is modal.
Its value is a boolean.
Set it with (set! (color-dialog:modal self) value).
A title that may be shown on the color chooser dialog.
Its value is a string, or #f.
Set it with (set! (color-dialog:title self) value).
Whether colors may have alpha (translucency).
When with-alpha is false, the color that is selected will be forced to have alpha == 1.
Its value is a boolean.
Set it with (set! (color-dialog:with-alpha self) value).
Presents a color chooser dialog to the user.
Passed: a <GtkColorDialog>.
a color dialog
Passed, or left out: a <GtkWindow>, or #f.
the parent window
Passed, or left out: a <GdkRGBA>, or #f.
the color to select initially
Passed, or left out: a <GCancellable>, or
#f.
a cancellable to cancel the operation
Passed, or left out: a procedure, or #f.
a callback to call when the operation is complete
See GAsyncReadyCallback for how it
is called.
Not passed: guile-gi supplies it.
data to pass to callback
Finishes the color-dialog:choose-rgba call
Note that this function returns a Gtk.DialogError.DISMISSED error
if the user cancels the dialog.
Passed: a <GtkColorDialog>.
a color dialog
Passed: a <GAsyncResult>.
the result
Returned: a <GdkRGBA>.
the selected color
Returns whether the color chooser dialog blocks interaction with the parent window while it is presented.
Passed: a <GtkColorDialog>.
a color dialog
Returned: a boolean.
true if the color chooser dialog is modal
Returns the title that will be shown on the color chooser dialog.
Passed: a <GtkColorDialog>.
a color dialog
Returned: a string.
the title
Returns whether colors may have alpha.
Passed: a <GtkColorDialog>.
a color dailog
Returned: a boolean.
true if colors may have alpha
Creates a new <GtkColorDialog> object.
Returned: a <GtkColorDialog>.
the new <GtkColorDialog>
Sets whether the color chooser dialog blocks interaction with the parent window while it is presented.
Passed: a <GtkColorDialog>.
a color dialog
Passed: a boolean.
the new value
Sets the title that will be shown on the color chooser dialog.
Passed: a <GtkColorDialog>.
a color dialog
Passed: a string.
the new title
Sets whether colors may have alpha.
Passed: a <GtkColorDialog>.
a color dialog
Passed: a boolean.
the new value