![]() |
![]() |
![]() |
GPE Manual: libgpewidget Reference | ![]() |
---|---|---|---|---|
#define COL_STR_LEN #define COLOR_F_TO_U (v) #define RGBA32_U_COMPOSE (r,g,b,a) #define RGBA32_F_COMPOSE (r,g,b,a) GpeColorDialog; GtkWidget* gpe_color_dialog_new (GtkWindow *parent, GtkDialogFlags flags, const gchar *initcolor); const gchar* gpe_color_dialog_get_color_str (GpeColorDialog *color_dialog); void gpe_color_dialog_set_color_str (GpeColorDialog *color_dialog, const gchar *colordesc); const GdkColor* gpe_color_dialog_get_color_gdk (GpeColorDialog *color_dialog); void gpe_color_dialog_set_color_gdk (GpeColorDialog *color_dialog, const GdkColor *new_color);
The GPE Colour selection dialog is a smal and fast dialog to select free defineable RGB colour values. In contrast to GtkColorDialog it is much faster and simpler to fit the needs of mobile devices.
GtkWidget* gpe_color_dialog_new (GtkWindow *parent, GtkDialogFlags flags, const gchar *initcolor);
Creates a small colour selection dialog suitable for use on small screens. When the user clicks a button a "response" signal is emitted with response IDs from GtkResponseType. See GtkDialog for more details.
|
|
|
|
|
|
Returns : |
Since 0.111
const gchar* gpe_color_dialog_get_color_str (GpeColorDialog *color_dialog);
Get a pointer to the string GRB representation of the currently selected colour. The description has the form rrggbb.
|
|
Returns : |
Since 0.111
void gpe_color_dialog_set_color_str (GpeColorDialog *color_dialog, const gchar *colordesc);
Set the selection dialog to the given colour defined by a string value. This may be any string description XParseColor is able to interpret. e.g. HTML-like values rrggbb or any definition from rgb.txt.
|
|
|
Since 0.111
const GdkColor* gpe_color_dialog_get_color_gdk (GpeColorDialog *color_dialog);
Get a pointer to the currently selected and allocated colour GdkColor value. The value must not be altered or freed.
|
|
Returns : |
Since 0.111
void gpe_color_dialog_set_color_gdk (GpeColorDialog *color_dialog, const GdkColor *new_color);
Set the selection dialog to the given colour defined by a GdkColor value.
|
|
|
Since 0.111