pub trait NativeView {
// Provided method
fn stretch_axis(&self) -> StretchAxis { ... }
}Expand description
A trait for all views handled by the native backend.
This includes:
- Configurable views (
TextField, Slider, Toggle, etc.) - Raw views (Color, Spacer, Divider, Container, etc.)
The native backend uses this trait to query layout behavior.
Provided Methods§
Sourcefn stretch_axis(&self) -> StretchAxis
fn stretch_axis(&self) -> StretchAxis
Which axis (or axes) this view stretches to fill available space.