Lines Matching defs:offset

467 struct nk_cursor {struct nk_image img; struct nk_vec2 size, offset;};
1406 /// nk_window_get_scroll | Gets the scroll offset of the current window
1420 /// nk_window_set_scroll | Sets the scroll offset of the current window
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)
1725 /// Gets the scroll offset for the current window
1736 /// __offset_x__ | A pointer to the x offset output (or NULL to ignore)
1737 /// __offset_y__ | A pointer to the y offset output (or NULL to ignore)
1907 /// Sets the scroll offset for the current window
1918 /// __offset_x__ | The x offset to scroll to
1919 /// __offset_y__ | The y offset to scroll to
2644 /// nk_group_scrolled_offset_begin | Start a new group with manual separated handling of scrollbar x- and y-offset
2647 /// nk_group_get_scroll | Gets the scroll offset for the given group
2648 /// nk_group_set_scroll | Sets the scroll offset for the given group
2702 /// __x_offset__| Scrollbar x-offset to offset all widgets inside the group horizontally.
2703 /// __y_offset__| Scrollbar y-offset to offset all widgets inside the group vertically
2720 /// __off__ | Both x- and y- scroll offset. Allows for manual scrollbar control
2748 /// __x_offset__ | A pointer to the x offset output (or NULL to ignore)
2749 /// __y_offset__ | A pointer to the y offset output (or NULL to ignore)
2762 /// __x_offset__ | The x offset to scroll to
2763 /// __y_offset__ | The y offset to scroll to
3461 NK_API void nk_plot(struct nk_context*, enum nk_chart_type, const float *values, int count, int offset);
3462 NK_API void nk_plot_function(struct nk_context*, enum nk_chart_type, void *userdata, float(*value_getter)(void* user, int index), int count, int offset);
3793 information (offset, size, ...). So it is still possible to provide your own
3812 glyph.offset.x = ...;
3813 glyph.offset.y = ...;
3906 struct nk_vec2 offset;
3907 /* offset between top left and glyph */
3911 /* offset to the next glyph */
3943 /* glyph array offset inside the font glyph baking output array */
4115 nk_size offset;
4121 /* buffer marker to free a buffer to a certain offset */
4717 nk_size offset;
5323 struct nk_scroll offset;
5963 NK_LIB float nk_do_scrollbarv(nk_flags *state, struct nk_command_buffer *out, struct nk_rect scroll, int has_scrolling, float offset, float target, float step, float button_pixel_inc, const struct nk_style_scrollbar *style, struct nk_input *in, const struct nk_user_font *font);
5964 NK_LIB float nk_do_scrollbarh(nk_flags *state, struct nk_command_buffer *out, struct nk_rect scroll, int has_scrolling, float offset, float target, float step, float button_pixel_inc, const struct nk_style_scrollbar *style, struct nk_input *in, const struct nk_user_font *font);
8198 buffer->marker[type].offset = buffer->size;
8199 else buffer->marker[type].offset = buffer->allocated;
8208 buffer->needed -= (buffer->memory.size - buffer->marker[type].offset);
8210 buffer->size = buffer->marker[type].offset;
8215 buffer->needed -= (buffer->allocated - buffer->marker[type].offset);
8217 buffer->allocated = buffer->marker[type].offset;
8779 /* make sure the offset to the next command is aligned */
9265 nk_size offset;
9273 offset = buffer->memory.size - canvas->cmd_offset;
9274 cmd = nk_ptr_add(const struct nk_draw_command, memory, offset);
9281 nk_size offset;
9292 offset = size - canvas->cmd_offset;
9293 end = nk_ptr_add(const struct nk_draw_command, memory, offset);
9611 void *address = (void*)((char*)dst + elem_iter->offset);
10374 gx = x + g.offset.x;
10375 gy = rect.y + g.offset.y;
10381 /* offset next glyph */
10975 int fontstart;/* offset of start of font */
10977 int loca,head,glyf,hhea,hmtx,kern; /* table locations as offset from start of .ttf */
11221 nk_ushort offset, start;
11229 offset = nk_ttUSHORT(data + index_map + 14 + segcount*6 + 2 + 2*item);
11230 if (offset == 0)
11233 return nk_ttUSHORT(data + offset + (unicode_codepoint-start)*2 + index_map + 14 + segcount*6 + 2 + 2*item);
11351 off = m - n; /* starting offset for uninterpreted data, regardless of how m ends up being calculated */
13032 /* offset next glyph */
13060 glyph->offset = nk_vec2(g->x0 * scale, g->y0 * scale);
13816 cursor->offset = nk_cursor_data[i][2];
15220 mouse_bounds.x = ctx->input.mouse.pos.x - cursor->offset.x;
15221 mouse_bounds.y = ctx->input.mouse.pos.y - cursor->offset.y;
17320 layout->menu.offset.x = *layout->offset_x;
17321 layout->menu.offset.y = *layout->offset_y;
17347 *layout->offset_x = layout->menu.offset.x;
17348 *layout->offset_y = layout->menu.offset.y;
18953 /* find persistent list view scrollbar offset */
21514 float offset, float target, float step, float button_pixel_inc,
21553 offset = offset - scroll_step;
21559 offset = offset + scroll_step;
21567 scroll_offset = NK_CLAMP(0, offset, target - scroll.h);
21603 float offset, float target, float step, float button_pixel_inc,
21641 offset = offset - scroll_step;
21647 offset = offset + scroll_step;
21655 scroll_offset = NK_CLAMP(0, offset, target - scroll.w);
24292 int count, int offset)
24302 min_value = values[offset];
24303 max_value = values[offset];
24305 min_value = NK_MIN(values[i + offset], min_value);
24306 max_value = NK_MAX(values[i + offset], max_value);
24311 nk_chart_push(ctx, values[i + offset]);
24317 float(*value_getter)(void* user, int index), int count, int offset)
24327 max_value = min_value = value_getter(userdata, offset);
24329 float value = value_getter(userdata, i + offset);
24336 nk_chart_push(ctx, value_getter(userdata, i + offset));
25562 /// - 2016/12/31 (1.30.0) - Extended scrollbar offset from 16-bit to 32-bit.
25579 /// offset storage. Main advantage is that you can externalize
25580 /// the memory management for the offset. It could also be helpful
25596 /// - 2016/09/28 (1.22.4) - Fixed drawing bug inside edit widgets which offset all text