// widgetStatusBar.h  -- StatusBar widget API
#ifndef WIDGET_STATUSBAR_H
#define WIDGET_STATUSBAR_H

#include "../core/dvxWidget.h"

typedef struct {
    WidgetT *(*create)(WidgetT *parent);
} StatusBarApiT;

static inline const StatusBarApiT *dvxStatusBarApi(void) {
    static const StatusBarApiT *sApi;
    if (!sApi) { sApi = (const StatusBarApiT *)wgtGetApi("statusbar"); }
    return sApi;
}

#define wgtStatusBar(parent) dvxStatusBarApi()->create(parent)

#endif // WIDGET_STATUSBAR_H
