// widgetSpacer.h  -- Spacer widget API
#ifndef WIDGET_SPACER_H
#define WIDGET_SPACER_H

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

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

static inline const SpacerApiT *dvxSpacerApi(void) {
    static const SpacerApiT *sApi;
    if (!sApi) { sApi = (const SpacerApiT *)wgtGetApi("spacer"); }
    return sApi;
}

#define wgtSpacer(parent) dvxSpacerApi()->create(parent)

#endif // WIDGET_SPACER_H
