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 struct 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. 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.
Ewl_Viewewl_label_view_get (void)
 Creates and returns a view to be used by Ewl_Label widgets.

Define Documentation

#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"

Widget Theme Keys:
/label
The type name for the Ewl_Label widget

Referenced by ewl_label_init(), ewl_label_text_get(), and ewl_label_text_set().


Typedef Documentation

typedef struct Ewl_Label Ewl_Label

The Ewl_Label widget


Function Documentation

int ewl_label_init ( Ewl_Label la  ) 

const char* ewl_label_text_get ( Ewl_Label la  ) 

Gets the current text set into the label. Note, this pointer will only be valid until the next time ewl_label_text_set() is called.

Parameters:
la,: The Ewl_Label to get the text from
Returns:
Returns no value.

References DCHECK_PARAM_PTR_RET, DCHECK_TYPE_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, EWL_LABEL_TYPE, EWL_WIDGET, and ewl_widget_appearance_text_get().

Referenced by ewl_border_label_get(), ewl_button_label_get(), ewl_icon_alt_text_get(), and ewl_notebook_page_tab_text_get().

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

References DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, ewl_view_header_fetch_set(), ewl_view_new(), and ewl_view_widget_fetch_set().

Referenced by ewl_filepicker_init().


Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sat May 17 16:51:10 2008