lib/ewl_colordialog.h
Go to the documentation of this file.00001
00002 #ifndef EWL_COLORDIALOG_H
00003 #define EWL_COLORDIALOG_H
00004
00005 #include "ewl_dialog.h"
00006
00022 #define EWL_COLORDIALOG_TYPE "colordialog"
00023
00028 #define EWL_COLORDIALOG_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_COLORDIALOG_TYPE))
00029
00034 #define EWL_COLORDIALOG(cd) ((Ewl_Colordialog *) cd)
00035
00039 typedef struct Ewl_Colordialog Ewl_Colordialog;
00040
00044 struct Ewl_Colordialog
00045 {
00046 Ewl_Dialog dialog;
00047 Ewl_Widget *picker;
00048 };
00049
00050 Ewl_Widget *ewl_colordialog_new(void);
00051 int ewl_colordialog_init(Ewl_Colordialog *cd);
00052
00053 void ewl_colordialog_has_alpha_set(Ewl_Colordialog *cp, unsigned int alpha);
00054 unsigned int ewl_colordialog_has_alpha_get(Ewl_Colordialog *cp);
00055
00056 void ewl_colordialog_alpha_set(Ewl_Colordialog *cp, unsigned int alpha);
00057 unsigned int ewl_colordialog_alpha_get(Ewl_Colordialog *cp);
00058
00059 void ewl_colordialog_current_rgb_set(Ewl_Colordialog *cp, unsigned int r,
00060 unsigned int g, unsigned int b);
00061 void ewl_colordialog_current_rgb_get(Ewl_Colordialog *cp, unsigned int *r,
00062 unsigned int *g, unsigned int *b);
00063
00064 void ewl_colordialog_previous_rgba_set(Ewl_Colordialog *cp, unsigned int r,
00065 unsigned int g, unsigned int b,
00066 unsigned int a);
00067 void ewl_colordialog_previous_rgba_get(Ewl_Colordialog *cp, unsigned int *r,
00068 unsigned int *g, unsigned int *b,
00069 unsigned int *a);
00070
00071 void ewl_colordialog_color_mode_set(Ewl_Colordialog *cp, Ewl_Color_Mode type);
00072 Ewl_Color_Mode ewl_colordialog_color_mode_get(Ewl_Colordialog *cp);
00073
00074
00075
00076
00077 void ewl_colordialog_cb_button_click(Ewl_Widget *w, void *ev, void *data);
00078 void ewl_colordialog_cb_delete_window(Ewl_Widget *w, void *ev, void *data);
00079
00084 #endif
00085