ColorDialogButton


Object Hierarchy:

Gtk.ColorDialogButton Gtk.ColorDialogButton Gtk.ColorDialogButton Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.ColorDialogButton GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->Gtk.ColorDialogButton Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.ColorDialogButton Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->Gtk.ColorDialogButton Gtk.ConstraintTarget->Gtk.Widget

Description:

[ CCode ( type_id = "gtk_color_dialog_button_get_type ()" ) ]
[ Version ( since = "4.10" ) ]
public sealed class ColorDialogButton : Widget, Accessible, Buildable, ConstraintTarget

Opens a color chooser dialog to select a color.

<picture> <source srcset="color-button-dark.png" media="(prefers-color-scheme: dark)"> <img alt="An example GtkColorDialogButton" src="color-button.png"> </picture>

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

CSS nodes

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

`GtkColorDialogButton` 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