/*	Public domain	*/

#ifndef _AGAR_WIDGET_STATUSBAR_H_
#define _AGAR_WIDGET_STATUSBAR_H_

#include <agar/gui/widget.h>
#include <agar/gui/box.h>
#include <agar/gui/label.h>

#include <agar/gui/begin.h>

#define AG_STATUSBAR_MAX_LABELS 8

typedef struct ag_statusbar {
	struct ag_box box;
	Uint flags;
#define AG_STATUSBAR_HFILL	0x01
#define AG_STATUSBAR_VFILL	0x02
#define AG_STATUSBAR_EXPAND	(AG_STATUSBAR_HFILL|AG_STATUSBAR_VFILL)
	AG_Label *labels[AG_STATUSBAR_MAX_LABELS];
	int nlabels;
} AG_Statusbar;

/* Begin generated block */
__BEGIN_DECLS
extern DECLSPEC AG_WidgetClass agStatusbarClass;
extern DECLSPEC AG_Statusbar *AG_StatusbarNew(void *, Uint);
extern DECLSPEC AG_Label *AG_StatusbarAddLabel(AG_Statusbar *, const char *, ...);
__END_DECLS
/* Close generated block */

#include <agar/gui/close.h>
#endif /* _AGAR_WIDGET_STATUSBAR_H_ */
