Skip to content

rs_rich.ext.layout

Generated from the type stubs by scripts/gen_python_api.py; do not edit.

rs_rich.ext.layout: bounded layouts: constraints, allocation, nodes and overflow (rich_ext::layout).

No Rich counterpart: this is the port's own rs-rich-ext crate.

Constraint

flex property

flex: Any

max property

max: Any

min property

min: Any

preferred property

preferred: Any

fixed staticmethod

fixed(size: Any) -> Any

LayoutNode

split staticmethod

split(axis: Any, children: Any, *, width: Any = ..., height: Any = ..., content_width: Any = ..., content_height: Any = ..., align: Any = ..., overflow: Any = ...) -> Any

validate

validate() -> Any

Overflowing

overflow property

overflow: Any

ConstraintError

Bases: ExtError

allocate

allocate(total: Any, constraints: Any) -> Any

fit_segments

fit_segments(segments: Any, width: Any, overflow: Any = ...) -> Any