int demorect(int parent, const char *label, float hue, int box, int layout, int w, int h, int m1, int m2, int m3, int m4) { int item = colorrect(label, nvgHSL(hue, 1.0f, 0.8f)); uiSetLayout(item, layout); uiSetBox(item, box); uiSetMargins(item, m1, m2, m3, m4); uiSetSize(item, w, h); uiInsert(parent, item); return item; }
JNIEXPORT void JNICALL Java_org_lwjgl_nanovg_NanoVG_nnvgHSL(JNIEnv *__env, jclass clazz, jfloat h, jfloat s, jfloat l, jlong __result) { UNUSED_PARAMS(__env, clazz) *((NVGcolor*)(intptr_t)__result) = nvgHSL(h, s, l); }