diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 17:44:12 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 17:44:12 +0000 |
commit | 8ccb487c21368a7fdc8c7c72315325bf0aa06147 (patch) | |
tree | b2056fae01d325924508a41731edfbd4c3cddd23 /lib/widget/background.h | |
parent | Initial commit. (diff) | |
download | mc-upstream/3%4.8.29.tar.xz mc-upstream/3%4.8.29.zip |
Adding upstream version 3:4.8.29.upstream/3%4.8.29upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'lib/widget/background.h')
-rw-r--r-- | lib/widget/background.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/widget/background.h b/lib/widget/background.h new file mode 100644 index 0000000..b9a0b2c --- /dev/null +++ b/lib/widget/background.h @@ -0,0 +1,36 @@ + +/** \file background.h + * \brief Header: WBackground widget + */ + +#ifndef MC__WIDGET_BACKGROUND_H +#define MC__WIDGET_BACKGROUND_H + +/*** typedefs(not structures) and defined constants **********************************************/ + +#define BACKGROUND(x) ((WBackground *)(x)) +#define CONST_BACKGROUND(x) ((const WBackground *)(x)) + +/*** enums ***************************************************************************************/ + +/*** structures declarations (and typedefs of structures)*****************************************/ + +typedef struct +{ + Widget widget; + + int color; /* Color to fill area */ + unsigned char pattern; /* Symbol to fill area */ +} WBackground; + +/*** global variables defined in .c file *********************************************************/ + +/*** declarations of public functions ************************************************************/ + +WBackground *background_new (int y, int x, int lines, int cols, int color, unsigned char pattern, + widget_cb_fn callback); +cb_ret_t background_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *data); + +/*** inline functions ****************************************************************************/ + +#endif /* MC__WIDGET_BACKGROUND_H */ |