Merge branch '4549_subshell_execl_argv0'
[midnight-commander.git] / lib / widget / background.h
blobb9a0b2cf10b1eed374d0a0941195d8d3ee9fa2f6
2 /** \file background.h
3 * \brief Header: WBackground widget
4 */
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)*****************************************/
18 typedef struct
20 Widget widget;
22 int color; /* Color to fill area */
23 unsigned char pattern; /* Symbol to fill area */
24 } WBackground;
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 */