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,
00054 unsigned int alpha);
00055 unsigned int ewl_colordialog_has_alpha_get(Ewl_Colordialog *cp);
00056
00057 void ewl_colordialog_alpha_set(Ewl_Colordialog *cp,
00058 unsigned int alpha);
00059 unsigned int ewl_colordialog_alpha_get(Ewl_Colordialog *cp);
00060
00061 void ewl_colordialog_current_rgb_set(Ewl_Colordialog *cp,
00062 unsigned int r,
00063 unsigned int g,
00064 unsigned int b);
00065 void ewl_colordialog_current_rgb_get(Ewl_Colordialog *cp,
00066 unsigned int *r,
00067 unsigned int *g,
00068 unsigned int *b);
00069
00070 void ewl_colordialog_previous_rgba_set(Ewl_Colordialog *cp,
00071 unsigned int r,
00072 unsigned int g,
00073 unsigned int b,
00074 unsigned int a);
00075 void ewl_colordialog_previous_rgba_get(Ewl_Colordialog *cp,
00076 unsigned int *r,
00077 unsigned int *g,
00078 unsigned int *b,
00079 unsigned int *a);
00080
00081 void ewl_colordialog_color_mode_set(Ewl_Colordialog *cp,
00082 Ewl_Color_Mode type);
00083 Ewl_Color_Mode ewl_colordialog_color_mode_get(Ewl_Colordialog *cp);
00084
00085
00086
00087
00088 void ewl_colordialog_cb_button_click(Ewl_Widget *w, void *ev, void *data);
00089 void ewl_colordialog_cb_delete_window(Ewl_Widget *w, void *ev, void *data);
00090
00095 #endif
00096