bcee62920ecc2e1d401952335cb46d5af9831a24
[midnight-commander.git] / lib / widget / label.h
blobbcee62920ecc2e1d401952335cb46d5af9831a24
2 /** \file label.h
3 * \brief Header: WLabel widget
4 */
6 #ifndef MC__WIDGET_LABEL_H
7 #define MC__WIDGET_LABEL_H
9 /*** typedefs(not structures) and defined constants **********************************************/
11 /*** enums ***************************************************************************************/
13 /*** structures declarations (and typedefs of structures)*****************************************/
15 typedef struct
17 Widget widget;
18 gboolean auto_adjust_cols; /* compute widget.cols from strlen(text)? */
19 char *text;
20 gboolean transparent; /* Paint in the default color fg/bg */
21 } WLabel;
23 /*** global variables defined in .c file *********************************************************/
25 /*** declarations of public functions ************************************************************/
27 WLabel *label_new (int y, int x, const char *text);
28 void label_set_text (WLabel * label, const char *text);
30 /*** inline functions ****************************************************************************/
32 #endif /* MC__WIDGET_LABEL_H */