// statBar.h  -- StatusBar widget API
#ifndef STATBAR_H
#define STATBAR_H

#include "../../../libs/kpunch/libdvx/dvxWgt.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 // STATBAR_H
