ColorButton


Object Hierarchy:

Gtk.ColorButton Gtk.ColorButton Gtk.ColorButton Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.ColorButton GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->Gtk.ColorButton Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.ColorButton Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->Gtk.ColorButton Gtk.ConstraintTarget->Gtk.Widget Gtk.ColorChooser Gtk.ColorChooser Gtk.ColorChooser->Gtk.ColorButton

Description:

[ CCode ( type_id = "gtk_color_button_get_type ()" ) ]
[ Version ( deprecated = true , deprecated_since = "4.10" ) ]
public sealed class ColorButton : Widget, Accessible, Buildable, ColorChooser, ConstraintTarget

Warning: ColorButton is deprecated since 4.10.

The `GtkColorButton` allows to open a color chooser dialog to change the color.

Note:

Use [class@Gtk.ColorDialogButton] instead

![An example GtkColorButton](color-button.png)

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

CSS nodes

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

`GtkColorButton` has a single CSS node with name colorbutton which contains a button node. To differentiate it from a plain `GtkButton`, it gets the .color style class.


Namespace: Gtk
Package: gtk4

Content:

Properties:

Creation methods:

Methods:

Signals:

Inherited Members:

All known members inherited from class Gtk.Widget
All known members inherited from interface Gtk.ColorChooser