Lines Matching defs:scrollbar
764 /* Shortcuts: scrollbar */
1437 /// NK_WINDOW_NO_SCROLLBAR | Removes the scrollbar from the window
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
1645 /// Returns `nk_rect` struct with screen position and size (no scrollbar offset)
1664 /// returns `nk_vec2` struct with upper left screen position (no scrollbar offset)
1683 /// Returns `nk_vec2` struct with lower right screen position (no scrollbar offset)
2572 /// internally keep track of scrollbar offsets by default. However additional
2573 /// versions are provided to directly manage the scrollbar.
2641 /// nk_group_begin | Start a new group with internal scrollbar handling
2642 /// nk_group_begin_titled | Start a new group with separeted name and title and internal scrollbar handling
2644 /// nk_group_scrolled_offset_begin | Start a new group with manual separated handling of scrollbar x- and y-offset
2645 /// nk_group_scrolled_begin | Start a new group with manual scrollbar handling
2646 /// nk_group_scrolled_end | Ends a group with manual scrollbar handling. Should only be called if nk_group_begin returned non-zero
2694 /// a size. Does not keep track of scrollbar.
2712 /// layouting function to specify a size. Does not keep track of scrollbar.
2720 /// __off__ | Both x- and y- scroll offset. Allows for manual scrollbar control
4285 struct nk_vec2 scrollbar;
5022 struct nk_style_scrollbar scrollbar;
5391 struct nk_scroll scrollbar;
5416 struct nk_scroll scrollbar;
5960 /* scrollbar */
14552 edit->scrollbar = style->scrollv;
15953 /* vertical scrollbar */
15972 /* horizontal scrollbar */
16416 win->layout->offset_x = &win->scrollbar.x;
16417 win->layout->offset_y = &win->scrollbar.y;
16541 *offset_x = win->scrollbar.x;
16543 *offset_y = win->scrollbar.y;
16719 win->scrollbar.x = offset_x;
16720 win->scrollbar.y = offset_y;
16876 popup->layout->offset_x = &popup->scrollbar.x;
16877 popup->layout->offset_y = &popup->scrollbar.y;
16968 popup->layout->offset_x = &popup->scrollbar.x;
16969 popup->layout->offset_y = &popup->scrollbar.y;
17037 *offset_x = popup->scrollbar.x;
17039 *offset_y = popup->scrollbar.y;
17053 popup->scrollbar.x = offset_x;
17054 popup->scrollbar.y = offset_y;
18713 panel.scrollbar.x = *x_offset;
18714 panel.scrollbar.y = *y_offset;
18781 pan.scrollbar.x = *g->offset_x;
18782 pan.scrollbar.y = *g->offset_y;
18825 /* find persistent group scrollbar value */
18867 /* find persistent group scrollbar value */
18902 /* find persistent group scrollbar value */
18953 /* find persistent list view scrollbar offset */
21536 /* optional scrollbar buttons */
21565 /* calculate scrollbar constants */
21571 /* calculate scrollbar cursor bounds */
21588 /* update scrollbar */
21594 /* draw scrollbar */
21620 /* scrollbar background */
21625 /* optional scrollbar buttons */
21653 /* calculate scrollbar constants */
21676 /* update scrollbar */
21682 /* draw scrollbar */
22671 state->scrollbar = nk_vec2(0,0);
22938 const float mouse_x = (in->mouse.pos.x - area.x) + edit->scrollbar.x;
22939 const float mouse_y = (in->mouse.pos.y - area.y) + edit->scrollbar.y;
23173 /* scrollbar */
23176 /* update scrollbar to follow cursor */
23180 if (cursor_pos.x < edit->scrollbar.x)
23181 edit->scrollbar.x = (float)(int)NK_MAX(0.0f, cursor_pos.x - scroll_increment);
23182 if (cursor_pos.x >= edit->scrollbar.x + area.w)
23183 edit->scrollbar.x = (float)(int)NK_MAX(0.0f, edit->scrollbar.x + scroll_increment);
23184 } else edit->scrollbar.x = 0;
23188 if (cursor_pos.y < edit->scrollbar.y)
23189 edit->scrollbar.y = NK_MAX(0.0f, cursor_pos.y - row_height);
23190 if (cursor_pos.y >= edit->scrollbar.y + area.h)
23191 edit->scrollbar.y = edit->scrollbar.y + row_height;
23192 } else edit->scrollbar.y = 0;
23195 /* scrollbar widget */
23209 scroll_offset = edit->scrollbar.y;
23213 edit->scrollbar.y = nk_do_scrollbarv(&ws, out, scroll, 0,
23215 &style->scrollbar, in, font);
23261 nk_edit_draw_text(out, style, area.x - edit->scrollbar.x,
23262 area.y - edit->scrollbar.y, 0, begin, l, row_height, font,
23270 nk_edit_draw_text(out, style, area.x - edit->scrollbar.x,
23271 area.y - edit->scrollbar.y, 0, begin, (int)(select_begin_ptr - begin),
23282 area.x - edit->scrollbar.x,
23283 area.y + selection_offset_start.y - edit->scrollbar.y,
23297 area.x - edit->scrollbar.x,
23298 area.y + selection_offset_end.y - edit->scrollbar.y,
23314 cursor.x = area.x + cursor_pos.x - edit->scrollbar.x;
23316 cursor.y -= edit->scrollbar.y;
23328 label.x = area.x + cursor_pos.x - edit->scrollbar.x;
23329 label.y = area.y + cursor_pos.y - edit->scrollbar.y;
23362 nk_edit_draw_text(out, style, area.x - edit->scrollbar.x,
23363 area.y - edit->scrollbar.y, 0, begin, l, row_height, font,
23432 edit->scrollbar.x = (float)win->edit.scrollbar.x;
23433 edit->scrollbar.y = (float)win->edit.scrollbar.y;
23450 win->edit.scrollbar.x = (nk_uint)edit->scrollbar.x;
23451 win->edit.scrollbar.y = (nk_uint)edit->scrollbar.y;
25539 /// - 2017/05/09 (1.38.2) - Fixed vertical scrollbar drawing with not enough space.
25562 /// - 2016/12/31 (1.30.0) - Extended scrollbar offset from 16-bit to 32-bit.
25578 /// - 2016/11/09 (1.26.0) - Added additional `nk_group` version to support external scrollbar
25661 /// determined by the scrollbar size.
25712 /// - 2016/08/08 (1.05.4) - Fixed scrollbar auto hiding behavior.
25740 /// - 2016/07/29 (1.02.0) - Added auto scrollbar hiding window flag which if enabled
25741 /// will hide the window scrollbar after NK_SCROLLBAR_HIDING_TIMEOUT