diff --git a/blendish.h b/blendish.h index a897de6..124902c 100644 --- a/blendish.h +++ b/blendish.h @@ -406,6 +406,13 @@ void bndNodeBackground(NVGcontext *ctx, float x, float y, float w, float h, // the rectangle at origin (x,y) and size (w, h) void bndSplitterWidgets(NVGcontext *ctx, float x, float y, float w, float h); +// Draw the join area overlay stencil into the rectangle +// at origin (x,y) and size (w,h) +// vertical is 0 or 1 and designates the arrow orientation, +// mirror is 0 or 1 and flips the arrow side +void bndJoinAreaOverlay(NVGcontext *ctx, float x, float y, float w, float h, + int vertical, int mirror); + //////////////////////////////////////////////////////////////////////////////// // Estimator Functions @@ -1239,6 +1246,62 @@ void bndSplitterWidgets(NVGcontext *ctx, float x, float y, float w, float h) { nvgStroke(ctx); } +void bndJoinAreaOverlay(NVGcontext *ctx, float x, float y, float w, float h, + int vertical, int mirror) { + + if (vertical) { + float u = w; + w = h; h = u; + } + + float s = (w (w/4)) { + bndJoinAreaOverlay(vg, 0, 0, w, h, 0, (cursor.x > 0)); + } else if (abs(cursor.y) > (h/4)) { + bndJoinAreaOverlay(vg, 0, 0, w, h, 1, (cursor.y > 0)); + } + uiProcess(); }