Lines Matching defs:delta

697 /// which resets internal state like delta mouse position and button transistions.
1439 /// NK_WINDOW_SCROLL_AUTO_HIDE | Automatically hides the window scrollbar if no user interaction: also requires delta time in `nk_context` to be set each frame
4609 struct nk_vec2 delta;
13957 in->mouse.delta.x = 0;
13958 in->mouse.delta.y = 0;
13986 in->mouse.delta.x = in->mouse.pos.x - in->mouse.prev.x;
13987 in->mouse.delta.y = in->mouse.pos.y - in->mouse.prev.y;
15665 win->bounds.x = win->bounds.x + in->mouse.delta.x;
15666 win->bounds.y = win->bounds.y + in->mouse.delta.y;
15667 in->mouse.buttons[NK_BUTTON_LEFT].clicked_pos.x += in->mouse.delta.x;
15668 in->mouse.buttons[NK_BUTTON_LEFT].clicked_pos.y += in->mouse.delta.y;
15992 int has_input = ctx->input.mouse.delta.x != 0 || ctx->input.mouse.delta.y != 0 || ctx->input.mouse.scroll_delta.y != 0;
16051 float delta_x = in->mouse.delta.x;
16054 window->bounds.x += in->mouse.delta.x;
16060 scaler.x += in->mouse.delta.x;
16065 if (window_size.y < window->bounds.h + in->mouse.delta.y) {
16066 if ((in->mouse.delta.y < 0) || (in->mouse.delta.y > 0 && in->mouse.pos.y >= scaler.y)) {
16067 window->bounds.h = window->bounds.h + in->mouse.delta.y;
16068 scaler.y += in->mouse.delta.y;
21427 float pixel, delta;
21431 pixel = in->mouse.delta.y;
21432 delta = (pixel / scroll->h) * target;
21433 scroll_offset = NK_CLAMP(0, scroll_offset + delta, target - scroll->h);
21438 pixel = in->mouse.delta.x;
21439 delta = (pixel / scroll->w) * target;
21440 scroll_offset = NK_CLAMP(0, scroll_offset + delta, target - scroll->w);
22949 (in->mouse.delta.x != 0.0f || in->mouse.delta.y != 0.0f)) {
23549 float delta, pixels;
23550 pixels = in->mouse.delta.x;
23551 delta = pixels * inc_per_pixel;
23555 variant->value.i = variant->value.i + (int)delta;
23559 variant->value.f = variant->value.f + (float)delta;
23563 variant->value.d = variant->value.d + (double)delta;
25743 /// you have to also set a delta time inside the `nk_context`.