| hildon-extras Reference Manual | ||||
|---|---|---|---|---|
HeColorDialogPrivate;
HeColorDialog;
GtkWidget* he_color_dialog_new (void);
void he_color_dialog_get_color (HeColorDialog *dialog,
GdkColor *color);
void he_color_dialog_set_color (HeColorDialog *dialog,
GdkColor *color);
GdkColor* he_color_dialog_present (GtkWindow *parent,
GdkColor *default_color,
gchar *title);
GdkColor* he_color_dialog_present_interop (GdkNativeWindow parent_winid,
GdkColor *default_color,
gchar *title);
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBin
+----GtkWindow
+----GtkDialog
+----HeColorDialog
GtkWidget* he_color_dialog_new (void);
Creates a new HeColorDialog
| Returns : | a new HeColorDialog |
Since 2.2
void he_color_dialog_get_color (HeColorDialog *dialog, GdkColor *color);
dialog : |
|
color : |
a color GdkColor to be filled with the current color |
Since 2.2
void he_color_dialog_set_color (HeColorDialog *dialog, GdkColor *color);
Sets the current color on the HeColorDialog widget
dialog : |
|
color : |
the color to set |
Since 2.2
GdkColor* he_color_dialog_present (GtkWindow *parent,
GdkColor *default_color,
gchar *title);
Convenient method that presents the user with a HeColorDialog.
parent: Optional. The parent window of the dialog.
default_color: Optional. The default color GdkColor to be shown in the dialog.
title: Optional. The title of the dialog window. (If NULL, the default title is used.)
parent : |
|
default_color : |
|
title : |
|
| Returns : | a GdkColor* pointing to the selected color. If the dialog is cancelled, a copy of default_color is returned.
(Or NULL, if default_color is NULL.)
The caller is responsible for freeing the result using gdk_color_free().
|
GdkColor* he_color_dialog_present_interop (GdkNativeWindow parent_winid,
GdkColor *default_color,
gchar *title);
Convenient method that presents the user with a HeColorDialog.
parent_winid: The parent native window of the dialog.
default_color: Optional. The default color GdkColor to be shown in the dialog.
title: Optional. The title of the dialog window. (If NULL, the default title is used.)
parent_winid : |
|
default_color : |
|
title : |
|
| Returns : | a GdkColor* pointing to the selected color. If the dialog is cancelled, a copy of default_color is returned.
(Or NULL, if default_color is NULL.)
The caller is responsible for freeing the returned pointer's memory.
|