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:
@@ -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>),
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user