gtk.color_dialog_button

Module for [ColorDialogButton] class

Types 3

The [gtk.color_dialog_button.ColorDialogButton] is a wrapped around a [gtk.color_dialog.ColorDialog] and allows to open a color chooser dialog to change the color.

!An example GtkColorDialogButton

It is suitable widget for selecting a color in a preference dialog.

CSS nodes

colorbutton
╰── button.color
   ╰── [content]

[gtk.color_dialog_button.ColorDialogButton] has a single CSS node with name colorbutton which contains a button node. To differentiate it from a plain [gtk.button.Button], it gets the .color style class.

Methods
GType _gType() @property
ColorDialogButton self()Returns `this`, for use in `with` statements.
ColorDialogButtonGidBuilder builder()Get builder for [gtk.colordialogbutton.ColorDialogButton] Returns: New builder object
gtk.color_dialog.ColorDialog dialog() @propertyGet `dialog` property. Returns: The [gtk.color_dialog.ColorDialog] that contains parameters for the color chooser dialog.
void dialog(gtk.color_dialog.ColorDialog propval) @propertySet `dialog` property. Params: propval = The [gtk.color_dialog.ColorDialog] that contains parameters for the color chooser dialog.
gdk.rgba.RGBA rgba() @propertyGet `rgba` property. Returns: The selected color.
void rgba(gdk.rgba.RGBA propval) @propertySet `rgba` property. Params: propval = The selected color.
gtk.color_dialog.ColorDialog getDialog()Returns the [gtk.colordialog.ColorDialog] of self. Returns: the [gtk.colordialog.ColorDialog]
gdk.rgba.RGBA getRgba()Returns the color of the button.
void setDialog(gtk.color_dialog.ColorDialog dialog)Sets a [gtk.color_dialog.ColorDialog] object to use for creating the color chooser dialog that is presented when the user clicks the button.
void setRgba(gdk.rgba.RGBA color)Sets the color of the button.
gulong connectActivate(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.color_dialog_button.ColorDialogButton))) && Parameters!T.length < 2)Connect to `Activate` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this(gtk.color_dialog.ColorDialog dialog = null)Creates a new [gtk.colordialogbutton.ColorDialogButton] with the given [gtk.color_dialog.ColorDialog].
Methods
T dialog(gtk.color_dialog.ColorDialog propval)Set `dialog` property. Params: propval = The [gtk.color_dialog.ColorDialog] that contains parameters for the color chooser dialog. Returns: Builder instance for fluent chaining
T rgba(gdk.rgba.RGBA propval)Set `rgba` property. Params: propval = The selected color.

Fluent builder for [gtk.color_dialog_button.ColorDialogButton]