Files
RedBear-OS/recipes/wip/files/mc/source/lib/widget/buttonbar.h
T
vasilito facf0c92e0 feat: track all source trees in git — full fork offline-first model
Red Bear OS is a full fork. All sources must be available from git clone
with zero network access. Removed gitignore rules that excluded fetched
source trees under recipes/*/source/, local/recipes/kde/*/source/,
local/recipes/qt/*/source/, and vendor source trees.

Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded.

127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt
frameworks, mesa, wayland, DRM drivers, and every other recipe source.
2026-05-14 10:55:53 +01:00

47 lines
1.4 KiB
C

/** \file buttonbar.h
* \brief Header: WButtonBar widget
*/
#ifndef MC__WIDGET_BUTTONBAR_H
#define MC__WIDGET_BUTTONBAR_H
/*** typedefs(not structures) and defined constants **********************************************/
#define BUTTONBAR(x) ((WButtonBar *)(x))
/* number of bttons in buttonbar */
#define BUTTONBAR_LABELS_NUM 10
#define buttonbar_clear_label(bb, idx, recv) buttonbar_set_label (bb, idx, "", NULL, recv)
/*** enums ***************************************************************************************/
/*** structures declarations (and typedefs of structures)*****************************************/
typedef struct WButtonBar
{
Widget widget;
struct
{
char *text;
long command;
Widget *receiver;
int end_coord; /* cumulative width of buttons so far */
} labels[BUTTONBAR_LABELS_NUM];
} WButtonBar;
/*** global variables defined in .c file *********************************************************/
/*** declarations of public functions ************************************************************/
WButtonBar *buttonbar_new (void);
void buttonbar_set_label (WButtonBar * bb, int idx, const char *text,
const global_keymap_t * keymap, Widget * receiver);
WButtonBar *buttonbar_find (const WDialog * h);
/*** inline functions ****************************************************************************/
#endif /* MC__WIDGET_BUTTONBAR_H */