Lines Matching defs:down

106 /// NK_BUTTON_TRIGGER_ON_RELEASE    | Different platforms require button clicks occurring either on buttons being pressed (up to down) or released (down to up). By default this library will react on buttons being pressed, but if you define this it will only trigger if a button is released.
657 /// Sets the currently passed userdata passed down into each draw command.
809 /// void nk_input_key(struct nk_context*, enum nk_keys key, int down);
816 /// __down__ | Must be 0 for key is up and 1 for key is down
818 NK_API void nk_input_key(struct nk_context*, enum nk_keys, int down);
823 /// void nk_input_button(struct nk_context *ctx, enum nk_buttons btn, int x, int y, int down);
830 /// __x__ | Must contain an integer describing mouse cursor x-position on click up/down
831 /// __y__ | Must contain an integer describing mouse cursor y-position on click up/down
832 /// __down__ | Must be 0 for key is up and 1 for key is down
834 NK_API void nk_input_button(struct nk_context*, enum nk_buttons, int x, int y, int down);
3066 NK_API int nk_widget_has_mouse_click_down(struct nk_context*, enum nk_buttons, int down);
4601 int down;
4617 int down;
4633 NK_API int nk_input_has_mouse_click_down_in_rect(const struct nk_input*, enum nk_buttons, struct nk_rect, int down);
4635 NK_API int nk_input_is_mouse_click_down_in_rect(const struct nk_input *i, enum nk_buttons id, struct nk_rect b, int down);
11241 nk_int mid = low + ((high-low) >> 1); /* rounds down, so low <= mid < high */
11831 if (x0 < x1 && x3 > x2) { /* three segments descending down-right */
11835 } else if (x3 < x1 && x0 > x2) { /* three segments descending down-left */
11839 } else if (x0 < x1 && x3 > x1) { /* two segments across x, down-right */
11842 } else if (x3 < x1 && x0 > x1) { /* two segments across x, down-left */
11845 } else if (x0 < x2 && x3 > x2) { /* two segments across x+1, down-right */
11848 } else if (x3 < x2 && x0 > x2) { /* two segments across x+1, down-left */
13990 nk_input_key(struct nk_context *ctx, enum nk_keys key, int down)
13997 if (in->keyboard.keys[key].down != down)
14002 in->keyboard.keys[key].down = down;
14005 nk_input_button(struct nk_context *ctx, enum nk_buttons id, int x, int y, int down)
14012 if (in->mouse.buttons[id].down == down) return;
14017 btn->down = down;
14070 return (btn->clicked && btn->down == nk_false) ? nk_true : nk_false;
14085 struct nk_rect b, int down)
14090 return nk_input_has_mouse_click_in_rect(i, id, b) && (btn->down == down);
14104 struct nk_rect b, int down)
14109 return (nk_input_has_mouse_click_down_in_rect(i, id, b, down) &&
14115 int i, down = 0;
14117 down = down || nk_input_is_mouse_click_in_rect(in, (enum nk_buttons)i, b);
14118 return down;
14143 return i->mouse.buttons[id].down;
14151 if (b->down && b->clicked)
14159 return (!i->mouse.buttons[id].down && i->mouse.buttons[id].clicked);
14167 if ((k->down && k->clicked) || (!k->down && k->clicked >= 2))
14177 if ((!k->down && k->clicked) || (k->down && k->clicked >= 2))
14187 if (k->down) return nk_true;
15660 left_mouse_down = in->mouse.buttons[NK_BUTTON_LEFT].down;
16046 int left_mouse_down = in->mouse.buttons[NK_BUTTON_LEFT].down;
16350 if ((win != ctx->active) && ishovered && !ctx->input.mouse.buttons[NK_BUTTON_LEFT].down) {
19115 nk_widget_has_mouse_click_down(struct nk_context *ctx, enum nk_buttons btn, int down)
19134 return nk_input_has_mouse_click_down_in_rect(&ctx->input, btn, bounds, down);
21014 left_mouse_down = in && in->mouse.buttons[NK_BUTTON_LEFT].down;
21267 left_mouse_down = in && in->mouse.buttons[NK_BUTTON_LEFT].down;
21417 left_mouse_down = in->mouse.buttons[NK_BUTTON_LEFT].down;
21452 /* scroll page down by click on empty space or shortcut */
21816 /* API click: on mouse down, move the cursor to the clicked location,
22216 /* on windows, up&down in single-line behave like left&right */
22231 /* now find character position down a row */
22264 /* on windows, up&down become left&right */
22472 * by sliding the existing records down */
22908 if (in && in->mouse.buttons[NK_BUTTON_LEFT].clicked && in->mouse.buttons[NK_BUTTON_LEFT].down) {
22937 int shift_mod = in->keyboard.keys[NK_KEY_SHIFT].down;
22945 } else if (is_hovered && in->mouse.buttons[NK_BUTTON_LEFT].down &&
22948 } else if (is_hovered && in->mouse.buttons[NK_BUTTON_LEFT].down &&
22953 in->mouse.buttons[NK_BUTTON_RIGHT].down) {
23540 int left_mouse_down = in && in->mouse.buttons[NK_BUTTON_LEFT].down;
24161 ret |= (i->mouse.buttons[NK_BUTTON_LEFT].down &&
24184 ret |= (!i->mouse.buttons[NK_BUTTON_LEFT].down &&
24235 ret |= (!in->mouse.buttons[NK_BUTTON_LEFT].down &&