3 * \brief Header: WBackground widget
6 #ifndef MC__WIDGET_BACKGROUND_H
7 #define MC__WIDGET_BACKGROUND_H
9 /*** typedefs(not structures) and defined constants **********************************************/
11 #define BACKGROUND(x) ((WBackground *)(x))
12 #define CONST_BACKGROUND(x) ((const WBackground *)(x))
14 /*** enums ***************************************************************************************/
16 /*** structures declarations (and typedefs of structures)*****************************************/
22 int color
; /* Color to fill area */
23 unsigned char pattern
; /* Symbol to fill area */
26 /*** global variables defined in .c file *********************************************************/
28 /*** declarations of public functions ************************************************************/
30 WBackground
*background_new (int y
, int x
, int lines
, int cols
, int color
, unsigned char pattern
,
31 widget_cb_fn callback
);
32 cb_ret_t
background_callback (Widget
* w
, Widget
* sender
, widget_msg_t msg
, int parm
, void *data
);
34 /*** inline functions ****************************************************************************/
36 #endif /* MC__WIDGET_BACKGROUND_H */