Lines Matching defs:columns
1999 /// A row has a height the window content grows by and a number of columns and each
2006 /// here is that if you define more widgets then columns defined inside the layout
2036 /// if the owning window grows in width. So the number of columns dictates
2043 /// Just like all other layouting APIs if you define more widget than columns this
2238 /// nk_layout_row_dynamic | Current layout is divided into n same sized growing columns
2239 /// nk_layout_row_static | Current layout is divided into n same fixed sized columns
2240 /// nk_layout_row_begin | Starts a new row with given height and number of columns
2243 /// nk_layout_row | Specifies row columns in array as either window ratio or size
2347 /// Starts a new dynamic or fixed row with given height and columns.
2355 /// __fmt__ | either `NK_DYNAMIC` for window ratio or `NK_STATIC` for fixed size columns
2384 /// Specifies row columns in array as either window ratio or size
2392 /// __fmt__ | Either `NK_DYNAMIC` for window ratio or `NK_STATIC` for fixed size columns
2465 /// __fmt__ | Either `NK_DYNAMIC` for window ratio or `NK_STATIC` for fixed size columns
5302 int columns;
5905 NK_LIB float nk_layout_row_calculate_usable_space(const struct nk_style *style, enum nk_panel_type type, float total_space, int columns);
15690 layout->row.columns = 0;
17619 float total_space, int columns)
17633 panel_spacing = (float)NK_MAX(columns - 1, 0) * spacing.x;
17673 layout->row.columns = cols;
17756 layout->row.columns = cols;
17859 layout->row.columns = 0;
17885 NK_ASSERT(layout->row.columns < NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS);
17887 if (layout->row.columns >= NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS) return;
17888 layout->row.templates[layout->row.columns++] = -1.0f;
17905 NK_ASSERT(layout->row.columns < NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS);
17907 if (layout->row.columns >= NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS) return;
17908 layout->row.templates[layout->row.columns++] = -min_width;
17925 NK_ASSERT(layout->row.columns < NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS);
17927 if (layout->row.columns >= NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS) return;
17928 layout->row.templates[layout->row.columns++] = width;
17953 for (i = 0; i < layout->row.columns; ++i) {
17970 layout->bounds.w, layout->row.columns);
17975 for (i = 0; i < layout->row.columns; ++i) {
18149 nk_panel_layout(ctx, win, row_height, layout->row.columns);
18180 layout->bounds.w, layout->row.columns);
18187 float w = NK_MAX(1.0f,panel_space) / (float)layout->row.columns;
18267 NK_ASSERT(layout->row.index < layout->row.columns);
18303 if (layout->row.index >= layout->row.columns)
18328 if (layout->row.index >= layout->row.columns) {
19212 if (layout->row.index == layout->row.columns)
19234 index = (layout->row.index + cols) % layout->row.columns;
19235 rows = (layout->row.index + cols) / layout->row.columns;