Add useful macros for widget type cast.
[midnight-commander.git] / lib / widget / hline.h
blob0f0c1977cdab97d7685f44ee147b062c716025c3
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 gboolean auto_adjust_cols; /* Compute widget.cols from parent width? */
21 gboolean transparent; /* Paint in the default color fg/bg */
22 } WHLine;
24 /*** global variables defined in .c file *********************************************************/
26 /*** declarations of public functions ************************************************************/
28 WHLine *hline_new (int y, int x, int width);
30 /*** inline functions ****************************************************************************/
32 #endif /* MC__WIDGET_HLINE_H */