| 6184 | return nk_vec2i(v[0], v[1]); |
| 6185 | } |
| 6186 | NK_LIB void |
| 6187 | nk_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 | |
| 6200 | NK_API void |
| 6201 | nk_triangle_from_direction(struct nk_vec2 *result, struct nk_rect r, |
no outgoing calls
no test coverage detected