Lines Matching defs:handle
151 /// NK_STRTOD | You can define this to `strtod` or your own string to double conversion implementation replacement. If not defined nuklear will use its own imprecise and possibly unsafe version (does not handle nan or infinity!).
152 /// NK_DTOA | You can define this to `dtoa` or your own double to string conversion implementation replacement. If not defined nuklear will use its own imprecise and possibly unsafe version (does not handle nan or infinity!).
466 struct nk_image {nk_handle handle;unsigned short w,h;unsigned short region[4];};
523 /// Each takes in a font handle and a specific way of handling memory. Memory control
560 /// __font__ | Must point to a previously initialized font handle for more info look at font documentation
586 /// __font__ | Must point to a previously initialized font handle for more info look at font documentation
604 /// __font__ | Must point to a previously initialized font handle for more info look at font documentation
623 /// __font__ | Must point to a previously initialized font handle for more info look at font documentation
668 NK_API void nk_set_user_data(struct nk_context*, nk_handle handle);
1152 nk_handle texture; /* texture handle to a texture with a white pixel */
1162 struct nk_draw_null_texture null; /* handle to texture with a white pixel for shape drawing */
3771 float your_text_width_calculation(nk_handle handle, float height, const char *text, int len)
3773 your_font_type *type = handle.ptr;
3791 `nk_user_font`. First a texture atlas handle used to draw text as subimages
3796 float your_text_width_calculation(nk_handle handle, float height, const char *text, int len)
3798 your_font_type *type = handle.ptr;
3802 void query_your_font_glyph(nk_handle handle, float font_height, struct nk_user_font_glyph *glyph, nk_rune codepoint, nk_rune next_codepoint)
3804 your_font_type *type = handle.ptr;
3858 you created our texture beforehand. `nk_font_atlas_end` requires a handle
3877 nk_init_default(&ctx, &font->handle);
3898 typedef void(*nk_query_font_glyph_f)(nk_handle handle, float font_height,
3917 /* user provided font handle */
3926 /* texture handle to the used font atlas or texture */
3995 struct nk_user_font handle;
10324 nk_draw_list_push_image(list, texture.handle);
11476 /* @TODO handle matching point */
13007 nk_font_text_width(nk_handle handle, float height, const char *text, int len)
13015 struct nk_font *font = (struct nk_font*)handle.ptr;
13040 nk_font_query_font_glyph(nk_handle handle, float height,
13050 font = (struct nk_font*)handle.ptr;
13115 font->handle.height = font->info.height * font->scale;
13116 font->handle.width = nk_font_text_width;
13117 font->handle.userdata.ptr = font;
13119 font->handle.query = nk_font_query_font_glyph;
13120 font->handle.texture = font->texture;
13855 font_iter->handle.texture = texture;
13859 atlas->cursors[i].img.handle = texture;
15036 nk_set_user_data(struct nk_context *ctx, nk_handle handle)
15039 ctx->userdata = handle;
15041 ctx->current->buffer.userdata = handle;
19554 nk_handle handle = {0};
19555 handle.ptr = ptr;
19556 return handle;
19561 nk_handle handle;
19562 nk_zero_struct(handle);
19563 handle.id = id;
19564 return handle;
19571 s.handle.ptr = ptr;
19584 s.handle.id = id;
19593 nk_subimage_handle(nk_handle handle, unsigned short w, unsigned short h,
19598 s.handle = handle;
19607 nk_image_handle(nk_handle handle)
19611 s.handle = handle;
19625 s.handle.ptr = ptr;
19638 s.handle.id = id;
21848 explicitly handle this case in the regular code */
22934 /* handle user input */
23166 /* handle case when cursor is at end of text buffer */
25577 /// memory consumption or handle hash collisions.