About my projects, examples and tutorials
Gnome::Gtk4::ColorChooserDialog

Gnome::Gtk4::ColorChooserDialog

Description§

A dialog for choosing a color.

UNKNOWN image§

=for image :class<inline> :src<asset_files/images/colorchooser.png> :width<30\%>

Gnome::Gtk4::ColorChooserDialog implements the Gnome::Gtk4::ColorDialog interface and does not provide much API of its own.

To create a Gnome::Gtk4::ColorChooserDialog, use .newcolorchooserdialog().

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

Gnome::Gtk4::ColorChooserDialog has been deprecated in favor of Gnome::Gtk4::ColorDialog.

CSS nodes§

Gnome::Gtk4::ColorChooserDialog has a single CSS node with the name window and style class `.colorchooser`.

Uml Diagram§

UNKNOWN image§

=for image :class<inline> :src<asset_files/images/plantuml/ColorChooserDialog.png> :width<70\%>

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 an object of the same type found elsewhere. See also Gnome::N::TopLevelSupportClass.

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

new-colorchooserdialog§

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

Creates a new Gnome::Gtk4::ColorChooserDialog.

method new-colorchooserdialog ( Str $title, N-Object() $parent --> Gnome::Gtk4::ColorChooserDialog )
Code
  • $title; Title of the dialog.
  • $parent; Transient parent of the dialog.