ColorChooser
Object Hierarchy:
Gtk.ColorChooser
Gtk.ColorChooser
Gtk.ColorChooser
GLib.Object
GLib.Object
GLib.Object->Gtk.ColorChooser
Description:
[ CCode ( type_cname = "GtkColorChooserInterface" , type_id = "gtk_color_chooser_get_type ()" ) ] [ Version ( deprecated = true , deprecated_since = "4.10" ) ]public interface ColorChooser : Object
Warning: ColorChooser is deprecated since 4.10.
`GtkColorChooser` is an interface that is implemented by widgets for choosing colors.
Note:
Use [class@Gtk.ColorDialog] and [class@Gtk.ColorDialogButton] instead of widgets implementing `GtkColorChooser`
Depending on the situation, colors may be allowed to have alpha (translucency).
In GTK, the main widgets that implement this interface are [class@Gtk.ColorChooserWidget], [class@Gtk.ColorChooserDialog] and [
class@Gtk.ColorButton].
All known implementing classes:
Content:
Properties:
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