Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Related Pages

Floater: A Floating Container

Defines a widget for layering above other widgets in EWL's drawing area, with the ability to follow the movement of another widget. More...

Data Structures

struct  Ewl_Floater
 Inherits from Ewl_Box for layout purposes. More...

struct  Ewl_Floater
 Inherits from Ewl_Box for layout purposes. More...


Defines

#define EWL_FLOATER(floater)   ((Ewl_Floater *) floater)
 Typecasts a pointer to an Ewl_Floater pointer.


Typedefs

typedef Ewl_Floater Ewl_Floater
 The floater is a container for widgets that need to be drawn on top of multiple widgets (ie.


Functions

Ewl_Widgetewl_floater_new (Ewl_Widget *parent)
 Allocate a new floater widget.

void ewl_floater_position_set (Ewl_Floater *parent, int x, int y)
 Set the start x/y position of the floater.

void ewl_floater_init (Ewl_Floater *f, Ewl_Widget *parent)
 Initialize a floater to default values.


Detailed Description

Defines a widget for layering above other widgets in EWL's drawing area, with the ability to follow the movement of another widget.


Typedef Documentation

typedef struct Ewl_Floater Ewl_Floater
 

The floater is a container for widgets that need to be drawn on top of multiple widgets (ie.

dropdownbox)


Function Documentation

void ewl_floater_init Ewl_Floater f,
Ewl_Widget parent
 

Initialize a floater to default values.

Parameters:
f: the floater widget
parent: the parent widget, we need this to get the evas and clip_box
Returns:
Returns no value.
Sets the fields and callbacks of the floater f to their defaults.

Ewl_Widget* ewl_floater_new Ewl_Widget parent  ) 
 

Allocate a new floater widget.

Parameters:
parent: the parent widget to follow if desired
Returns:
Returns NULL on failure, or the new floater widget on success.
The parent widget should be either a widget to follow relative too, or a window for absolute positioning.

void ewl_floater_position_set Ewl_Floater f,
int  x,
int  y
 

Set the start x/y position of the floater.

Parameters:
f: Ewl_Floater * - the floater widget
x: int - start x coordinate from the top
y: int - start y coordinate from the top
Returns:
Returns no value