ColorChooser
Object Hierarchy:
Description:
[ CCode ( type_cname = "GtkColorChooserInterface" , type_id = "gtk_color_chooser_get_type ()" ) ]
[ Version ( since = "3.4" ) ]
public interface ColorChooser : Object
ColorChooser 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 ColorChooserWidget,
ColorChooserDialog and ColorButton
.
All known implementing classes:
Content:
Properties:
- public abstract RGBA rgba { get; set; }
The GtkColorChooser::rgba
property contains the currently
selected color, as a RGBA struct.
- public bool use_alpha { get; set; }
When GtkColorChooser::use-alpha
is
true, colors may have alpha (translucency) information.
Methods:
- public abstract void add_palette (Orientation orientation, int colors_per_line, RGBA[]? colors)
Adds a palette to the color chooser.
- public abstract RGBA get_rgba ()
Gets the currently-selected color.
- public bool get_use_alpha ()
Returns whether the color chooser shows the alpha channel.
- public abstract void set_rgba (RGBA color)
Sets the color.
- public void set_use_alpha (bool use_alpha)
Sets whether or not the color chooser should use the alpha channel.
Signals:
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref