hildon-libs 0.14.11 Reference Manual |
---|
HildonColorChooserDialogHildonColorChooserDialog — A dialog to choose a color. |
struct HildonColorChooserDialog_; struct HildonColorChooserDialogClass_; GtkWidget* hildon_color_chooser_dialog_new (); void hildon_color_chooser_dialog_set_color (HildonColorChooserDialog *chooser, GdkColor *color); void hildon_color_chooser_dialog_get_color (HildonColorChooserDialog *chooser, GdkColor *color); void hildon_color_chooser_dialog_emit_color_changed (HildonColorChooserDialog *chooser);
struct HildonColorChooserDialog_ { GtkDialog parent; GdkColor color; guint32 reserved[32]; };
struct HildonColorChooserDialogClass_ { GtkDialogClass parent_class; gboolean (*color_changed) (HildonColorChooserDialog *chooser, GdkColor *color); void (*set_color) (HildonColorChooserDialog *, GdkColor *); void (*reserved[32]) (void *); };
GtkWidget* hildon_color_chooser_dialog_new ();
Creates a new color chooser dialog. The dialog is created through
HildonPluginWidget API and is loaded from plugin. The initially selected
color can be anything, so it's recommended to call
hildon_color_chooser_dialog_set_color()
after creating the widget.
Returns : | a new color chooser dialog |
void hildon_color_chooser_dialog_set_color (HildonColorChooserDialog *chooser, GdkColor *color);
Sets the color selected in the dialog.
chooser : |
a HildonColorChooserDialog |
color : |
a color to be set |
void hildon_color_chooser_dialog_get_color (HildonColorChooserDialog *chooser, GdkColor *color);
Gets the color selected in the dialog.
chooser : |
a HildonColorChooserDialog |
color : |
a pointer to GdkColor to be filled by the function |
<< HildonColorButton | HildonColorSelector >> |