Download

Support

Ewl_Shadow: A container with a shadow/border


Detailed Description

Defines the Ewl_Shadow class used for adding a shadow decoration around a group of widgets.

Remarks:
Inherits from Ewl_Box.

Tutorial


Data Structures

struct  Ewl_Shadow
 Inherits from Ewl_Box to allow drawing a border and shadow decoration around widgets. More...

Defines

#define EWL_SHADOW(shadow)   ((Ewl_Shadow *) shadow)
#define EWL_SHADOW_IS(w)   (ewl_widget_type_is(EWL_WIDGET(w), EWL_SHADOW_TYPE))
#define EWL_SHADOW_TYPE   "shadow"

Typedefs

typedef struct Ewl_Shadow Ewl_Shadow

Functions

int ewl_shadow_init (Ewl_Shadow *s)
 Initialize a shadow container to default values.
Ewl_Widgetewl_shadow_new (void)
 Allocate and initialize a new shadow container.

Define Documentation

#define EWL_SHADOW ( shadow   )     ((Ewl_Shadow *) shadow)

Typecast a pointer to an Ewl_Shadow pointer.

#define EWL_SHADOW_IS (  )     (ewl_widget_type_is(EWL_WIDGET(w), EWL_SHADOW_TYPE))

Returns TRUE if the widget is an Ewl_Shadow, FALSE otherwise

#define EWL_SHADOW_TYPE   "shadow"

Widget Theme Keys:
/shadow/file
Widget Theme Keys:
/shadow/group
The type name for the Ewl_Shadow widget

Referenced by ewl_shadow_init().


Typedef Documentation

typedef struct Ewl_Shadow Ewl_Shadow

Ewl_Shadow provides a container that has a shadowed border.


Function Documentation

int ewl_shadow_init ( Ewl_Shadow s  ) 

Initialize a shadow container to default values.

Parameters:
s,: the shadow container to initialize
Returns:
Returns TRUE on success, FALSE on failure.

References DCHECK_PARAM_PTR_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_INT, EWL_BOX, ewl_box_init(), ewl_box_orientation_set(), EWL_FLAG_FILL_SHRINK, EWL_OBJECT, ewl_object_fill_policy_set(), EWL_ORIENTATION_VERTICAL, EWL_SHADOW_TYPE, EWL_WIDGET, ewl_widget_appearance_set(), and ewl_widget_inherit().

Referenced by ewl_shadow_new().

Ewl_Widget* ewl_shadow_new ( void   ) 

Allocate and initialize a new shadow container.

Returns:
Returns a new shadow container on success, NULL on failure.

References DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, ewl_shadow_init(), EWL_WIDGET, ewl_widget_destroy(), and NEW.


Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sat May 17 16:51:11 2008