Klasse ColorChooserDialog

Alle implementierten Schnittstellen:
PointerInterface

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

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

`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].

`GtkColorChooserDialog` has been deprecated in favor of [class@Gtk.ColorDialog].

## CSS nodes

`GtkColorChooserDialog` has a single CSS node with the name `window` and style
class `.colorchooser`.

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

  • Konstruktordetails

    • ColorChooserDialog

      public ColorChooserDialog(PointerContainer pointer)
    • ColorChooserDialog

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

      @Deprecated public ColorChooserDialog(String title, @Nullable Window parent)
      Veraltet.
      Creates a new `GtkColorChooserDialog`.
      Parameter:
      title - Title of the dialog
      parent - Transient parent of the dialog
  • Methodendetails