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 AtkImplementorIface and GtkBuildable.

Properties

  "color"                    GdkColor*             : Read / Write

Style Properties

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

Signals

  "color-changed"                                  : 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;

Warning

HildonColorChooser is deprecated and should not be used in newly-written code.


hildon_color_chooser_new ()

GtkWidget*          hildon_color_chooser_new            (void);

Warning

hildon_color_chooser_new is deprecated and should not be used in newly-written code.

Creates a new HildonColorChooser.

Returns : the new HildonColorChooser

hildon_color_chooser_set_color ()

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

Warning

hildon_color_chooser_set_color is deprecated and should not be used in newly-written code.

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);

Warning

hildon_color_chooser_get_color is deprecated and should not be used in newly-written code.

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.


The "outer-border" style property

  "outer-border"             GtkBorder*            : Read

The outer border for the chooser.

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