MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / nk_unify

Function nk_unify

extern/glfw/deps/nuklear.h:6186–6198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6184 return nk_vec2i(v[0], v[1]);
6185}
6186NK_LIB void
6187nk_unify(struct nk_rect *clip, const struct nk_rect *a, float x0, float y0,
6188 float x1, float y1)
6189{
6190 NK_ASSERT(a);
6191 NK_ASSERT(clip);
6192 clip->x = NK_MAX(a->x, x0);
6193 clip->y = NK_MAX(a->y, y0);
6194 clip->w = NK_MIN(a->x + a->w, x1) - clip->x;
6195 clip->h = NK_MIN(a->y + a->h, y1) - clip->y;
6196 clip->w = NK_MAX(0, clip->w);
6197 clip->h = NK_MAX(0, clip->h);
6198}
6199
6200NK_API void
6201nk_triangle_from_direction(struct nk_vec2 *result, struct nk_rect r,

Callers 7

nk_panel_beginFunction · 0.85
nk_group_scrolled_endFunction · 0.85
nk_widget_is_hoveredFunction · 0.85
nk_widgetFunction · 0.85
nk_do_editFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected