Lines Matching defs:height
1397 /// nk_window_get_size | Returns the size with width and height of the currently processed window
1399 /// nk_window_get_height | Returns the height of the currently processed window
1565 /// Returns the size with width and height of the currently processed window.
1577 /// Returns a `nk_vec2` struct with window width and height
1597 /// Returns the height of the currently processed window.
1609 /// Returns the current window height
1999 /// A row has a height the window content grows by and a number of columns and each
2011 /// is that you have to define the row height for each. However the row height
2012 /// often depends on the height of the font. <br /><br />
2014 /// To fix that internally nuklear uses a minimum row height that is set to the
2015 /// height plus padding of currently active font and overwrites the row height
2018 /// If you manually want to change the minimum row height then
2020 /// reset it back to be derived from font height. <br /><br />
2023 /// row height for you and. This means if you change the font but still want
2024 /// a minimum row height smaller than the font you have to repush your value. <br /><br />
2049 /// // first row with height: 30 composed of two widgets
2058 /// // third row uses 0 for height which will use auto layouting
2073 /// // first row with height: 30 composed of two widgets with width: 80
2082 /// // third row uses 0 for height which will use auto layouting
2101 /// // first row with height: 25 composed of two widgets with width 60 and 40
2109 /// // second row with height: 25 composed of two widgets with window ratio 0.25 and 0.75
2117 /// // third row with auto generated height: composed of two widgets with window ratio 0.25 and 0.75
2137 /// // two rows with height: 30 composed of two widgets with width 60 and 40
2145 /// // two rows with height: 30 composed of two widgets with window ratio 0.25 and 0.75
2153 /// // two rows with auto generated height composed of two widgets with window ratio 0.25 and 0.75
2181 /// // two rows with height: 30 composed of three widgets
2212 /// // static row with height: 500 (you can set column count to INT_MAX if you don't want to be bothered)
2220 /// // dynamic row with height: 500 (you can set column count to INT_MAX if you don't want to be bothered)
2233 /// nk_layout_set_min_row_height | Set the currently used minimum row height to a specified value
2234 /// nk_layout_reset_min_row_height | Resets the currently used minimum row height to font height
2240 /// nk_layout_row_begin | Starts a new row with given height and number of columns
2262 /// Sets the currently used minimum row height.
2264 /// The passed height needs to include both your preferred row height
2268 /// void nk_layout_set_min_row_height(struct nk_context*, float height);
2274 /// __height__ | New minimum row height to be used for auto generating the row height
2276 NK_API void nk_layout_set_min_row_height(struct nk_context*, float height);
2278 /// Reset the currently used minimum row height back to `font_height + text_padding + padding`
2320 /// void nk_layout_row_dynamic(struct nk_context *ctx, float height, int cols);
2326 /// __height__ | Holds height of each widget in row or zero for auto layouting
2329 NK_API void nk_layout_row_dynamic(struct nk_context *ctx, float height, int cols);
2335 /// void nk_layout_row_static(struct nk_context *ctx, float height, int item_width, int cols);
2341 /// __height__ | Holds height of each widget in row or zero for auto layouting
2345 NK_API void nk_layout_row_static(struct nk_context *ctx, float height, int item_width, int cols);
2347 /// Starts a new dynamic or fixed row with given height and columns.
2356 /// __height__ | holds height of each widget in row or zero for auto layouting
2386 /// void nk_layout_row(struct nk_context*, enum nk_layout_format, float height, int cols, const float *ratio);
2393 /// __height__ | Holds height of each widget in row or zero for auto layouting
2396 NK_API void nk_layout_row(struct nk_context*, enum nk_layout_format, float height, int cols, const float *ratio);
2406 /// __height__ | Holds height of each widget in row or zero for auto layouting
2418 /// __height__ | Holds height of each widget in row or zero for auto layouting
2459 /// void nk_layout_space_begin(struct nk_context*, enum nk_layout_format, float height, int widget_count);
2466 /// __height__ | Holds height of each widget in row or zero for auto layouting
2469 NK_API void nk_layout_space_begin(struct nk_context*, enum nk_layout_format, float height, int widget_count);
2801 /// calculates a auto height based on the currently used font size
3762 `nk_user_font` struct which only requires the height in pixel of the used
3771 float your_text_width_calculation(nk_handle handle, float height, const char *text, int len)
3780 font.height = your_font_height;
3796 float your_text_width_calculation(nk_handle handle, float height, const char *text, int len)
3806 glyph.height = ...;
3818 font.height = your_font_height;
3854 The baking process returns image memory, width and height which can be used to
3908 float width, height;
3918 float height;
3919 /* max height of the font */
3938 float height;
3939 /* height of the font */
3971 /* baked pixel height of the font */
4044 NK_API struct nk_font* nk_font_atlas_add_default(struct nk_font_atlas*, float height, const struct nk_font_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);
4048 NK_API struct nk_font* nk_font_atlas_add_from_file(struct nk_font_atlas *atlas, const char *file_path, float height, const struct nk_font_config*);
4050 NK_API struct nk_font *nk_font_atlas_add_compressed(struct nk_font_atlas*, void *memory, nk_size size, float height, const struct nk_font_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);
4052 NK_API const void* nk_font_atlas_bake(struct nk_font_atlas*, int *width, int *height, enum nk_font_atlas_format);
4553 float height;
5300 float height;
5356 /* special window type growing up in height while being filled to a certain maximum height */
5906 NK_LIB void nk_panel_layout(const struct nk_context *ctx, struct nk_window *win, float height, int cols);
5907 NK_LIB void nk_row_layout(struct nk_context *ctx, enum nk_layout_format fmt, float height, int cols, int width);
7351 s = font->width(font->userdata, font->height, text, len);
7395 glyph_width = font->width(font->userdata, font->height, begin, glyph_len);
7423 glyph_width = font->width(font->userdata, font->height, begin+text_len, glyph_len);
9186 text_width = font->width(font->userdata, font->height, string, length);
9205 cmd->height = font->height;
10376 gw = g.width; gh = g.height;
10512 t->string, t->length, t->height, t->foreground);
10582 int height;
10625 nk_rp_init_target(struct nk_rp_context *context, int width, int height,
10630 NK_ASSERT(width <= 0xffff && height <= 0xffff);
10641 context->height = height;
10698 nk_rp__skyline_find_best_pos(struct nk_rp_context *c, int width, int height)
10723 if (y + height <= c->height) {
10773 if (y + height < c->height) {
10793 nk_rp__skyline_pack_rectangle(struct nk_rp_context *context, int width, int height)
10796 struct nk_rp__findresult res = nk_rp__skyline_find_best_pos(context, width, height);
10803 if (res.prev_link == 0 || res.y + height > context->height || context->free_head == 0) {
10811 node->y = (nk_rp_coord) (res.y + height);
10965 int height;
11565 nk_tt_ScaleForPixelHeight(const struct nk_tt_fontinfo *info, float height)
11568 return (float) height / (float)fheight;
11752 float height;
11755 height = y1 - y0;
11757 scanline[x] += e->direction * (1.0f-(((float)x_top - (float)x) + ((float)x_bottom-(float)x))/2.0f) * (float)height;
11758 scanline_fill[x] += e->direction * (float)height; /* everything right of this pixel is filled */
12273 spc->height = ph;
12728 nk_size *image_memory, int *width, int *height, struct nk_recti *custom,
12741 NK_ASSERT(height);
12746 if (!image_memory || !width || !height || !config_list || !count) return nk_false;
12761 *height = 0;
12779 *height = NK_MAX(*height, (int)(custom_space.y + custom_space.h));
12825 /* texture height */
12828 *height = NK_MAX(*height, tmp->rects[i].y + tmp->rects[i].h);
12836 *height = (int)nk_round_up_pow2((nk_uint)*height);
12837 *image_memory = (nk_size)(*width) * (nk_size)(*height);
12841 nk_font_bake(struct nk_font_baker *baker, void *image_memory, int width, int height,
12852 NK_ASSERT(height);
12857 if (!image_memory || !width || !height || !config_list ||
12862 nk_zero(image_memory, (nk_size)((nk_size)width * (nk_size)height));
12864 baker->spc.height = (int)height;
12895 dst_font->height = cfg->size;
12919 (int)height, char_idx, &dummy_x, &dummy_y, &q, 0);
12933 glyph->v0 = q.t0 * (float)height;
12935 glyph->v1 = q.t1 * (float)height;
13007 nk_font_text_width(nk_handle handle, float height, const char *text, int len)
13021 scale = height/font->info.height;
13040 nk_font_query_font_glyph(nk_handle handle, float height,
13056 scale = height/font->info.height;
13059 glyph->height = (g->y1 - g->y0) * scale;
13109 font->scale = (float)pixel_height / (float)font->info.height;
13115 font->handle.height = font->info.height * font->scale;
13583 nk_size size, float height, const struct nk_font_config *config)
13598 cfg = (config) ? *config: nk_font_config(height);
13601 cfg.size = height;
13608 float height, const struct nk_font_config *config)
13624 cfg = (config) ? *config: nk_font_config(height);
13627 cfg.size = height;
13634 void *compressed_data, nk_size compressed_size, float height,
13660 cfg = (config) ? *config: nk_font_config(height);
13663 cfg.size = height;
13669 const char *data_base85, float height, const struct nk_font_config *config)
13692 (nk_size)compressed_size, height, config);
13712 nk_font_atlas_bake(struct nk_font_atlas *atlas, int *width, int *height,
13728 NK_ASSERT(height);
13729 if (!atlas || !width || !height ||
13759 if (!nk_font_bake_pack(baker, &img_size, width, height, &atlas->custom,
13770 nk_font_bake(baker, atlas->pixel, *width, *height,
13772 nk_font_bake_custom_data(atlas->pixel, *width, *height, atlas->custom,
13778 (nk_size)(*width * *height * 4));
13781 nk_font_bake_convert(img_rgba, *width, *height, atlas->pixel);
13786 atlas->tex_height = *height;
13810 cursor->img.h = (unsigned short)*height;
15655 header.h = font->height + 2.0f * style->window.header.padding.y;
15694 layout->row.height = panel_padding.y;
15716 header.h = font->height + 2.0f * style->window.header.padding.y;
15796 float t = font->width(font->userdata, font->height, title, text_len);
15802 label.h = font->height + 2 * style->window.header.label_padding.y;
15860 layout->at_y += layout->row.height;
15865 /* update panel height to fit dynamic growth */
16341 float h = ctx->style.font->height + 2.0f * style->window.header.padding.y +
16580 header.h = ctx->style.font->height + 2 * ctx->style.window.header.padding.y;
17263 body.y = (panel->at_y + panel->footer_height + panel->border + padding.y + panel->row.height);
17318 layout->menu.y = layout->at_y + layout->row.height;
17344 layout->bounds.y += layout->menu.h + ctx->style.window.spacing.y + layout->row.height;
17345 layout->bounds.h -= layout->menu.h + ctx->style.window.spacing.y + layout->row.height;
17349 layout->at_y = layout->bounds.y - layout->row.height;
17584 nk_layout_set_min_row_height(struct nk_context *ctx, float height)
17597 layout->row.min_height = height;
17613 layout->row.min_height = ctx->style.font->height;
17639 float height, int cols)
17672 layout->at_y += layout->row.height;
17674 if (height == 0.0f)
17675 layout->row.height = NK_MAX(height, layout->row.min_height) + item_spacing.y;
17676 else layout->row.height = height + item_spacing.y;
17685 background.h = layout->row.height + 1.0f;
17691 float height, int cols, int width)
17702 nk_panel_layout(ctx, win, height, cols);
17723 nk_layout_row_dynamic(struct nk_context *ctx, float height, int cols)
17725 nk_row_layout(ctx, NK_DYNAMIC, height, cols, 0);
17728 nk_layout_row_static(struct nk_context *ctx, float height, int item_width, int cols)
17730 nk_row_layout(ctx, NK_STATIC, height, cols, item_width);
17806 float height, int cols, const float *ratio)
17821 nk_panel_layout(ctx, win, height, cols);
17844 nk_layout_row_template_begin(struct nk_context *ctx, float height)
17857 nk_panel_layout(ctx, win, height, 1);
17983 float height, int widget_count)
17996 nk_panel_layout(ctx, win, height, widget_count);
18057 ret.h = layout->row.height;
18076 ret.h = layout->row.height;
18148 const float row_height = layout->row.height - spacing.y;
18209 bounds->y = layout->at_y + (layout->row.height * layout->row.item.y);
18212 bounds->h = layout->row.height * layout->row.item.h + NK_FRAC(bounds->y);
18281 bounds->h = layout->row.height - spacing.y;
18329 layout->at_y += layout->row.height;
18384 row_height = style->font->height + 2 * style->tab.padding.y;
18423 sym.w = sym.h = style->font->height;
18433 sym.w = style->font->height + style->tab.spacing.x;}
18442 label.h = style->font->height;
18570 row_height = style->font->height + 2 * style->tab.padding.y;
18605 sym.w = sym.h = style->font->height;
18616 text_width = style->font->width(style->font->userdata, style->font->height, title, text_len);
18623 label.h = style->font->height;
19273 label.h = NK_MIN(f->height, b.h - 2 * t->padding.y);
19275 text_width = f->width(f->userdata, f->height, (const char*)string, len);
19295 label.y = b.y + b.h/2.0f - (float)f->height/2.0f;
19296 label.h = NK_MAX(b.h/2.0f, b.h - (b.h/2.0f + f->height/2.0f));
19298 label.y = b.y + b.h - f->height;
19299 label.h = f->height;
19331 line.h = 2 * t->padding.y + f->height;
19338 line.y += f->height + 2 * t->padding.y;
19994 tri.y = content.y + (content.h/2) - font->height/2;
19995 tri.w = font->height; tri.h = font->height;
20477 r.w = NK_MAX(r.w, font->height + 2 * style->padding.x);
20478 r.h = NK_MAX(r.h, font->height + 2 * style->padding.y);
20487 select.w = font->height;
21701 float height; /* height of line */
21712 /* height of row above and below baseline */
21729 return font->width(font->userdata, font->height, str, len);
21865 find->height = r.ymax - r.ymin;
21883 find->height = r.ymax - r.ymin;
22848 glyph_width = font->width(font->userdata, font->height, text+text_len, glyph_len);
22899 row_height = (flags & NK_EDIT_MULTILINE)? font->height + style->row_padding: area.h;
23085 glyph_width = font->width(font->userdata, font->height, text, glyph_len);
23151 glyph_width = font->width(font->userdata, font->height, text+text_len, glyph_len);
23160 glyph_width = font->width(font->userdata, font->height,
23313 cursor.h = font->height;
23330 label.w = font->width(font->userdata, font->height, cursor_ptr, glyph_len);
23657 left.h = font->height/2;
23664 size = font->width(font->userdata, font->height, name, name_len);
23678 size = font->width(font->userdata, font->height, buffer, *len);
23698 size = font->width(font->userdata, font->height, string, num_len);
24481 bar_w = font->height;
25389 style->font->height, text, text_len);
25391 text_height = (style->font->height + 2 * padding.y);
25528 /// comes in effect if you pass in zero was row height argument.
25531 /// row height derived from font height. If you need a row smaller than
25615 /// popup did not reach max height.
25616 /// In addition the height parameter was changed into vec2
25617 /// for width and height to have more control over the popup size.
25642 /// - 2016/09/04 (1.15.2) - Fixed wrong combobox height calculation.
25666 /// - 2016/08/29 (1.10.0) - Added additional height parameter to `nk_combobox_xxx`.