// widgetToolbar.h  -- Toolbar widget API
#ifndef WIDGET_TOOLBAR_H
#define WIDGET_TOOLBAR_H

#include "../core/dvxWidget.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 // WIDGET_TOOLBAR_H
