Download

Support

Ewl_Label: A fully-themable text label


Detailed Description

Defines a class for a fullty-themable text label

Remarks:
Inherits from Ewl_Widget.

Tutorial


Data Structures

struct  Ewl_Label
 Inherits from Ewl_Widget class to provide a simple label. More...

Defines

#define EWL_LABEL(label)   ((Ewl_Label *)label)
#define EWL_LABEL_IS(w)   (ewl_widget_type_is(EWL_WIDGET(w), EWL_LABEL_TYPE))
#define EWL_LABEL_TYPE   "label"

Typedefs

typedef Ewl_Label Ewl_Label

Functions

int ewl_label_init (Ewl_Label *la)
 Initializes the la widget.
Ewl_Widgetewl_label_new (void)
 Creates a new Ewl_Label widget with the text text in it.
const char * ewl_label_text_get (Ewl_Label *la)
 Gets the current text set into the label.
void ewl_label_text_set (Ewl_Label *la, const char *text)
 Sets the given text into the widget la.
Ewl_Viewewl_label_view_get (void)
 Creates and returns a view to be used by Ewl_Label widgets.

Define Documentation

#define EWL_LABEL ( label   )     ((Ewl_Label *)label)

Typecasts a pointer to an Ewl_Label pointer

#define EWL_LABEL_IS (  )     (ewl_widget_type_is(EWL_WIDGET(w), EWL_LABEL_TYPE))

Returns TRUE if the widget is an Ewl_Label, FALSE otherwise

#define EWL_LABEL_TYPE   "label"

The type name for the Ewl_Label widget


Typedef Documentation

typedef struct Ewl_Label Ewl_Label

The Ewl_Label widget


Function Documentation

int ewl_label_init ( Ewl_Label la  ) 

Initializes the la widget.

Parameters:
la,: The Ewl_Label to initialize
Returns:
Returns TRUE on success, FALSE on falure

Ewl_Widget* ewl_label_new ( void   ) 

Creates a new Ewl_Label widget with the text text in it.

Returns:
Returns a new Ewl_Widget if successful, NULL on failure

const char* ewl_label_text_get ( Ewl_Label la  ) 

Gets the current text set into the label.

Parameters:
la,: The Ewl_Label to get the text from
Returns:
Returns no value.
Note:
This pointer will only be valid until the next time ewl_label_text_set() is called.

void ewl_label_text_set ( Ewl_Label la,
const char *  text 
)

Sets the given text into the widget la.

Parameters:
la,: The Ewl_Widget to set the text on
text,: The text to set into the widget
Returns:
Returns no value

Ewl_View* ewl_label_view_get ( void   ) 

Creates and returns a view to be used by Ewl_Label widgets.

Returns:
Returns a view that can be used to display Ewl_Label widgets


Copyright © Enlightenment.org

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