Interface ColorChooser.Builder<B extends Builder<B>>

All Superinterfaces:
BuilderInterface
All Known Implementing Classes:
ColorButton.Builder, ColorChooserDialog.Builder, ColorChooserWidget.Builder
Enclosing interface:
ColorChooser

public static interface ColorChooser.Builder<B extends Builder<B>> extends BuilderInterface
  • Method Details

    • setRgba

      @Deprecated default B setRgba(RGBA rgba)
      Deprecated.
      Use ColorDialog and ColorDialogButton instead of widgets implementing GtkColorChooser

      The currently selected color, as a GdkRGBA struct.

      The property can be set to change the current selection programmatically.

      Parameters:
      rgba - the value for the rgba property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setUseAlpha

      @Deprecated default B setUseAlpha(boolean useAlpha)
      Deprecated.
      Use ColorDialog and ColorDialogButton instead of widgets implementing GtkColorChooser

      Whether colors may have alpha (translucency).

      When ::use-alpha is false, the GdkRGBA struct obtained via the Gtk.ColorChooser:rgba property will be forced to have alpha == 1.

      Implementations are expected to show alpha by rendering the color over a non-uniform background (like a checkerboard pattern).

      Parameters:
      useAlpha - the value for the use-alpha property
      Returns:
      the Builder instance is returned, to allow method chaining