HeColorSelector

HeColorSelector — A widget to select a color.

Synopsis

                    HeColorSelectorPrivate;
                    HeColorSelector;
GtkWidget*          he_color_selector_new               (void);
GtkWidget*          he_color_selector_new_with_default_color
                                                        (GdkColor *default_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);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkBox
                                 +----GtkVBox
                                       +----HeColorSelector

Implemented Interfaces

HeColorSelector implements AtkImplementorIface and GtkBuildable.

Description

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_selector_select_green(). The blue can be selected with he_color_selector_select_blue().

Details

HeColorSelectorPrivate

typedef struct _HeColorSelectorPrivate HeColorSelectorPrivate;


HeColorSelector

typedef struct _HeColorSelector HeColorSelector;


he_color_selector_new ()

GtkWidget*          he_color_selector_new               (void);

Creates a new HeColorSelector

Returns : a new HeColorSelector

Since 2.2


he_color_selector_new_with_default_color ()

GtkWidget*          he_color_selector_new_with_default_color
                                                        (GdkColor *default_color);

Creates a new HeColorSelector with a specific color.

default_color : a GdkColor to initialize with
Returns : a new HeColorSelector

Since 2.2


he_color_selector_select_red ()

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


he_color_selector_select_green ()

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


he_color_selector_select_blue ()

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


he_color_selector_set_color ()

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 : TRUE

Since 2.2


he_color_selector_get_color ()

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