1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 21:30:03 -04:00

add sourcecode links, document slow growing

This commit is contained in:
René Rössler
2022-02-09 12:02:19 +01:00
parent 10c51364c5
commit ae71f91f8c
4 changed files with 70 additions and 48 deletions

View File

@@ -44,6 +44,7 @@ impl<'a> GridBuilder<'a> {
}
/// Build horizontal grid
/// Takes the available horizontal width, so there can't be anything right of the grid or the container will grow slowly!
pub fn horizontal<F>(self, grid: F)
where
F: for<'b> FnOnce(Grid<'a, 'b>),
@@ -62,6 +63,7 @@ impl<'a> GridBuilder<'a> {
}
/// Build vertical grid
/// Takes the full available vertical height, so there can't be anything below of the grid or the container will grow slowly!
pub fn vertical<F>(self, grid: F)
where
F: for<'b> FnOnce(Grid<'a, 'b>),

View File

@@ -1,6 +1,7 @@
/// Table view with (optional) fixed header and scrolling body.
/// Cell widths are precalculated with given size hints so we can have tables like this:
/// | fixed size | all available space/minimum | 30% of available width | fixed size |
/// Takes all available height, so if you want something below the table, put it in a grid.
use crate::{
layout::{CellSize, LineDirection},
sizing::Sizing,