| hildon-extras Reference Manual | ||||
|---|---|---|---|---|
HeColorButtonPrivate;
HeColorButton;
GtkWidget* he_color_button_new (void);
GtkWidget* he_color_button_new_with_color (const GdkColor *color);
void he_color_button_get_color (HeColorButton *button,
GdkColor *color);
void he_color_button_set_color (HeColorButton *button,
const GdkColor *color);
gboolean he_color_button_get_popup_shown (HeColorButton *button);
void he_color_button_popdown (HeColorButton *button);
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBin
+----GtkButton
+----HeColorButton
HeColorButton is a widget to open a HeColorDialog. The selected color is shown in the button. The selected color is a property of the button. The property name is "color" and its type is GtkColor.
GtkWidget* he_color_button_new (void);
Creates a new HeColorButton
| Returns : | a new HeColorButton |
Since 2.2
GtkWidget* he_color_button_new_with_color (const GdkColor *color);
Creates a new HeColorButton with a specific color.
color : |
|
| Returns : | a new HeColorButton |
Since 2.2
void he_color_button_get_color (HeColorButton *button, GdkColor *color);
button : |
|
color : |
a color GdkColor to be filled with the current color |
Since 2.2
void he_color_button_set_color (HeColorButton *button, const GdkColor *color);
Sets the current color on the HeColorButton widget
button : |
|
color : |
the color to set |
Since 2.2
gboolean he_color_button_get_popup_shown (HeColorButton *button);
button : |
|
| Returns : |
void he_color_button_popdown (HeColorButton *button);
If the color dialog is currently popped-up (visible) it will be popped-down (hidden).
button : |
Since 2.2