Download

Support

lib/ewl_colorpicker.c File Reference

#include "ewl_base.h"
#include "ewl_colorpicker.h"
#include "ewl_grid.h"
#include "ewl_label.h"
#include "ewl_radiobutton.h"
#include "ewl_spectrum.h"
#include "ewl_spinner.h"
#include "ewl_macros.h"
#include "ewl_private.h"
#include "ewl_debug.h"

Include dependency graph for ewl_colorpicker.c:


Data Structures

struct  Ewl_Colorpicker_Radiobutton
 Inherits from Ewl_Radiobutton and extends to provide colorpicker information. More...
struct  Ewl_Colorpicker_Spinner
 Inerits from Ewl_Spinner and extneds to provide colorpicker information. More...

Defines

#define EWL_COLORPICKER_RADIOBUTTON(button)   ((Ewl_Colorpicker_Radiobutton *)button)
#define EWL_COLORPICKER_RADIOBUTTON_TYPE   "colorpicker_radiobutton"
#define EWL_COLORPICKER_SPINNER(spinner)   ((Ewl_Colorpicker_Spinner *)spinner)
#define EWL_COLORPICKER_SPINNER_TYPE   "colorpicker_spinner"

Typedefs

typedef struct
Ewl_Colorpicker_Radiobutton 
Ewl_Colorpicker_Radiobutton
typedef struct
Ewl_Colorpicker_Spinner 
Ewl_Colorpicker_Spinner

Functions

unsigned int ewl_colorpicker_alpha_get (Ewl_Colorpicker *cp)
 Retrive the alpha value from the color picker.
void ewl_colorpicker_alpha_set (Ewl_Colorpicker *cp, unsigned int alpha)
 Set the alpha value into the color picker.
void ewl_colorpicker_cb_alpha_change (Ewl_Widget *w, void *ev, void *data)
void ewl_colorpicker_cb_dnd_data (Ewl_Widget *w, void *ev, void *data)
void ewl_colorpicker_cb_previous_clicked (Ewl_Widget *w, void *ev, void *data)
void ewl_colorpicker_cb_radio_change (Ewl_Widget *w, void *ev, void *data)
void ewl_colorpicker_cb_spinner_change (Ewl_Widget *w, void *ev, void *data)
void ewl_colorpicker_cb_square_change (Ewl_Widget *w, void *ev, void *data)
void ewl_colorpicker_cb_vertical_change (Ewl_Widget *w, void *ev, void *data)
Ewl_Color_Mode ewl_colorpicker_color_mode_get (Ewl_Colorpicker *cp)
 Get the color mode of the color picker.
void ewl_colorpicker_color_mode_set (Ewl_Colorpicker *cp, Ewl_Color_Mode mode)
 Set the color mode of the color picker.
void ewl_colorpicker_current_rgb_get (Ewl_Colorpicker *cp, unsigned int *r, unsigned int *g, unsigned int *b)
 Retrieve the current RGB values from the color picker.
void ewl_colorpicker_current_rgb_set (Ewl_Colorpicker *cp, unsigned int r, unsigned int g, unsigned int b)
 Set the current RGB values into the color picker.
unsigned int ewl_colorpicker_has_alpha_get (Ewl_Colorpicker *cp)
 Retrieves if the color picker displays alpha information.
void ewl_colorpicker_has_alpha_set (Ewl_Colorpicker *cp, unsigned int alpha)
 Set if the color picker displays alpha information.
int ewl_colorpicker_init (Ewl_Colorpicker *cp)
 Initializes the cp color picker widget.
Ewl_Widgetewl_colorpicker_new (void)
 Creates a new Ewl_Colorpicker widget.
void ewl_colorpicker_previous_rgba_get (Ewl_Colorpicker *cp, unsigned int *r, unsigned int *g, unsigned int *b, unsigned int *a)
 Retrieve the previous RGBA values from the color picker.
void ewl_colorpicker_previous_rgba_set (Ewl_Colorpicker *cp, unsigned int r, unsigned int g, unsigned int b, unsigned int a)
 Set the previous RBGA values into the color picker.

Define Documentation

#define EWL_COLORPICKER_RADIOBUTTON ( button   )     ((Ewl_Colorpicker_Radiobutton *)button)

#define EWL_COLORPICKER_RADIOBUTTON_TYPE   "colorpicker_radiobutton"

#define EWL_COLORPICKER_SPINNER ( spinner   )     ((Ewl_Colorpicker_Spinner *)spinner)

#define EWL_COLORPICKER_SPINNER_TYPE   "colorpicker_spinner"


Typedef Documentation


Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sat May 17 16:49:27 2008