ColorDialog
Object Hierarchy:
Description:
[
CCode ( type_id =
"gtk_color_dialog_get_type ()" ) ]
[
Version ( since =
"4.10" ) ]
public class ColorDialog :
Object
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 [method@Gtk.ColorDialog.choose_rgba] function.
See [class@Gtk.ColorDialogButton] for a convenient control that uses `GtkColorDialog` and presents the results.
Content:
Properties:
- public bool modal { get; set; }
Whether the color chooser dialog is modal.
- public string title { get; set; }
A title that may be shown on the color chooser dialog.
- public bool with_alpha { get; set; }
Whether colors may have alpha (translucency).
Creation methods:
Methods:
- public async RGBA? choose_rgba (Window? parent, RGBA? initial_color, Cancellable? cancellable) throws Error
Presents a color chooser dialog to the user.
- public bool get_modal ()
Returns whether the color chooser dialog blocks interaction with the
parent window while it is presented.
- public unowned string get_title ()
Returns the title that will be shown on the color chooser dialog.
- public bool get_with_alpha ()
Returns whether colors may have alpha.
- public void set_modal (bool modal)
Sets whether the color chooser dialog blocks interaction with the
parent window while it is presented.
- public void set_title (string title)
Sets the title that will be shown on the color chooser dialog.
- public void set_with_alpha (bool with_alpha)
Sets whether colors may have alpha.
Inherited Members:
All known members inherited from class GLib.Object