| hildon-extras Reference Manual | ||||
|---|---|---|---|---|
HeColorSelectorPrivate;
HeColorSelector;
GtkWidget* he_color_selector_new (void);
GtkWidget* he_color_selector_new_with_default_color
(GdkColor *color);
gboolean he_color_selector_select_red (HeColorSelector *selector,
guint red);
gboolean he_color_selector_select_green (HeColorSelector *selector,
guint green);
gboolean he_color_selector_select_blue (HeColorSelector *selector,
guint blue);
gboolean he_color_selector_set_color (HeColorSelector *selector,
GdkColor *color);
void he_color_selector_get_color (HeColorSelector *selector,
GdkColor *color);
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBox
+----GtkVBox
+----HeColorSelector
HeColorSelector is a color widget with multiple sliders. Users can choose a color by selecting values on the red, green and blue sliders.
The current red can be altered with
he_color_selector_select_red(). The green can be selected
with he_color_selection_select_green(). The blue can be selected
with he_color_selection_select_blue().
GtkWidget* he_color_selector_new (void);
Creates a new HeColorSelector
| Returns : | a new HeColorSelector |
Since 2.2
GtkWidget* he_color_selector_new_with_default_color
(GdkColor *color);
Creates a new HeColorSelector with a specific color.
color : |
|
| Returns : | a new HeColorSelector |
Since 2.2
gboolean he_color_selector_select_red (HeColorSelector *selector, guint red);
Sets the current red color portion on the HeColorSelector widget
selector : |
the HeColorSelector |
red : |
the intensity of red (0 to 65535) to select |
| Returns : | TRUE on success, FALSE otherwise
|
Since 2.2
gboolean he_color_selector_select_green (HeColorSelector *selector, guint green);
Sets the current green color portion on the HeColorSelector widget
selector : |
the HeColorSelector |
green : |
the intensity of green (0 to 65535) to select |
| Returns : | TRUE on success, FALSE otherwise
|
Since 2.2
gboolean he_color_selector_select_blue (HeColorSelector *selector, guint blue);
Sets the current blue color portion on the HeColorSelector widget
selector : |
the HeColorSelector |
blue : |
the intensity of blue (0 to 65535) to select |
| Returns : | TRUE on success, FALSE otherwise
|
Since 2.2
gboolean he_color_selector_set_color (HeColorSelector *selector, GdkColor *color);
Sets the current active color on the HeColorSelector widget
selector : |
the HeColorSelector |
color : |
the color to set |
| Returns : |
Since 2.2
void he_color_selector_get_color (HeColorSelector *selector, GdkColor *color);
Gets the current active color on the HildonColorSelector widget
selector : |
the HeColortSelector |
color : |
a GdkColor to store the color into |
Since 2.2