Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 701 Bytes

colorchooserwidget.rst

File metadata and controls

23 lines (16 loc) · 701 Bytes

ColorChooserWidget

The ColorChooserWidget is used when the colour selection widget is to be embedded in a :doc:`window` or :doc:`dialog`.

Note

Internally, the ColorChooserWidget uses the :doc:`colorchooser` object to perform actions such as retrieving the selected colour. See the ColorChooser page for further methods.

Constructor

Construction of the ColorChooserWidget is made by:

GtkWidget *colorchooserwidget = gtk_color_chooser_widget_new();

Example

Below is an example of a ColorChooserWidget:

.. literalinclude:: _examples/colorchooserwidget.c

Download: :download:`ColorChooserWidget <_examples/colorchooserwidget.c>`