ColorDialog
A GtkColorDialog
object collects the arguments that are needed to present a color chooser dialog to the user, such as a title for the dialog and whether it should be modal.
The dialog is shown with the method@Gtk.ColorDialog.choose_rgba function.
See class@Gtk.ColorDialogButton for a convenient control that uses GtkColorDialog
and presents the results.
Since
4.10
Constructors
Functions
Link copied to clipboard
open fun chooseRgba(parent: Window? = null, initialColor: <Error class: unknown class>? = null, cancellable: <Error class: unknown class>? = null, callback: <Error class: unknown class>)
This function initiates a color choice operation by presenting a color chooser dialog to the user.
Link copied to clipboard
open fun chooseRgbaFinish(result: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>?>
Finishes the method@Gtk.ColorDialog.choose_rgba call and returns the resulting color.
Link copied to clipboard
Returns whether colors may have alpha.
Link copied to clipboard
Sets whether colors may have alpha.