HildonColorChooserDialog

HildonColorChooserDialog — A dialog to choose a color.

Synopsis




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

Description

HildonColorChooserDialog is a widget widget to choose a color.

Details

struct HildonColorChooserDialog_

struct HildonColorChooserDialog_ {
  GtkDialog parent;

  GdkColor color;

  guint32 reserved[32];
};


struct HildonColorChooserDialogClass_

struct HildonColorChooserDialogClass_ {
  GtkDialogClass parent_class;

  gboolean (*color_changed) (HildonColorChooserDialog *chooser, GdkColor *color);

  void (*set_color) (HildonColorChooserDialog *, GdkColor *);

  void (*reserved[32]) (void *);
};


hildon_color_chooser_dialog_new ()

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

hildon_color_chooser_dialog_set_color ()

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

hildon_color_chooser_dialog_get_color ()

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

hildon_color_chooser_dialog_emit_color_changed ()

void        hildon_color_chooser_dialog_emit_color_changed
                                            (HildonColorChooserDialog *chooser);

chooser :

See Also

HildonColorButton, HildonColorChooser