ltk::types

Function orientation

Source
pub fn orientation() -> Orientation
Expand description

Orientation of the main surface: Orientation::Landscape when wider than tall, Orientation::Portrait otherwise (square counts as portrait, matching Length::orient’s resolution rule). Usable straight from view() to pick a row or a column arrangement without tracking on_resize by hand — the runtime rebuilds the view on every resize, so a layout branched on this follows the window live.