This interface can be implemented by widgets which allow the user to choose a color.
More...
|
| | ColorChooser (ColorChooser&& src) noexcept |
| |
| ColorChooser& | operator= (ColorChooser&& src) noexcept |
| |
| | ~ColorChooser () noexceptoverride |
| |
| GtkColorChooser* | gobj () |
| | Provides access to the underlying C GObject. More...
|
| |
| const GtkColorChooser* | gobj () const |
| | Provides access to the underlying C GObject. More...
|
| |
| Gdk::RGBA | get_rgba () const |
| | Gets the currently selected color. More...
|
| |
| void | set_rgba (const Gdk::RGBA& color) |
| | Sets the color. More...
|
| |
| bool | get_use_alpha () const |
| | Returns whether the color chooser shows the alpha channel. More...
|
| |
| void | set_use_alpha (bool use_alpha=true) |
| | Sets whether or not the color chooser should use the alpha channel. More...
|
| |
| void | add_palette (Orientation orientation, int colors_per_line, const std::vector< Gdk::RGBA >& colors) |
| | Adds a palette to the color chooser. More...
|
| |
| Glib::SignalProxy< void(const Gdk::RGBA&)> | signal_color_activated () |
| |
| Glib::PropertyProxy< Gdk::RGBA > | property_rgba () |
| | The property_rgba() property contains the currently selected color, as a Gdk::RGBA struct. More...
|
| |
| Glib::PropertyProxy_ReadOnly< Gdk::RGBA > | property_rgba () const |
| | The property_rgba() property contains the currently selected color, as a Gdk::RGBA struct. More...
|
| |
| Glib::PropertyProxy< bool > | property_use_alpha () |
| | When signal_use_alpha() is true, colors may have alpha (translucency) information. More...
|
| |
| Glib::PropertyProxy_ReadOnly< bool > | property_use_alpha () const |
| | When signal_use_alpha() is true, colors may have alpha (translucency) information. More...
|
| |
| | Interface () |
| |
| | Interface (Interface &&src) noexcept |
| |
| Interface & | operator= (Interface &&src) noexcept |
| |
| | Interface (const Glib::Interface_Class &interface_class) |
| |
| | Interface (GObject *castitem) |
| |
| | ~Interface () noexceptoverride |
| |
| | Interface (const Interface &)=delete |
| |
| Interface & | operator= (const Interface &)=delete |
| |
| GObject * | gobj () |
| |
| const GObject * | gobj () const |
| |
| | ObjectBase (const ObjectBase &)=delete |
| |
| ObjectBase & | operator= (const ObjectBase &)=delete |
| |
| void | set_property_value (const Glib::ustring &property_name, const Glib::ValueBase &value) |
| |
| void | get_property_value (const Glib::ustring &property_name, Glib::ValueBase &value) const |
| |
| void | set_property (const Glib::ustring &property_name, const PropertyType &value) |
| |
| void | get_property (const Glib::ustring &property_name, PropertyType &value) const |
| |
| void | connect_property_changed (const Glib::ustring &property_name, const sigc::slot< void()> &slot) |
| |
| void | connect_property_changed (const Glib::ustring &property_name, sigc::slot< void()> &&slot) |
| |
| sigc::connection | connect_property_changed_with_return (const Glib::ustring &property_name, const sigc::slot< void()> &slot) |
| |
| sigc::connection | connect_property_changed_with_return (const Glib::ustring &property_name, sigc::slot< void()> &&slot) |
| |
| void | freeze_notify () |
| |
| void | thaw_notify () |
| |
| virtual void | reference () const |
| |
| virtual void | unreference () const |
| |
| GObject * | gobj () |
| |
| const GObject * | gobj () const |
| |
| GObject * | gobj_copy () const |
| |
| | trackable () noexcept |
| |
| | trackable (const trackable &src) noexcept |
| |
| | trackable (trackable &&src) |
| |
| | ~trackable () |
| |
| void | add_destroy_notify_callback (void *data, func_destroy_notify func) const |
| |
| void | notify_callbacks () |
| |
| trackable & | operator= (const trackable &src) |
| |
| trackable & | operator= (trackable &&src) |
| |
| void | remove_destroy_notify_callback (void *data) const |
| |
This interface can be implemented by widgets which allow the user to choose a color.
Depending on the situation, colors may be allowed to have alpha (translucency). The main widgets that implement this interface are ColorChooserWidget, ColorChooserDialog and ColorChooserButton.
- Since gtkmm 3.4:
Adds a palette to the color chooser.
If orientation is horizontal, the colors are grouped in rows, with colors_per_line colors in each row. If orientation is vertical, the colors are grouped in columns instead.
The default color palette of ColorChooserWidget has 27 colors, organized in columns of 3 colors. The default gray palette has 9 grays in a single row.
The layout of the color chooser widget works best when the palettes have 9-10 columns.
Calling this function for the first time has the side effect of removing the default color and gray palettes from the color chooser.
- Parameters
-
| orientation | ORIENTATION_HORIZONTAL if the palette should be displayed in rows, or ORIENTATION_VERTICAL for columns |
| colors_per_line | The number of colors to show in each row/column. |
| colors | The colors of the palette. |
- Since gtkmm 3.4: