Download

Support

Ewl_Progressbar: A progressbar from a value


Detailed Description

A progress bar widget

Remarks:
Inherits from Ewl_Range.

Tutorial


Data Structures

struct  Ewl_Progressbar
 Inherits from Ewl_Range and extends to provide a progressbar widget. More...

Defines

#define EWL_PROGRESSBAR(progressbar)   ((Ewl_Progressbar *) progressbar)
#define EWL_PROGRESSBAR_IS(w)   (ewl_widget_type_is(EWL_WIDGET(w), EWL_PROGRESSBAR_TYPE))
#define EWL_PROGRESSBAR_TYPE   "progressbar"

Typedefs

typedef Ewl_Progressbar Ewl_Progressbar

Functions

void ewl_progressbar_cb_child_resize (Ewl_Container *c, Ewl_Widget *w, int size, Ewl_Orientation o)
void ewl_progressbar_cb_child_show (Ewl_Container *c, Ewl_Widget *w)
void ewl_progressbar_cb_configure (Ewl_Widget *w, void *ev_data, void *user_data)
void ewl_progressbar_cb_value_changed (Ewl_Widget *w, void *ev_data, void *user_data)
void ewl_progressbar_custom_label_set (Ewl_Progressbar *p, const char *format_string)
 Sets the given format string on the progressbar (lf of lf beers).
int ewl_progressbar_init (Ewl_Progressbar *p)
 Initialize the progressbar to some sane starting values.
void ewl_progressbar_label_hide (Ewl_Progressbar *p)
 Hides the given progressbars label.
void ewl_progressbar_label_set (Ewl_Progressbar *p, const char *label)
 Sets the given text on the progressbar.
void ewl_progressbar_label_show (Ewl_Progressbar *p)
 Shows the given progressbars label.
Ewl_Widgetewl_progressbar_new (void)
 Allocate and initialize a new progressbar.

Define Documentation

#define EWL_PROGRESSBAR ( progressbar   )     ((Ewl_Progressbar *) progressbar)

Typecasts a pointer to an Ewl_Progressbar pointer.

#define EWL_PROGRESSBAR_IS (  )     (ewl_widget_type_is(EWL_WIDGET(w), EWL_PROGRESSBAR_TYPE))

Returns TRUE if the widget is an Ewl_Progressbar, FALSE otherwise

#define EWL_PROGRESSBAR_TYPE   "progressbar"

The type name for the Ewl_Progressbar widget


Typedef Documentation

The Ewl_Progressbar provides a statusbar from a given value


Function Documentation

void ewl_progressbar_cb_child_resize ( Ewl_Container c,
Ewl_Widget w,
int  size,
Ewl_Orientation  o 
)

void ewl_progressbar_cb_child_show ( Ewl_Container c,
Ewl_Widget w 
)

void ewl_progressbar_cb_configure ( Ewl_Widget w,
void *  ev_data,
void *  user_data 
)

void ewl_progressbar_cb_value_changed ( Ewl_Widget w,
void *  ev_data,
void *  user_data 
)

void ewl_progressbar_custom_label_set ( Ewl_Progressbar p,
const char *  format_string 
)

Sets the given format string on the progressbar (lf of lf beers).

Parameters:
p,: the progressbars whose label will be changed
format_string,: format string for the new label
Returns:
Returns no value

int ewl_progressbar_init ( Ewl_Progressbar p  ) 

Initialize the progressbar to some sane starting values.

Parameters:
p,: the progressbar to be initialized
Returns:
Returns TRUE on success, FALSE on failure.

void ewl_progressbar_label_hide ( Ewl_Progressbar p  ) 

Hides the given progressbars label.

Parameters:
p,: the progressbars whose label will be hidden
Returns:
Returns no value

void ewl_progressbar_label_set ( Ewl_Progressbar p,
const char *  label 
)

Sets the given text on the progressbar.

Parameters:
p,: the progressbars whose text will be changed
label,: the new label
Returns:
Returns no value

void ewl_progressbar_label_show ( Ewl_Progressbar p  ) 

Shows the given progressbars label.

Parameters:
p,: the progressbars whose label will be shown
Returns:
Returns no value

Ewl_Widget* ewl_progressbar_new ( void   ) 

Allocate and initialize a new progressbar.

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


Copyright © Enlightenment.org

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