1 2 /** \file label.h 3 * \brief Header: WLabel widget 4 */ 5 6 #ifndef MC__WIDGET_LABEL_H 7 #define MC__WIDGET_LABEL_H 8 9 /*** typedefs(not structures) and defined constants **********************************************/ 10 11 #define LABEL(x) ((WLabel *)(x)) 12 13 /*** enums ***************************************************************************************/ 14 15 /*** structures declarations (and typedefs of structures)*****************************************/ 16 17 typedef struct 18 { 19 Widget widget; 20 gboolean auto_adjust_cols; /* compute widget.cols from strlen(text)? */ 21 char *text; 22 gboolean transparent; /* Paint in the default color fg/bg */ 23 } WLabel; 24 25 /*** global variables defined in .c file *********************************************************/ 26 27 /*** declarations of public functions ************************************************************/ 28 29 WLabel *label_new (int y, int x, const char *text); 30 void label_set_text (WLabel * label, const char *text); 31 /* *INDENT-OFF* */ 32 void label_set_textv (WLabel * label, const char *format, ...) G_GNUC_PRINTF (2, 3); 33 /* *INDENT-ON* */ 34 35 /*** inline functions ****************************************************************************/ 36 37 #endif /* MC__WIDGET_LABEL_H */