Lines Matching defs:input
32 /// a default renderbackend or OS window and input handling but instead provides a very modular
33 /// library approach by using simple input state for input and draw
71 /// - Can be easily modified to only update on user input instead of frame updates
134 /// NK_INPUT_MAX | Defines the max number of bytes which can be added as text input in one frame. Under normal circumstances this should be more than sufficient.
517 /// They are used for window, memory, input, style, stack, commands and time management and need
676 /// The input API is responsible for holding the current input state composed of
677 /// mouse, key and text input states.
679 /// Instead all input state has to be provided by platform specific code. This on one hand
698 /// After `nk_input_begin` all current input state needs to be provided. This includes
699 /// mouse motion, button and key pressed and released, text input and scrolling.
700 /// Both event- or state-based input handling are supported by this API
701 /// and should work without problems. Finally after all input state has been
702 /// mirrored `nk_input_end` needs to be called to finish input process.
726 /// __nk_input_begin__ | Begins the input mirroring process. Needs to be called before all other `nk_input_xxx` calls
734 /// __nk_input_end__ | Ends the input mirroring process by calculating state changes. Don't call any `nk_input_xxx` function referenced above after this call
779 /// Begins the input mirroring process by resetting text, scroll
902 /// End the input mirroring process by resetting mouse grabbing
953 /// In program flow context draw commands need to be executed after input has been
996 /// First is only update on input. This of course is only an option if your
998 /// If you actually only update on input make sure to update the UI two times each
1007 /// // [...wait for input ]
1055 /// // [...input...]
1322 /// user input by being clicked on or programmatically by calling `nk_window_focus`.
1344 /// In the grand concept window and widget declarations need to occur after input
1433 /// NK_WINDOW_MOVABLE | The movable flag indicates that a window can be moved by user input or by dragging the window header
1434 /// NK_WINDOW_SCALABLE | The scalable flag indicates that a window can be scaled by user input by dragging a scaler icon at the button of the window
1842 /// Can be used to decide if input should be processed by UI or your specific input handling.
4224 * user text input. Main upside is complete control over memory while the biggest
4348 struct nk_input *input = &ctx->input;
5358 /* sets window widgets into a read only mode and does not allow input changes */
5360 /* prevents all interaction caused by input to either window or widgets inside */
5572 struct nk_input input;
6620 ^ matches the beginning of the input string
6621 $ matches the end of the input string
10567 /* input: */
13279 nk_decompress_length(unsigned char *input)
13281 return (unsigned int)((input[8] << 24) + (input[9] << 16) + (input[10] << 8) + input[11]);
13949 in = &ctx->input;
13968 in = &ctx->input;
13983 in = &ctx->input;
13995 in = &ctx->input;
14011 in = &ctx->input;
14025 ctx->input.mouse.scroll_delta.x += val.x;
14026 ctx->input.mouse.scroll_delta.y += val.y;
14037 in = &ctx->input;
15053 nk_zero(&ctx->input, sizeof(ctx->input));
15214 if (ctx->style.cursor_active && !ctx->input.mouse.grabbed && ctx->style.cursor_visible) {
15220 mouse_bounds.x = ctx->input.mouse.pos.x - cursor->offset.x;
15221 mouse_bounds.y = ctx->input.mouse.pos.y - cursor->offset.y;
15635 in = (win->flags & NK_WINDOW_NO_INPUT) ? 0: &ctx->input;
15729 } else if (nk_input_is_mouse_hovering_rect(&ctx->input, header)) {
15851 in = (layout->flags & NK_WINDOW_ROM || layout->flags & NK_WINDOW_NO_INPUT) ? 0 :&ctx->input;
15990 /* hide scroll if no user input */
15992 int has_input = ctx->input.mouse.delta.x != 0 || ctx->input.mouse.delta.y != 0 || ctx->input.mouse.scroll_delta.y != 0;
16347 inpanel = nk_input_has_mouse_click_down_in_rect(&ctx->input, NK_BUTTON_LEFT, win_bounds, nk_true);
16348 inpanel = inpanel && ctx->input.mouse.buttons[NK_BUTTON_LEFT].clicked;
16349 ishovered = nk_input_is_mouse_hovering_rect(&ctx->input, win_bounds);
16350 if ((win != ctx->active) && ishovered && !ctx->input.mouse.buttons[NK_BUTTON_LEFT].down) {
16376 if (NK_INBOX(ctx->input.mouse.pos.x, ctx->input.mouse.pos.y,
16562 return nk_input_is_mouse_hovering_rect(&ctx->input, ctx->current->bounds);
16575 if (iter->popup.active && iter->popup.win && nk_input_is_mouse_hovering_rect(&ctx->input, iter->popup.win->bounds))
16581 if (nk_input_is_mouse_hovering_rect(&ctx->input, header))
16583 } else if (nk_input_is_mouse_hovering_rect(&ctx->input, iter->bounds)) {
16930 pressed = nk_input_is_mouse_released(&ctx->input, NK_BUTTON_LEFT);
16932 pressed = nk_input_is_mouse_pressed(&ctx->input, NK_BUTTON_LEFT);
16934 in_body = nk_input_is_mouse_hovering_rect(&ctx->input, body);
16935 in_header = nk_input_is_mouse_hovering_rect(&ctx->input, header);
17092 is_clicked = nk_input_mouse_clicked(&ctx->input, NK_BUTTON_RIGHT, trigger_bounds);
17103 body.x = ctx->input.mouse.pos.x;
17104 body.y = ctx->input.mouse.pos.y;
17146 in = (state == NK_WIDGET_ROM || win->layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
17181 in = (state == NK_WIDGET_ROM || win->layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
17217 in = (state == NK_WIDGET_ROM || win->layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
17266 {int pressed = nk_input_is_mouse_pressed(&ctx->input, NK_BUTTON_LEFT);
17267 int in_body = nk_input_is_mouse_hovering_rect(&ctx->input, body);
17407 in = (state == NK_WIDGET_ROM || win->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
17437 in = (state == NK_WIDGET_ROM || win->layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
17462 in = (state == NK_WIDGET_ROM || win->layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
17487 in = (state == NK_WIDGET_ROM || win->layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
17520 in = (state == NK_WIDGET_ROM || win->layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
18404 in = (!(layout->flags & NK_WINDOW_ROM)) ? &ctx->input: 0;
18405 in = (in && widget_state == NK_WIDGET_VALID) ? &ctx->input : 0;
18589 in = (!(layout->flags & NK_WINDOW_ROM)) ? &ctx->input: 0;
18590 in = (in && widget_state == NK_WIDGET_VALID) ? &ctx->input : 0;
19090 return nk_input_is_mouse_hovering_rect(&ctx->input, bounds);
19112 return nk_input_mouse_clicked(&ctx->input, btn, bounds);
19134 return nk_input_has_mouse_click_down_in_rect(&ctx->input, btn, bounds, down);
19154 in = &ctx->input;
20136 in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
20181 in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
20213 in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
20246 in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
20280 in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
20327 in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
20548 in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
20643 in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
20885 in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
20914 in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
20943 in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
21220 in = (/*state == NK_WIDGET_ROM || */ layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
21379 in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
22934 /* handle user input */
22959 {int i; /* keyboard input */
22972 /* text input */
23481 in = (win->layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
23904 layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
23921 ctx->input.mouse.grab = nk_true;
23922 ctx->input.mouse.grabbed = nk_true;
23928 ctx->input.mouse.grab = nk_false;
23929 ctx->input.mouse.grabbed = nk_false;
23930 ctx->input.mouse.ungrab = nk_true;
24132 const struct nk_input *i = &ctx->input;
24202 const struct nk_input *in = &ctx->input;
24531 in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
24613 in = (win->layout->flags & NK_WINDOW_ROM || s == NK_WIDGET_ROM)? 0: &ctx->input;
24704 in = (win->layout->flags & NK_WINDOW_ROM || s == NK_WIDGET_ROM)? 0: &ctx->input;
24783 in = (win->layout->flags & NK_WINDOW_ROM || s == NK_WIDGET_ROM)? 0: &ctx->input;
24870 in = (win->layout->flags & NK_WINDOW_ROM || s == NK_WIDGET_ROM)? 0: &ctx->input;
24964 in = (win->layout->flags & NK_WINDOW_ROM || s == NK_WIDGET_ROM)? 0: &ctx->input;
25042 in = (win->layout->flags & NK_WINDOW_ROM || s == NK_WIDGET_ROM)? 0: &ctx->input;
25333 in = &ctx->input;
25503 /// - 2017/12/23 (2.00.7) - Fixed `nk_edit_buffer` behavior if activated to allow input.
25504 /// - 2017/12/23 (2.00.7) - Fixed modifyable progressbar dragging visuals and input behavior.
25557 /// - 2017/01/21 (1.32.2) - Fixed input capture from hidden or closed windows.