lib/ewl_label.h
Go to the documentation of this file.00001 /* vim: set sw=8 ts=8 sts=8 expandtab: */ 00002 #ifndef EWL_LABEL_H 00003 #define EWL_LABEL_H 00004 00005 #include "ewl_view.h" 00006 00027 #define EWL_LABEL_TYPE "label" 00028 00033 #define EWL_LABEL_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_LABEL_TYPE)) 00034 00038 typedef struct Ewl_Label Ewl_Label; 00039 00044 #define EWL_LABEL(label) ((Ewl_Label *)label) 00045 00049 struct Ewl_Label 00050 { 00051 Ewl_Widget widget; 00052 }; 00053 00054 Ewl_Widget *ewl_label_new(void); 00055 int ewl_label_init(Ewl_Label *la); 00056 Ewl_View *ewl_label_view_get(void); 00057 00058 void ewl_label_text_set(Ewl_Label *la, const char *text); 00059 const char *ewl_label_text_get(Ewl_Label *la); 00060 00061 Ewl_View *ewl_label_view_get(void); 00062 00067 #endif 00068