// spacer.h  -- Spacer widget API
#ifndef SPACER_H
#define SPACER_H

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