Lines Matching refs:buttons
67 /// - Basic widgets like buttons, checkboxes, slider, ...
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.
4606 struct nk_mouse_button buttons[NK_BUTTON_MAX];
4944 /* optional buttons */
5003 /* optional buttons */
13951 in->mouse.buttons[i].clicked = 0;
14012 if (in->mouse.buttons[id].down == down) return;
14014 btn = &in->mouse.buttons[id];
14069 btn = &i->mouse.buttons[id];
14078 btn = &i->mouse.buttons[id];
14089 btn = &i->mouse.buttons[id];
14098 btn = &i->mouse.buttons[id];
14108 btn = &i->mouse.buttons[id];
14143 return i->mouse.buttons[id].down;
14150 b = &i->mouse.buttons[id];
14159 return (!i->mouse.buttons[id].down && i->mouse.buttons[id].clicked);
14447 /* slider buttons */
14511 /* scrollbars buttons */
14578 /* property buttons */
15660 left_mouse_down = in->mouse.buttons[NK_BUTTON_LEFT].down;
15661 left_mouse_clicked = (int)in->mouse.buttons[NK_BUTTON_LEFT].clicked;
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;
16046 int left_mouse_down = in->mouse.buttons[NK_BUTTON_LEFT].down;
16073 in->mouse.buttons[NK_BUTTON_LEFT].clicked_pos.x = scaler.x + scaler.w/2.0f;
16074 in->mouse.buttons[NK_BUTTON_LEFT].clicked_pos.y = scaler.y + scaler.h/2.0f;
16348 inpanel = inpanel && ctx->input.mouse.buttons[NK_BUTTON_LEFT].clicked;
16350 if ((win != ctx->active) && ishovered && !ctx->input.mouse.buttons[NK_BUTTON_LEFT].down) {
21014 left_mouse_down = in && in->mouse.buttons[NK_BUTTON_LEFT].down;
21031 in->mouse.buttons[NK_BUTTON_LEFT].clicked_pos.x = logical_cursor->x;
21134 /* optional buttons */
21267 left_mouse_down = in && in->mouse.buttons[NK_BUTTON_LEFT].down;
21277 in->mouse.buttons[NK_BUTTON_LEFT].clicked_pos.x = cursor.x + cursor.w/2.0f;
21417 left_mouse_down = in->mouse.buttons[NK_BUTTON_LEFT].down;
21418 left_mouse_clicked = in->mouse.buttons[NK_BUTTON_LEFT].clicked;
21435 in->mouse.buttons[NK_BUTTON_LEFT].clicked_pos.y = cursor_y + cursor->h/2.0f;
21442 in->mouse.buttons[NK_BUTTON_LEFT].clicked_pos.x = cursor_x + cursor->w/2.0f;
21536 /* optional scrollbar buttons */
21625 /* optional scrollbar buttons */
22908 if (in && in->mouse.buttons[NK_BUTTON_LEFT].clicked && in->mouse.buttons[NK_BUTTON_LEFT].down) {
22945 } else if (is_hovered && in->mouse.buttons[NK_BUTTON_LEFT].down &&
22946 in->mouse.buttons[NK_BUTTON_LEFT].clicked) {
22948 } else if (is_hovered && in->mouse.buttons[NK_BUTTON_LEFT].down &&
22952 } else if (is_hovered && in->mouse.buttons[NK_BUTTON_RIGHT].clicked &&
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 &&
24162 i->mouse.buttons[NK_BUTTON_LEFT].clicked) ? NK_CHART_CLICKED: 0;
24184 ret |= (!i->mouse.buttons[NK_BUTTON_LEFT].down &&
24185 i->mouse.buttons[NK_BUTTON_LEFT].clicked) ? NK_CHART_CLICKED: 0;
24235 ret |= (!in->mouse.buttons[NK_BUTTON_LEFT].down &&
24236 in->mouse.buttons[NK_BUTTON_LEFT].clicked) ? NK_CHART_CLICKED: 0;
25573 /// pass in a style struct to change buttons visual.