SourceClass StripBuilder
from egui import StripBuilderclass StripBuilder:Builder for creating a new Strip.
This can be used to do dynamic layouts.
In contrast to normal egui behavior, strip cells do not grow with its children!
First use egui.StripBuilder.size and egui.StripBuilder.sizes to allocate space for the rows or columns will follow.
Then build the strip with egui.StripBuilder.horizontal/egui.StripBuilder.vertical, and add 'cells'
to it using Strip.cell. The number of cells MUST match the number of pre-allocated sizes.
Example
Methods§
Sourcedef cell_layout(self, /, layout: Layout) -> StripBuilder§
What layout should we use for the individual cells?
Sourcedef clip(self, /, clip: bool) -> StripBuilder§
Should we clip the contents of each cell? Default: False.
Sourcedef horizontal(self, /) -> Any§
Build horizontal strip: Cells are positions from left to right. Takes the available horizontal width, so there can't be anything right of the strip or the container will grow slowly!
Returns a egui.Response for hover events.
Sourcedef sense(self, /, sense: Sense) -> StripBuilder§
What should strip cells sense for? Default: egui.Sense.hover().
Sourcedef size(self, /, size: Size) -> StripBuilder§
Allocate space for one column/row.
Sourcedef sizes(self, /, size: Size, count: int) -> StripBuilder§
Allocate space for several columns/rows at once.
Sourcedef vertical(self, /) -> Any§
Build vertical strip: Cells are positions from top to bottom. Takes the full available vertical height, so there can't be anything below of the strip or the container will grow slowly!
Returns a egui.Response for hover events.