Class ColorChooserDialog

All Implemented Interfaces:
Accessible, Buildable, ColorChooser, ConstraintTarget, Native, Root, ShortcutManager, Proxy

@Generated("org.javagi.JavaGI") @Deprecated public class ColorChooserDialog extends Dialog implements Accessible, Buildable, ColorChooser, ConstraintTarget, Native, Root, ShortcutManager
Deprecated.
Use ColorDialog instead

A dialog for choosing a color.

An example GtkColorChooserDialog

GtkColorChooserDialog implements the ColorChooser interface and does not provide much API of its own.

To create a GtkColorChooserDialog, use ColorChooserDialog().

To change the initially selected color, use ColorChooser.setRgba(RGBA). To get the selected color use ColorChooser.getRgba(RGBA).

GtkColorChooserDialog has been deprecated in favor of ColorDialog.

CSS nodes

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

  • Constructor Details

    • ColorChooserDialog

      public ColorChooserDialog(MemorySegment address)
      Deprecated.
      Create a ColorChooserDialog instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • ColorChooserDialog

      @Deprecated public ColorChooserDialog(@Nullable String title, @Nullable Window parent)
      Deprecated.
      Use ColorDialog instead
      Creates a new GtkColorChooserDialog.
      Parameters:
      title - Title of the dialog
      parent - Transient parent of the dialog
    • ColorChooserDialog

      public ColorChooserDialog()
      Deprecated.
      Create a new ColorChooserDialog.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Deprecated.
      Get the GType of the ColorChooserDialog class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      Deprecated.
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected ColorChooserDialog asParent()
      Deprecated.
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class Dialog
      Returns:
      the instance as if it were its parent type
    • builder

      public static ColorChooserDialog.Builder<? extends ColorChooserDialog.Builder> builder()
      Deprecated.
      A ColorChooserDialog.Builder object constructs a ColorChooserDialog with the specified properties. Use the various set...() methods to set properties, and finish construction with ColorChooserDialog.Builder.build().
      Returns:
      the builder object