Interface

GtkColorChooser

deprecated: 4.10 

Description [src]

interface Gtk.ColorChooser : GObject.Object

GtkColorChooser is an interface that is implemented by widgets for choosing colors.

Depending on the situation, colors may be allowed to have alpha (translucency).

In GTK, the main widgets that implement this interface are GtkColorChooserWidget, GtkColorChooserDialog and GtkColorButton.

Deprecated since: 4.10

Use GtkColorDialog and GtkColorDialogButton instead of widgets implementing GtkColorChooser

Prerequisite

In order to implement ColorChooser, your type must inherit fromGObject.

Instance methods

gtk_color_chooser_add_palette

Adds a palette to the color chooser.

deprecated: 4.10 

gtk_color_chooser_get_rgba

Gets the currently-selected color.

deprecated: 4.10 

gtk_color_chooser_get_use_alpha

Returns whether the color chooser shows the alpha channel.

deprecated: 4.10 

gtk_color_chooser_set_rgba

Sets the color.

deprecated: 4.10 

gtk_color_chooser_set_use_alpha

Sets whether or not the color chooser should use the alpha channel.

deprecated: 4.10 

Properties

Gtk.ColorChooser:rgba

The currently selected color, as a GdkRGBA struct.

deprecated: 4.10 

Gtk.ColorChooser:use-alpha

Whether colors may have alpha (translucency).

deprecated: 4.10 

Signals

Gtk.ColorChooser::color-activated

Emitted when a color is activated from the color chooser.

deprecated: 4.10 

Interface structure

struct GtkColorChooserInterface {
  GTypeInterface base_interface;
  void (* get_rgba) (
    GtkColorChooser* chooser,
    GdkRGBA* color
  );
  void (* set_rgba) (
    GtkColorChooser* chooser,
    const GdkRGBA* color
  );
  void (* add_palette) (
    GtkColorChooser* chooser,
    GtkOrientation orientation,
    int colors_per_line,
    int n_colors,
    GdkRGBA* colors
  );
  void (* color_activated) (
    GtkColorChooser* chooser,
    const GdkRGBA* color
  );
  
}

No description available.

Interface members
base_interface
GTypeInterface
 

No description available.

get_rgba
void (* get_rgba) (
    GtkColorChooser* chooser,
    GdkRGBA* color
  )
 

No description available.

set_rgba
void (* set_rgba) (
    GtkColorChooser* chooser,
    const GdkRGBA* color
  )
 

No description available.

add_palette
void (* add_palette) (
    GtkColorChooser* chooser,
    GtkOrientation orientation,
    int colors_per_line,
    int n_colors,
    GdkRGBA* colors
  )
 

No description available.

color_activated
void (* color_activated) (
    GtkColorChooser* chooser,
    const GdkRGBA* color
  )
 

No description available.

Virtual methods

Gtk.ColorChooser.add_palette

Adds a palette to the color chooser.

deprecated: 4.10 

Gtk.ColorChooser.color_activated
No description available.

Gtk.ColorChooser.get_rgba

Gets the currently-selected color.

deprecated: 4.10 

Gtk.ColorChooser.set_rgba

Sets the color.

deprecated: 4.10