Lines Matching defs:config

3847     functions. Adding font will permanently store each font, font config and ttf memory block(!)
4002 struct nk_font_config *config;
4025 struct nk_font_config *config;
4046 NK_API struct nk_font* nk_font_atlas_add_from_memory(struct nk_font_atlas *atlas, void *memory, nk_size size, float height, const struct nk_font_config *config);
4051 NK_API struct nk_font* nk_font_atlas_add_compressed_base85(struct nk_font_atlas*, const char *data, float height, const struct nk_font_config *config);
4735 struct nk_convert_config config;
9234 nk_draw_list_setup(struct nk_draw_list *canvas, const struct nk_convert_config *config,
9239 NK_ASSERT(config);
9243 if (!canvas || !config || !cmds || !vertices || !elements)
9247 canvas->config = *config;
9390 nk_draw_list_push_command(list, rect, list->config.null.texture);
9433 list->config.vertex_size*count, list->config.vertex_alignment);
9605 nk_draw_vertex(void *dst, const struct nk_convert_config *config,
9608 void *result = (void*)((char*)dst + config->vertex_size);
9609 const struct nk_draw_vertex_layout_element *elem_iter = config->vertex_layout;
9635 color.a = (nk_byte)((float)color.a * list->config.global_alpha);
9644 color.a = (nk_byte)((float)color.a * list->config.global_alpha);
9745 const struct nk_vec2 uv = list->config.null.uv;
9746 vtx = nk_draw_vertex(vtx, &list->config, points[i], uv, col);
9747 vtx = nk_draw_vertex(vtx, &list->config, temp[i*2+0], uv, col_trans);
9748 vtx = nk_draw_vertex(vtx, &list->config, temp[i*2+1], uv, col_trans);
9810 const struct nk_vec2 uv = list->config.null.uv;
9811 vtx = nk_draw_vertex(vtx, &list->config, temp[i*4+0], uv, col_trans);
9812 vtx = nk_draw_vertex(vtx, &list->config, temp[i*4+1], uv, col);
9813 vtx = nk_draw_vertex(vtx, &list->config, temp[i*4+2], uv, col);
9814 vtx = nk_draw_vertex(vtx, &list->config, temp[i*4+3], uv, col_trans);
9831 const struct nk_vec2 uv = list->config.null.uv;
9849 vtx = nk_draw_vertex(vtx, &list->config, nk_vec2(p1.x + dy, p1.y - dx), uv, col);
9850 vtx = nk_draw_vertex(vtx, &list->config, nk_vec2(p2.x + dy, p2.y - dx), uv, col);
9851 vtx = nk_draw_vertex(vtx, &list->config, nk_vec2(p2.x - dy, p2.y + dx), uv, col);
9852 vtx = nk_draw_vertex(vtx, &list->config, nk_vec2(p1.x - dy, p1.y + dx), uv, col);
9880 color.a = (nk_byte)((float)color.a * list->config.global_alpha);
9941 const struct nk_vec2 uv = list->config.null.uv;
9954 vtx = nk_draw_vertex(vtx, &list->config, nk_vec2_sub(points[i1], dm), uv, col);
9955 vtx = nk_draw_vertex(vtx, &list->config, nk_vec2_add(points[i1], dm), uv, col_trans);
9978 vtx = nk_draw_vertex(vtx, &list->config, points[i], list->config.null.uv, col);
10007 if (cmd && cmd->texture.ptr != list->config.null.texture.ptr)
10008 nk_draw_list_push_image(list, list->config.null.texture);
10132 nk_draw_list_fill_poly_convex(list, points, list->path_count, color, list->config.shape_AA);
10144 closed, thickness, list->config.line_AA);
10210 nk_draw_list_push_image(list, list->config.null.texture);
10220 vtx = nk_draw_vertex(vtx, &list->config, nk_vec2(rect.x, rect.y), list->config.null.uv, col_left);
10221 vtx = nk_draw_vertex(vtx, &list->config, nk_vec2(rect.x + rect.w, rect.y), list->config.null.uv, col_top);
10222 vtx = nk_draw_vertex(vtx, &list->config, nk_vec2(rect.x + rect.w, rect.y + rect.h), list->config.null.uv, col_right);
10223 vtx = nk_draw_vertex(vtx, &list->config, nk_vec2(rect.x, rect.y + rect.h), list->config.null.uv, col_bottom);
10312 vtx = nk_draw_vertex(vtx, &list->config, a, uva, col);
10313 vtx = nk_draw_vertex(vtx, &list->config, b, uvb, col);
10314 vtx = nk_draw_vertex(vtx, &list->config, c, uvc, col);
10315 vtx = nk_draw_vertex(vtx, &list->config, d, uvd, col);
10362 fg.a = (nk_byte)((float)fg.a * list->config.global_alpha);
10391 const struct nk_convert_config *config)
10399 NK_ASSERT(config);
10400 NK_ASSERT(config->vertex_layout);
10401 NK_ASSERT(config->vertex_size);
10402 if (!ctx || !cmds || !vertices || !elements || !config || !config->vertex_layout)
10405 nk_draw_list_setup(&ctx->draw_list, config, cmds, vertices, elements,
10406 config->line_AA, config->shape_AA);
10428 config->curve_segment_count, q->line_thickness);
10449 config->circle_segment_count, c->line_thickness);
10455 config->circle_segment_count);
10461 c->a[0], c->a[1], config->arc_segment_count);
10468 c->a[0], c->a[1], config->arc_segment_count);
13081 iter = font->config;
13091 } while ((iter = iter->n) != font->config);
13495 nk_font_atlas_add(struct nk_font_atlas *atlas, const struct nk_font_config *config)
13506 NK_ASSERT(config);
13507 NK_ASSERT(config->ttf_blob);
13508 NK_ASSERT(config->ttf_size);
13509 NK_ASSERT(config->size > 0.0f);
13511 if (!atlas || !config || !config->ttf_blob || !config->ttf_size || config->size <= 0.0f||
13516 /* allocate font config */
13519 NK_MEMCPY(cfg, config, sizeof(*config));
13523 if (!config->merge_mode) {
13524 /* insert font config into list */
13525 if (!atlas->config) {
13526 atlas->config = cfg;
13529 struct nk_font_config *i = atlas->config;
13540 font->config = cfg;
13559 c = f->config;
13568 if (!config->ttf_data_owned_by_atlas) {
13575 NK_MEMCPY(cfg->ttf_blob, config->ttf_blob, cfg->ttf_size);
13583 nk_size size, float height, const struct nk_font_config *config)
13598 cfg = (config) ? *config: nk_font_config(height);
13608 float height, const struct nk_font_config *config)
13624 cfg = (config) ? *config: nk_font_config(height);
13635 const struct nk_font_config *config)
13660 cfg = (config) ? *config: nk_font_config(height);
13669 const char *data_base85, float height, const struct nk_font_config *config)
13692 (nk_size)compressed_size, height, config);
13700 float pixel_height, const struct nk_font_config *config)
13708 nk_proggy_clean_ttf_compressed_data_base85, pixel_height, config);
13743 nk_font_baker_memory(&tmp_size, &atlas->glyph_count, atlas->config, atlas->font_num);
13760 atlas->config, atlas->font_num, &atlas->temporary))
13771 atlas->glyphs, atlas->glyph_count, atlas->config, atlas->font_num);
13791 struct nk_font_config *config = font->config;
13792 nk_font_init(font, config->size, config->fallback_glyph, atlas->glyphs,
13793 config->font, nk_handle_ptr(0));
13879 if (atlas->config) {
13881 for (iter = atlas->config; iter; iter = iter->next) {
13902 if (atlas->config) {
13904 for (iter = atlas->config; iter; iter = next) {
13917 atlas->config = 0;
24038 const struct nk_style *config;
24056 config = &ctx->style;
24058 style = &config->chart;
24513 const struct nk_style *config;
24527 config = &ctx->style;
24533 nk_vec2(0,0), in, config->font);