19 lines
439 B
C
19 lines
439 B
C
// toolbar.h -- Toolbar widget API
|
|
#ifndef TOOLBAR_H
|
|
#define TOOLBAR_H
|
|
|
|
#include "../../core/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
|