21 lines
614 B
C
21 lines
614 B
C
// widgetSeparator.h -- Separator widget API
|
|
#ifndef WIDGET_SEPARATOR_H
|
|
#define WIDGET_SEPARATOR_H
|
|
|
|
#include "../core/dvxWidget.h"
|
|
|
|
typedef struct {
|
|
WidgetT *(*hSeparator)(WidgetT *parent);
|
|
WidgetT *(*vSeparator)(WidgetT *parent);
|
|
} SeparatorApiT;
|
|
|
|
static inline const SeparatorApiT *dvxSeparatorApi(void) {
|
|
static const SeparatorApiT *sApi;
|
|
if (!sApi) { sApi = (const SeparatorApiT *)wgtGetApi("separator"); }
|
|
return sApi;
|
|
}
|
|
|
|
#define wgtHSeparator(parent) dvxSeparatorApi()->hSeparator(parent)
|
|
#define wgtVSeparator(parent) dvxSeparatorApi()->vSeparator(parent)
|
|
|
|
#endif // WIDGET_SEPARATOR_H
|