Class

GtkColorDialog

Description [src]

final class Gtk.ColorDialog : GObject.Object {
  /* No available fields */
}

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 gtk_color_dialog_choose_rgba() function. This API follows the GIO async pattern, and the result can be obtained by calling gtk_color_dialog_choose_rgba_finish().

See GtkColorDialogButton for a convenient control that uses GtkColorDialog and presents the results.

Available since:4.10

Ancestors

  • GObject

Constructors

gtk_color_dialog_new

Creates a new GtkColorDialog object.

Available since: 4.10

Instance methods

gtk_color_dialog_choose_rgba

This function initiates a color choice operation by presenting a color chooser dialog to the user.

Available since: 4.10

gtk_color_dialog_choose_rgba_finish

Finishes the gtk_color_dialog_choose_rgba() call and returns the resulting color.

Available since: 4.10

gtk_color_dialog_get_modal

Returns whether the color chooser dialog blocks interaction with the parent window while it is presented.

Available since: 4.10

gtk_color_dialog_get_title

Returns the title that will be shown on the color chooser dialog.

Available since: 4.10

gtk_color_dialog_get_with_alpha

Returns whether colors may have alpha.

Available since: 4.10

gtk_color_dialog_set_modal

Sets whether the color chooser dialog blocks interaction with the parent window while it is presented.

Available since: 4.10

gtk_color_dialog_set_title

Sets the title that will be shown on the color chooser dialog.

Available since: 4.10

gtk_color_dialog_set_with_alpha

Sets whether colors may have alpha.

Available since: 4.10

Properties

Gtk.ColorDialog:modal

Whether the color chooser dialog is modal.

Available since: 4.10

Gtk.ColorDialog:title

A title that may be shown on the color chooser dialog that is presented by gtk_color_dialog_choose_rgba().

Available since: 4.10

Gtk.ColorDialog:with-alpha

Whether colors may have alpha (translucency).

Available since: 4.10

Class structure

struct GtkColorDialogClass {
  GObjectClass parent_class;
  
}
Class members
parent_class
GObjectClass
  No description available.