shithub: neindaw

ref: b1e84a59c5c100e9aa5c31eb39d58e174289249d
dir: /uiglue.h/

View raw version
#ifndef FAUSTFLOAT
#define FAUSTFLOAT float
#endif

typedef struct UIGlue UIGlue;
typedef struct MetaGlue MetaGlue;

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, FAUSTFLOAT *zone);
	void (*addCheckButton)(void *uiInterface, const char *label, FAUSTFLOAT *zone);
	void (*addVerticalSlider)(void *uiInterface, const char *label, FAUSTFLOAT *zone, FAUSTFLOAT init, FAUSTFLOAT min, FAUSTFLOAT max, FAUSTFLOAT step);
	void (*addHorizontalSlider)(void *uiInterface, const char *label, FAUSTFLOAT *zone, FAUSTFLOAT init, FAUSTFLOAT min, FAUSTFLOAT max, FAUSTFLOAT step);
	void (*addNumEntry)(void *uiInterface, const char *label, FAUSTFLOAT *zone, FAUSTFLOAT init, FAUSTFLOAT min, FAUSTFLOAT max, FAUSTFLOAT step);
	void (*addHorizontalBargraph)(void *uiInterface, const char *label, FAUSTFLOAT *zone, FAUSTFLOAT min, FAUSTFLOAT max);
	void (*addVerticalBargraph)(void *uiInterface, const char *label, FAUSTFLOAT *zone, FAUSTFLOAT min, FAUSTFLOAT max);
	void (*declare)(void *uiInterface, FAUSTFLOAT *zone, const char *key, const char *value);
};

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

extern UIGlue uiglue;