Class ColorChooserDialog

All Implemented Interfaces:
PointerInterface

public class ColorChooserDialog extends Dialog
A dialog for choosing a color.

![An example GtkColorChooserDialog](colorchooser.png)

`GtkColorChooserDialog` implements the [iface@Gtk.ColorChooser] interface
and does not provide much API of its own.

To create a `GtkColorChooserDialog`, use [ctor@Gtk.ColorChooserDialog.new].

To change the initially selected color, use
[method@Gtk.ColorChooser.set_rgba]. To get the selected color use
[method@Gtk.ColorChooser.get_rgba].

https://docs.gtk.org/gtk4/class.ColorChooserDialog.html

  • Constructor Details

    • ColorChooserDialog

      public ColorChooserDialog(PointerContainer pointer)
    • ColorChooserDialog

      public ColorChooserDialog(@Nullable Str title, @Nullable Window parent)
      Creates a new `GtkColorChooserDialog`.
      Parameters:
      title - Title of the dialog
      parent - Transient parent of the dialog
    • ColorChooserDialog

      public ColorChooserDialog(String title, @Nullable Window parent)
      Creates a new `GtkColorChooserDialog`.
      Parameters:
      title - Title of the dialog
      parent - Transient parent of the dialog
  • Method Details