About all my projects
Gnome::Gtk4::ColorChooserWidget

Gnome::Gtk4::ColorChooserWidget

Description

The Gnome::Gtk4::ColorChooserWidget widget lets the user select a color.

By default, the chooser presents a predefined palette of colors, plus a small number of settable custom colors. It is also possible to select a different color with the single-color editor.

To enter the single-color editing mode, use the context menu of any color of the palette, or use the '+' button to add a new custom color.

The chooser automatically remembers the last selection, as well as custom colors.

To create a Gnome::Gtk4::ColorChooserWidget, use .newcolorchooserwidget().

To change the initially selected color, use .set-rgba() in class Gnome::Gtk4::R-ColorChooser. To get the selected color use .get-rgba() in class Gnome::Gtk4::R-ColorChooser.

The Gnome::Gtk4::ColorChooserWidget is used in the Gnome::Gtk4::ColorChooserDialog to provide a dialog for selecting colors.

CSS names

Gnome::Gtk4::ColorChooserWidget has a single CSS node with name colorchooser.

Class initialization

Note: The native version of this class is deprecated in gtk4-lib() since version 4.10

new

:native-object

Create an object using a native object from elsewhere. See also Gnome::N::TopLevelSupportClass.

multi method new ( N-Object :$native-object! )

new-colorchooserwidget

Creates a new Gnome::Gtk4::ColorChooserWidget.

method new-colorchooserwidget ( --> Gnome::Gtk4::ColorChooserWidget \)