HildonColorChooser

HildonColorChooser — A widget used to select a color from an HSV colorspace.

Synopsis




            HildonColorChooser;
GtkWidget*  hildon_color_chooser_new        (void);
void        hildon_color_chooser_set_color  (HildonColorChooser *chooser,
                                             GdkColor *color);
void        hildon_color_chooser_get_color  (HildonColorChooser *chooser,
                                             GdkColor *color);

Object Hierarchy


  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----HildonColorChooser

Implemented Interfaces

HildonColorChooser implements GtkBuildable and AtkImplementorIface.

Properties


  "color"                GdkColor              : Read / Write

Style Properties


  "graphic-border"       GtkBorder             : Read
  "inner-size"           GtkBorder             : Read

Signals


"color-changed"
            void        user_function      (HildonColorChooser *hildoncolorchooser,
                                            gpointer            user_data)               : Run first

Description

HildonColorChooser is a widget that displays an HSV colorspace. The user can manipulate the colorspace and easily select and shade of any color he wants.

Normally you should not need to use this widget directly. Using HildonColorButton or HildonColorChooserDialog is much more handy.

Details

HildonColorChooser

typedef struct _HildonColorChooser HildonColorChooser;


hildon_color_chooser_new ()

GtkWidget*  hildon_color_chooser_new        (void);

Returns :

hildon_color_chooser_set_color ()

void        hildon_color_chooser_set_color  (HildonColorChooser *chooser,
                                             GdkColor *color);

Sets the color selected in the widget. Will move the crosshair pointer to indicate the passed color.

chooser : a HildonColorChooser
color : a color to be set

hildon_color_chooser_get_color ()

void        hildon_color_chooser_get_color  (HildonColorChooser *chooser,
                                             GdkColor *color);

Retrives the currently selected color in the chooser.

chooser : a HildonColorChooser
color : a color structure to fill with the currently selected color

Property Details

The "color" property

  "color"                GdkColor              : Read / Write

The currently selected color.

Style Property Details

The "graphic-border" style property

  "graphic-border"       GtkBorder             : Read

Size of graphical border.


The "inner-size" style property

  "inner-size"           GtkBorder             : Read

Sizes of SV plane, H bar and spacing.

Signal Details

The "color-changed" signal

void        user_function                  (HildonColorChooser *hildoncolorchooser,
                                            gpointer            user_data)               : Run first

hildoncolorchooser : the object which received the signal.
user_data : user data set when the signal handler was connected.

See Also

HildonColorChooserDialog