Ticket #4556: color definitions in the "c.syntax" highlight file.
[midnight-commander.git] / lib / widget / hline.h
blob4a84bf8e8a17bd433564ca5ab2cdc7da4ca9f744
2 /** \file hline.h
3 * \brief Header: WHLine widget
4 */
6 #ifndef MC__WIDGET_HLINE_H
7 #define MC__WIDGET_HLINE_H
9 /*** typedefs(not structures) and defined constants **********************************************/
11 #define HLINE(x) ((WHLine *)(x))
13 /*** enums ***************************************************************************************/
15 /*** structures declarations (and typedefs of structures)*****************************************/
17 typedef struct
19 Widget widget;
20 char *text;
21 gboolean auto_adjust_cols; /* Compute widget.cols from parent width? */
22 gboolean transparent; /* Paint in the default color fg/bg */
23 } WHLine;
25 /*** global variables defined in .c file *********************************************************/
27 /*** declarations of public functions ************************************************************/
29 WHLine *hline_new (int y, int x, int width);
30 void hline_set_text (WHLine * l, const char *text);
31 /* *INDENT-OFF* */
32 void hline_set_textv (WHLine * l, const char *format, ...) G_GNUC_PRINTF (2, 3);
33 /* *INDENT-ON* */
35 /*** inline functions ****************************************************************************/
37 #endif /* MC__WIDGET_HLINE_H */