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

Paned: A paned widget

Provides a widget to have a resizable paned container. More...

Data Structures

struct  Ewl_Paned
 Inherits from Ewl_Widget and extends to provided the paned widget. More...

struct  Ewl_Paned
 Inherits from Ewl_Widget and extends to provided the paned widget. More...


Defines

#define EWL_PANED(paned)   ((Ewl_Paned *) paned)
 Typecasts a pointer to a Ewl_Paned pointer.

#define ewl_hpaned_new()   ewl_paned_new(EWL_ORIENTATION_HORIZONTAL)
 Shortcut to allocate a new horizontal Ewl_Paned.

#define ewl_vpaned_new()   ewl_paned_new(EWL_ORIENTATION_VERTICAL)
 Shortcut to allocate a new vertial Ewl_Paned.


Functions

Ewl_Widgetewl_paned_new (Ewl_Orientation orient)
 Allocate and initialize a new paned widget.

int ewl_paned_init (Ewl_Paned *p, Ewl_Orientation orient)
 Initialize a new paned widget to default values.

void ewl_paned_active_set (Ewl_Paned *p, Ewl_Position pos)
 Changes the current active pane of the paned widget.

Ewl_Position ewl_paned_active_get (Ewl_Paned *p)
 Gets the current active partiton from the paned wiget.

void ewl_paned_first_pane_append (Ewl_Paned *p, Ewl_Widget *w)
 Appends the wiget w to the first pane in p.

void ewl_paned_first_pane_prepend (Ewl_Paned *p, Ewl_Widget *w)
 Prepends the wiget w to the first pane in p.

void ewl_paned_second_pane_append (Ewl_Paned *p, Ewl_Widget *w)
 Appends the wiget w to the second pane in p.

void ewl_paned_second_pane_prepend (Ewl_Paned *p, Ewl_Widget *w)
 Prepends the wiget w to the second pane in p.


Detailed Description

Provides a widget to have a resizable paned container.


Function Documentation

Ewl_Position ewl_paned_active_get Ewl_Paned p  ) 
 

Gets the current active partiton from the paned wiget.

Parameters:
p: the paned wiget to work against
Returns:
Returns the Ewl_Position specifing the active position

void ewl_paned_active_set Ewl_Paned p,
Ewl_Position  pos
 

Changes the current active pane of the paned widget.

Parameters:
p: the paned wiget to work on
pos: The Ewl_Position to set to the active partition
Returns:
Returns no value.

void ewl_paned_first_pane_append Ewl_Paned p,
Ewl_Widget w
 

Appends the wiget w to the first pane in p.

Parameters:
p: the paned wiget to work against
w: the wiget to append
Returns:
Returns no value.

void ewl_paned_first_pane_prepend Ewl_Paned p,
Ewl_Widget w
 

Prepends the wiget w to the first pane in p.

Parameters:
p: the paned wiget to work against
w: the wiget to append
Returns:
Returns no value.

int ewl_paned_init Ewl_Paned p,
Ewl_Orientation  orient
 

Initialize a new paned widget to default values.

Parameters:
p: the paned widget to initialize
orient: the orientation of the paned widget
Returns:
Returns 1 on success or 0 on failure

Ewl_Widget* ewl_paned_new Ewl_Orientation  orient  ) 
 

Allocate and initialize a new paned widget.

Parameters:
orient: the desired orientation of the paned widget
Returns:
Returns NULL on failure, or a pointer to a new paned widget on success.

void ewl_paned_second_pane_append Ewl_Paned p,
Ewl_Widget w
 

Appends the wiget w to the second pane in p.

Parameters:
p: the paned wiget to work against
w: the wiget to append
Returns:
Returns no value.

void ewl_paned_second_pane_prepend Ewl_Paned p,
Ewl_Widget w
 

Prepends the wiget w to the second pane in p.

Parameters:
p: the paned wiget to work against
w: the wiget to append
Returns:
Returns no value.