shithub: neindaw

ref: 191ae360b6afca3e01681baa721b3266d9564599
dir: /uiglue.h/

View raw version
typedef struct MetaGlue MetaGlue;
typedef struct UIGlue UIGlue;

struct MetaGlue {
	void *metaInterface;
	void (*declare)(void *metaInterface, const char *key, const char *value);
};

struct UIGlue {
	void *uiInterface;
	void (*openTabBox)(void *uiInterface, const char *label);
	void (*openHorizontalBox)(void *uiInterface, const char *label);
	void (*openVerticalBox)(void *uiInterface, const char *label);
	void (*closeBox)(void *uiInterface);
	void (*addButton)(void *uiInterface, const char *label, float *zone);
	void (*addCheckButton)(void *uiInterface, const char *label, float *zone);
	void (*addVerticalSlider)(void *uiInterface, const char *label, float *zone, float init, float min, float max, float step);
	void (*addHorizontalSlider)(void *uiInterface, const char *label, float *zone, float init, float min, float max, float step);
	void (*addNumEntry)(void *uiInterface, const char *label, float *zone, float init, float min, float max, float step);
	void (*addHorizontalBargraph)(void *uiInterface, const char *label, float *zone, float min, float max);
	void (*addVerticalBargraph)(void *uiInterface, const char *label, float *zone, float min, float max);
	void (*declare)(void *uiInterface, float *zone, const char *key, const char *value);
};

extern UIGlue uiglue;