gtk.color_button
Module for [ColorButton] class
Types 3
The gtk.color_button.ColorButton allows to open a color chooser dialog to change the color.
It is suitable widget for selecting a color in a preference dialog.
CSS nodes
colorbutton
╰── button.color
╰── [content]gtk.color_button.ColorButton 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.
Deprecated
Use gtk.color_dialog_button.ColorDialogButton instead
Methods
ColorButtonGidBuilder builder() static nothrowGet builder for [gtk.color_button.ColorButton] Returns: New builder objectbool modal() @property nothrowGet `modal` property. Returns: Whether the color chooser dialog should be modal.void modal(bool propval) @property nothrowSet `modal` property. Params: propval = Whether the color chooser dialog should be modal.bool showEditor() @property nothrowGet `showEditor` property. Returns: Whether the color chooser should open in editor mode.void showEditor(bool propval) @property nothrowSet `showEditor` property. Params: propval = Whether the color chooser should open in editor mode.string title() @property nothrowGet `title` property. Returns: The title of the color chooser dialogvoid title(string propval) @property nothrowSet `title` property. Params: propval = The title of the color chooser dialoggtk.color_button.ColorButton newWithRgba(gdk.rgba.RGBA rgba) static nothrowCreates a new color button showing the given color.string getTitle() nothrowGets the title of the color chooser dialog. Returns: An internal string, do not free the return valuegulong 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_button.ColorButton)))
&& Parameters!T.length < 2) nothrowConnect to `Activate` signal.gulong connectColorSet(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_button.ColorButton)))
&& Parameters!T.length < 2) nothrowConnect to `ColorSet` signal.classColorButtonGidBuilderImpl(T) : gtk.widget.WidgetGidBuilderImpl!T, gtk.color_chooser.ColorChooserGidBuilderImpl!T
Fluent builder implementation template for gtk.color_button.ColorButton
Methods
T modal(bool propval) nothrowSet `modal` property. Params: propval = Whether the color chooser dialog should be modal. Returns: Builder instance for fluent chainingT showEditor(bool propval) nothrowSet `showEditor` property. Params: propval = Whether the color chooser should open in editor mode.T title(string propval) nothrowSet `title` property. Params: propval = The title of the color chooser dialog Returns: Builder instance for fluent chainingFluent builder for gtk.color_button.ColorButton
Methods