Lines Matching defs:custom

105 /// NK_INCLUDE_COMMAND_USERDATA     | Defining this adds a userdata pointer into each command. Can be useful for example if you want to provide custom shaders depending on the used widget. Can be combined with the style structures.
198 /// // custom widget pixel width
1405 /// nk_window_get_canvas | Returns the draw command buffer. Can be used to draw custom widgets
1706 /// Returns the draw command buffer. Can be used to draw custom widgets
1721 /// drawing canvas. Can be used to do custom drawing.
4018 struct nk_recti custom;
12728 nk_size *image_memory, int *width, int *height, struct nk_recti *custom,
12770 if (custom) {
12771 /* pack custom user data first so it will be in the upper left corner*/
12774 custom_space.w = (nk_rp_coord)(custom->w);
12775 custom_space.h = (nk_rp_coord)(custom->h);
12781 custom->x = (short)custom_space.x;
12782 custom->y = (short)custom_space.y;
12783 custom->w = (short)custom_space.w;
12784 custom->h = (short)custom_space.h;
13757 atlas->custom.w = (NK_CURSOR_DATA_W*2)+1;
13758 atlas->custom.h = NK_CURSOR_DATA_H + 1;
13759 if (!nk_font_bake_pack(baker, &img_size, width, height, &atlas->custom,
13769 /* bake glyphs and custom white pixel into image */
13772 nk_font_bake_custom_data(atlas->pixel, *width, *height, atlas->custom,
13811 cursor->img.region[0] = (unsigned short)(atlas->custom.x + nk_cursor_data[i][0].x);
13812 cursor->img.region[1] = (unsigned short)(atlas->custom.y + nk_cursor_data[i][0].y);
13849 null->uv.x = (atlas->custom.x + 0.5f)/(float)atlas->tex_width;
13850 null->uv.y = (atlas->custom.y + 0.5f)/(float)atlas->tex_height;
13865 atlas->custom.x = 0;
13866 atlas->custom.y = 0;
13867 atlas->custom.w = 0;
13868 atlas->custom.h = 0;
25554 /// - 2017/02/25 (1.34.0) - Added custom draw command for better language binding support.