lib/ewl_spectrum.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
struct | Ewl_Spectrum |
Inherits from Ewl_Container and extends to provide a colour spectrum. More... | |
Defines | |
#define | EWL_SPECTRUM(sp) ((Ewl_Spectrum *)sp) |
#define | EWL_SPECTRUM_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_SPECTRUM_TYPE)) |
#define | EWL_SPECTRUM_TYPE "spectrum" |
Typedefs | |
typedef struct Ewl_Spectrum | Ewl_Spectrum |
Functions | |
void | ewl_spectrum_canvas_cb_reveal (Ewl_Widget *w, void *ev, void *data) |
void | ewl_spectrum_cb_configure (Ewl_Widget *w, void *ev, void *data) |
void | ewl_spectrum_cb_mouse_down (Ewl_Widget *w, void *ev, void *data) |
void | ewl_spectrum_cb_mouse_move (Ewl_Widget *w, void *ev, void *data) |
void | ewl_spectrum_cb_mouse_up (Ewl_Widget *w, void *ev, void *data) |
void | ewl_spectrum_hsv_get (Ewl_Spectrum *sp, double *h, double *s, double *v) |
Get the HSV value from the spectrum. | |
void | ewl_spectrum_hsv_set (Ewl_Spectrum *sp, double h, double s, double v) |
Set the HSV values for the spectrum. | |
int | ewl_spectrum_init (Ewl_Spectrum *sp) |
Initializes an Ewl_Specturm widget to default values. | |
Ewl_Color_Mode | ewl_spectrum_mode_get (Ewl_Spectrum *sp) |
Get the mode of the spectrum. | |
void | ewl_spectrum_mode_set (Ewl_Spectrum *sp, Ewl_Color_Mode mode) |
Set the mode of the spectrum. | |
Ewl_Widget * | ewl_spectrum_new (void) |
Creates a new Ewl_Spectrum widget. | |
void | ewl_spectrum_rgb_get (Ewl_Spectrum *sp, unsigned int *r, unsigned int *g, unsigned int *b) |
Get the RGB values for the spectrum. | |
void | ewl_spectrum_rgb_set (Ewl_Spectrum *sp, unsigned int r, unsigned int g, unsigned int b) |
Set the RGB values for the spectrum. | |
Ewl_Spectrum_Type | ewl_spectrum_type_get (Ewl_Spectrum *sp) |
Get the type of the spectrum. | |
void | ewl_spectrum_type_set (Ewl_Spectrum *sp, Ewl_Spectrum_Type type) |
Set the type of the spectrum. |