ColorButton

constructor()(source)

⚠️ Deprecated ⚠️

This is deprecated since version 4.10.

Use class@Gtk.ColorDialogButton instead

---

Creates a new color button.

This returns a widget in the form of a small button containing a swatch representing the current selected color. When the button is clicked, a color chooser dialog will open, allowing the user to select a color. The swatch will be updated to reflect the new color when the user finishes.

Return

a new color button


constructor(rgba: <Error class: unknown class>)(source)

Creates a new color button showing the given color.

Return

a new color button

Parameters

rgba

A GdkRGBA to set the current color with


constructor(gtkColorButtonPointer: <Error class: unknown class><<Error class: unknown class>>)(source)