HildonColorChooserDialog

HildonColorChooserDialog — A dialog used to select a color from HSV colorspace.

Synopsis




            HildonColorChooserDialog;
GtkWidget*  hildon_color_chooser_dialog_new (void);
void        hildon_color_chooser_dialog_set_color
                                            (HildonColorChooserDialog *dialog,
                                             GdkColor *color);
void        hildon_color_chooser_dialog_get_color
                                            (HildonColorChooserDialog *dialog,
                                             GdkColor *color);

Object Hierarchy


  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkBin
                                 +----GtkWindow
                                       +----GtkDialog
                                             +----HildonColorChooserDialog

Implemented Interfaces

HildonColorChooserDialog implements GtkBuildable and AtkImplementorIface.

Style Properties


  "container-sizes"      GtkBorder             : Read
  "default-color"        GdkColor              : Read
  "defined-color0"       GdkColor              : Read
  "defined-color1"       GdkColor              : Read
  "defined-color10"      GdkColor              : Read
  "defined-color11"      GdkColor              : Read
  "defined-color12"      GdkColor              : Read
  "defined-color13"      GdkColor              : Read
  "defined-color14"      GdkColor              : Read
  "defined-color15"      GdkColor              : Read
  "defined-color16"      GdkColor              : Read
  "defined-color17"      GdkColor              : Read
  "defined-color18"      GdkColor              : Read
  "defined-color19"      GdkColor              : Read
  "defined-color2"       GdkColor              : Read
  "defined-color20"      GdkColor              : Read
  "defined-color21"      GdkColor              : Read
  "defined-color22"      GdkColor              : Read
  "defined-color23"      GdkColor              : Read
  "defined-color24"      GdkColor              : Read
  "defined-color25"      GdkColor              : Read
  "defined-color26"      GdkColor              : Read
  "defined-color27"      GdkColor              : Read
  "defined-color28"      GdkColor              : Read
  "defined-color29"      GdkColor              : Read
  "defined-color3"       GdkColor              : Read
  "defined-color30"      GdkColor              : Read
  "defined-color31"      GdkColor              : Read
  "defined-color4"       GdkColor              : Read
  "defined-color5"       GdkColor              : Read
  "defined-color6"       GdkColor              : Read
  "defined-color7"       GdkColor              : Read
  "defined-color8"       GdkColor              : Read
  "defined-color9"       GdkColor              : Read
  "num-buttons"          GtkBorder             : Read
  "radio-sizes"          GtkBorder             : Read

Description

HildonColorChooserDialog enables the user to select an arbitrary color from a HSV colorspace. The color is stored in one of the predefined color slots and can be reselected later on.

Additionally the user can choose one of the standard "factory" colors.

Details

HildonColorChooserDialog

typedef struct _HildonColorChooserDialog HildonColorChooserDialog;


hildon_color_chooser_dialog_new ()

GtkWidget*  hildon_color_chooser_dialog_new (void);

Creates a new color chooser dialog.

Returns : a new color chooser dialog.

hildon_color_chooser_dialog_set_color ()

void        hildon_color_chooser_dialog_set_color
                                            (HildonColorChooserDialog *dialog,
                                             GdkColor *color);

Sets the dialog to point at the given color. It'll first try to search the palette of the existing colors to match the passed color. If the color is not found in the pallette, the color in the currently selected box will be modified.

dialog : a HildonColorChooserDialog
color : a color to set on the HildonColorChooserDialog

hildon_color_chooser_dialog_get_color ()

void        hildon_color_chooser_dialog_get_color
                                            (HildonColorChooserDialog *dialog,
                                             GdkColor *color);

Retrives the currently selected color in the color chooser dialog.

dialog : a HildonColorChooserDialog
color : a color structure to fill with the currently selected color

Style Property Details

The "container-sizes" style property

  "container-sizes"      GtkBorder             : Read

Container specific sizes.


The "default-color" style property

  "default-color"        GdkColor              : Read

Default color for nonpainted custom colors.


The "defined-color0" style property

  "defined-color0"       GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color1" style property

  "defined-color1"       GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color10" style property

  "defined-color10"      GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color11" style property

  "defined-color11"      GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color12" style property

  "defined-color12"      GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color13" style property

  "defined-color13"      GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color14" style property

  "defined-color14"      GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color15" style property

  "defined-color15"      GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color16" style property

  "defined-color16"      GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color17" style property

  "defined-color17"      GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color18" style property

  "defined-color18"      GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color19" style property

  "defined-color19"      GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color2" style property

  "defined-color2"       GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color20" style property

  "defined-color20"      GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color21" style property

  "defined-color21"      GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color22" style property

  "defined-color22"      GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color23" style property

  "defined-color23"      GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color24" style property

  "defined-color24"      GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color25" style property

  "defined-color25"      GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color26" style property

  "defined-color26"      GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color27" style property

  "defined-color27"      GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color28" style property

  "defined-color28"      GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color29" style property

  "defined-color29"      GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color3" style property

  "defined-color3"       GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color30" style property

  "defined-color30"      GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color31" style property

  "defined-color31"      GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color4" style property

  "defined-color4"       GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color5" style property

  "defined-color5"       GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color6" style property

  "defined-color6"       GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color7" style property

  "defined-color7"       GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color8" style property

  "defined-color8"       GdkColor              : Read

Pre-defined colors for the dialog.


The "defined-color9" style property

  "defined-color9"       GdkColor              : Read

Pre-defined colors for the dialog.


The "num-buttons" style property

  "num-buttons"          GtkBorder             : Read

Number of color store buttons.


The "radio-sizes" style property

  "radio-sizes"          GtkBorder             : Read

Color radio specific sizes.

See Also

HildonColorButton