Lines Matching defs:scaler
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
1441 /// NK_WINDOW_SCALE_LEFT | Puts window scaler in the left-bottom corner instead right-bottom
5188 struct nk_style_item scaler;
14792 win->scaler = nk_style_item_color(table[NK_COLOR_TEXT]);
16014 /* scaler */
16017 /* calculate scaler bounds */
16018 struct nk_rect scaler;
16019 scaler.w = scrollbar_size.x;
16020 scaler.h = scrollbar_size.y;
16021 scaler.y = layout->bounds.y + layout->bounds.h;
16023 scaler.x = layout->bounds.x - panel_padding.x * 0.5f;
16024 else scaler.x = layout->bounds.x + layout->bounds.w + panel_padding.x;
16026 scaler.x -= scaler.w;
16028 /* draw scaler */
16029 {const struct nk_style_item *item = &style->window.scaler;
16031 nk_draw_image(out, scaler, &item->data.image, nk_white);
16034 nk_fill_triangle(out, scaler.x, scaler.y, scaler.x,
16035 scaler.y + scaler.h, scaler.x + scaler.w,
16036 scaler.y + scaler.h, item->data.color);
16038 nk_fill_triangle(out, scaler.x + scaler.w, scaler.y, scaler.x + scaler.w,
16039 scaler.y + scaler.h, scaler.x, scaler.y + scaler.h, item->data.color);
16048 NK_BUTTON_LEFT, scaler, nk_true);
16058 if ((delta_x < 0) || (delta_x > 0 && in->mouse.pos.x >= scaler.x)) {
16060 scaler.x += in->mouse.delta.x;
16066 if ((in->mouse.delta.y < 0) || (in->mouse.delta.y > 0 && in->mouse.pos.y >= scaler.y)) {
16068 scaler.y += in->mouse.delta.y;
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;
25540 /// - 2017/05/09 (1.38.1) - Fixed scaler dragging behavior if window size hits minimum size.
25559 /// - 2017/01/13 (1.32.0) - Added flag to put scaler into the bottom left corner.
25660 /// - 2016/08/30 (1.12.0) - Removed scaler size. The size of the scaler is now