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

Bar: A status bar widget

Defines a class for displaying status bars. More...

Data Structures

struct  Ewl_Statusbar
 Inherits from the Ewl_Box class and extends it to provide for a simple status bar. More...

struct  Ewl_Statusbar
 Inherits from the Ewl_Box class and extends it to provide for a simple status bar. More...


Defines

#define EWL_STATUSBAR(statusbar)   ((Ewl_Statusbar *) statusbar)
 Typecasts a pointer to a Ewl_Statusbar pointer.


Functions

Ewl_Widgetewl_statusbar_new (void)
 Allocate and initialize a new statusbar widget.

int ewl_statusbar_init (Ewl_Statusbar *sb)
 Initialize a statusbar to default values.

void ewl_statusbar_left_hide (Ewl_Statusbar *sb)
 hide the box on the left of the status bar

void ewl_statsbar_left_show (Ewl_Statusbar *sb)
 show the box on the left of the status bar

void ewl_statusbar_right_hide (Ewl_Statusbar *sb)
 hide the box on the right of the status bar

void ewl_statusbar_right_show (Ewl_Statusbar *sb)
 show the box on the right of the status bar

void ewl_statusbar_active_set (Ewl_Statusbar *sb, Ewl_Position pos)
 Sets the active statusbar container.

void ewl_statusbar_left_append (Ewl_Statusbar *sb, Ewl_Widget *w)
 pack the given widget w into the statusbar sb into right of the left box.

void ewl_statusbar_left_prepend (Ewl_Statusbar *sb, Ewl_Widget *w)
 pack the given widget w into the statusbar sb into the left of the left box

void ewl_statusbar_right_append (Ewl_Statusbar *sb, Ewl_Widget *w)
 pack the given widget w into the statusbar sb into the right of the right box

void ewl_statusbar_right_prepend (Ewl_Statusbar *sb, Ewl_Widget *w)
 pack the given widget w into the statusbar sb into the left of the right box

void ewl_statusbar_push (Ewl_Statusbar *sb, char *txt)
 Displays the given status message on the statusbar.

void ewl_statusbar_pop (Ewl_Statusbar *sb)
 Removes the most recient status message and displays the one before it.


Detailed Description

Defines a class for displaying status bars.


Function Documentation

void ewl_statsbar_left_show Ewl_Statusbar sb  ) 
 

show the box on the left of the status bar

Parameters:
sb: The statusbar to work on
Returns:
Returns no value

void ewl_statusbar_active_set Ewl_Statusbar sb,
Ewl_Position  pos
 

Sets the active statusbar container.

Parameters:
sb: The status bar to work on
pos: The side of the statusbar to set active either EWL_POSITION_LEFT or EWL_POSITION_RIGHT
Returns:
Returns no value

int ewl_statusbar_init Ewl_Statusbar sb  ) 
 

Initialize a statusbar to default values.

Parameters:
sb: the statusbar to initialize
Returns:
Returns 1 on success and 0 on failure

void ewl_statusbar_left_append Ewl_Statusbar sb,
Ewl_Widget w
 

pack the given widget w into the statusbar sb into right of the left box.

Parameters:
sb: The statusbar to operate on
w: The widget to add to the container
Returns:
Returns no value

void ewl_statusbar_left_hide Ewl_Statusbar sb  ) 
 

hide the box on the left of the status bar

Parameters:
sb: The statusbar to work on
Returns:
Returns no value

void ewl_statusbar_left_prepend Ewl_Statusbar sb,
Ewl_Widget w
 

pack the given widget w into the statusbar sb into the left of the left box

Parameters:
sb: The statusbar to operate on
w: The widget to add to the container
Returns:
Returns no value

Ewl_Widget* ewl_statusbar_new void   ) 
 

Allocate and initialize a new statusbar widget.

Returns:
Returns NULL on failure, or a pointer to a new statusbar on success.

void ewl_statusbar_pop Ewl_Statusbar sb  ) 
 

Removes the most recient status message and displays the one before it.

Parameters:
sb: the status bar to remove the status mesasge from
Returns:
Returns no value

void ewl_statusbar_push Ewl_Statusbar sb,
char *  txt
 

Displays the given status message on the statusbar.

Parameters:
sb: the statusbar to add the message too
txt: the status message to display
Returns:
Returns no value

void ewl_statusbar_right_append Ewl_Statusbar sb,
Ewl_Widget w
 

pack the given widget w into the statusbar sb into the right of the right box

Parameters:
sb: The statusbar to operate on
w: The widget to add to the container
Returns:
Returns no value

void ewl_statusbar_right_hide Ewl_Statusbar sb  ) 
 

hide the box on the right of the status bar

Parameters:
sb: The statusbar to work on
Returns:
Returns no value

void ewl_statusbar_right_prepend Ewl_Statusbar sb,
Ewl_Widget w
 

pack the given widget w into the statusbar sb into the left of the right box

Parameters:
sb: The statusbar to operate on
w: The widget to add to the container
Returns:
Returns no value

void ewl_statusbar_right_show Ewl_Statusbar sb  ) 
 

show the box on the right of the status bar

Parameters:
sb: The statusbar to work on
Returns:
Returns no value