Download

Support

Ewl_Colordialog: A Simple Colour Dialog widget


Detailed Description

Remarks:
Inherits from Ewl_Dialog.

Tutorial


Data Structures

struct  Ewl_Colordialog
 Inherit from the Ewl_Dialog to create a color dialog widget. More...

Defines

#define EWL_COLORDIALOG(cd)   ((Ewl_Colordialog *) cd)
#define EWL_COLORDIALOG_IS(w)   (ewl_widget_type_is(EWL_WIDGET(w), EWL_COLORDIALOG_TYPE))
#define EWL_COLORDIALOG_TYPE   "colordialog"

Typedefs

typedef Ewl_Colordialog Ewl_Colordialog

Functions

unsigned int ewl_colordialog_alpha_get (Ewl_Colordialog *cp)
 This retrieves the current alpha value selected in the dialog.
void ewl_colordialog_alpha_set (Ewl_Colordialog *cp, unsigned int alpha)
 Sets the alpha value of the cd dialog to alpha.
void ewl_colordialog_cb_button_click (Ewl_Widget *w, void *ev, void *data)
void ewl_colordialog_cb_delete_window (Ewl_Widget *w, void *ev, void *data)
Ewl_Color_Mode ewl_colordialog_color_mode_get (Ewl_Colordialog *cp)
 This will retrive the current Ewl_Color_Mode set on the color dialog.
void ewl_colordialog_color_mode_set (Ewl_Colordialog *cp, Ewl_Color_Mode type)
 Sets the color dialog mode to type.
void ewl_colordialog_current_rgb_get (Ewl_Colordialog *cp, unsigned int *r, unsigned int *g, unsigned int *b)
 This will retrieve the rgb values from the color dialog.
void ewl_colordialog_current_rgb_set (Ewl_Colordialog *cp, unsigned int r, unsigned int g, unsigned int b)
 This sets the given rbg information into the color dialog.
unsigned int ewl_colordialog_has_alpha_get (Ewl_Colordialog *cp)
 This retrieves weither or not the color dialog is showing alpha information.
void ewl_colordialog_has_alpha_set (Ewl_Colordialog *cp, unsigned int alpha)
 This will set if the color dialog will show the alpha information.
int ewl_colordialog_init (Ewl_Colordialog *cd)
 Initialize a color dialog to starting values.
Ewl_Widgetewl_colordialog_new (void)
 Create a new Ewl_Colordialog widget.
void ewl_colordialog_previous_rgba_get (Ewl_Colordialog *cp, unsigned int *r, unsigned int *g, unsigned int *b, unsigned int *a)
 This will retrieve the value current set into the previous color box of the color dialog rgba values from the color dialog.
void ewl_colordialog_previous_rgba_set (Ewl_Colordialog *cp, unsigned int r, unsigned int g, unsigned int b, unsigned int a)
 This sets the given rgba values as the color to display in the previous color box of the color dialog.

Define Documentation

#define EWL_COLORDIALOG ( cd   )     ((Ewl_Colordialog *) cd)

Typecast a pointer to an Ewl_Colordialog pointer.

#define EWL_COLORDIALOG_IS (  )     (ewl_widget_type_is(EWL_WIDGET(w), EWL_COLORDIALOG_TYPE))

Returns TRUE if the widget is an Ewl_Colordialog, FALSE otherwise

#define EWL_COLORDIALOG_TYPE   "colordialog"

The type name for the Ewl_Colordialog widget


Typedef Documentation


Function Documentation

unsigned int ewl_colordialog_alpha_get ( Ewl_Colordialog cd  ) 

This retrieves the current alpha value selected in the dialog.

Parameters:
cd,: The color dialog to get the alpha value from
Returns:
Returns the current alpha value selected in the dialog

void ewl_colordialog_alpha_set ( Ewl_Colordialog cd,
unsigned int  alpha 
)

Sets the alpha value of the cd dialog to alpha.

Parameters:
cd,: The color dialog to set the alpha into
alpha,: The alpha value to set into the color dialog
Returns:
Returns no value

void ewl_colordialog_cb_button_click ( Ewl_Widget w,
void *  ev,
void *  data 
)

void ewl_colordialog_cb_delete_window ( Ewl_Widget w,
void *  ev,
void *  data 
)

Ewl_Color_Mode ewl_colordialog_color_mode_get ( Ewl_Colordialog cd  ) 

This will retrive the current Ewl_Color_Mode set on the color dialog.

Parameters:
cd,: The color dialog to get the mode from
Returns:
Returns the current mode of the color dialog

void ewl_colordialog_color_mode_set ( Ewl_Colordialog cd,
Ewl_Color_Mode  type 
)

Sets the color dialog mode to type.

Parameters:
cd,: The color dialog to set the mode of
type,: The mode to set on the color dialog
Returns:
Returns no value.

void ewl_colordialog_current_rgb_get ( Ewl_Colordialog cd,
unsigned int *  r,
unsigned int *  g,
unsigned int *  b 
)

This will retrieve the rgb values from the color dialog.

Parameters:
cd,: The color dialog to get the rgb information from
r,: Where to store the red value
g,: Where to store the green value
b,: Where to store the blue value
Returns:
Returns no value.

void ewl_colordialog_current_rgb_set ( Ewl_Colordialog cd,
unsigned int  r,
unsigned int  g,
unsigned int  b 
)

This sets the given rbg information into the color dialog.

Parameters:
cd,: The color dialog to set the rgb values into
r,: The red value to set
g,: The green value to set
b,: The blue value to set
Returns:
Returns no value.

unsigned int ewl_colordialog_has_alpha_get ( Ewl_Colordialog cd  ) 

This retrieves weither or not the color dialog is showing alpha information.

Parameters:
cd,: The color dialog to get the alpha information from
Returns:
Returns TRUE if the color dialog is showing alpha information

void ewl_colordialog_has_alpha_set ( Ewl_Colordialog cd,
unsigned int  alpha 
)

This will set if the color dialog will show the alpha information.

Parameters:
cd,: The color dialog to set the alpha value on
alpha,: If the color dialog should show the alpha option
Returns:
Returns no value

int ewl_colordialog_init ( Ewl_Colordialog cd  ) 

Initialize a color dialog to starting values.

Parameters:
cd,: the color dialog to initialize
Returns:
Returns TRUE on success, FALSE on failure.

Ewl_Widget* ewl_colordialog_new ( void   ) 

Create a new Ewl_Colordialog widget.

Returns:
Returns a new Ewl_Colordialog widget

void ewl_colordialog_previous_rgba_get ( Ewl_Colordialog cd,
unsigned int *  r,
unsigned int *  g,
unsigned int *  b,
unsigned int *  a 
)

This will retrieve the value current set into the previous color box of the color dialog rgba values from the color dialog.

Parameters:
cd,: The color dialog to get the rgb information from
r,: Where to store the red value
g,: Where to store the green value
b,: Where to store the blue value
a,: Where to store the alpha value
Returns:
Returns no value.

void ewl_colordialog_previous_rgba_set ( Ewl_Colordialog cd,
unsigned int  r,
unsigned int  g,
unsigned int  b,
unsigned int  a 
)

This sets the given rgba values as the color to display in the previous color box of the color dialog.

Parameters:
cd,: The color dialog to set the previous rgb values into
r,: The red value to set
g,: The green value to set
b,: The blue value to set
a,: The alpha value to set
Returns:
Returns no value.


Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sun Sep 27 01:49:46 2009