// toolbar.h  -- Toolbar widget API
#ifndef TOOLBAR_H
#define TOOLBAR_H

#include "../../../libs/kpunch/libdvx/dvxWgt.h"

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

static inline const ToolbarApiT *dvxToolbarApi(void) {
    static const ToolbarApiT *sApi;
    if (!sApi) { sApi = (const ToolbarApiT *)wgtGetApi("toolbar"); }
    return sApi;
}

#define wgtToolbar(parent) dvxToolbarApi()->create(parent)

#endif // TOOLBAR_H
