2010-11-12 11:03:57 +03:00
|
|
|
|
|
|
|
/** \file hline.h
|
|
|
|
* \brief Header: WHLine widget
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MC__WIDGET_HLINE_H
|
|
|
|
#define MC__WIDGET_HLINE_H
|
|
|
|
|
|
|
|
/*** typedefs(not structures) and defined constants **********************************************/
|
|
|
|
|
2012-10-11 12:25:07 +04:00
|
|
|
#define HLINE(x) ((WHLine *)(x))
|
|
|
|
|
2010-11-12 11:03:57 +03:00
|
|
|
/*** enums ***************************************************************************************/
|
|
|
|
|
|
|
|
/*** structures declarations (and typedefs of structures)*****************************************/
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
Widget widget;
|
2012-12-24 14:54:10 +04:00
|
|
|
char *text;
|
2010-11-12 11:03:57 +03:00
|
|
|
gboolean auto_adjust_cols; /* Compute widget.cols from parent width? */
|
|
|
|
gboolean transparent; /* Paint in the default color fg/bg */
|
|
|
|
} WHLine;
|
|
|
|
|
|
|
|
/*** global variables defined in .c file *********************************************************/
|
|
|
|
|
|
|
|
/*** declarations of public functions ************************************************************/
|
|
|
|
|
|
|
|
WHLine *hline_new (int y, int x, int width);
|
2012-12-24 14:54:10 +04:00
|
|
|
void hline_set_text (WHLine * l, const char *text);
|
2010-11-12 11:03:57 +03:00
|
|
|
|
|
|
|
/*** inline functions ****************************************************************************/
|
|
|
|
|
|
|
|
#endif /* MC__WIDGET_HLINE_H */
|