pub trait CotisWindowContext {
// Required method
fn window_dimensions(&self) -> Dimensions;
}Expand description
Provides current window dimensions in pixels.
Required Methods§
Sourcefn window_dimensions(&self) -> Dimensions
fn window_dimensions(&self) -> Dimensions
Returns the current drawable window dimensions.
Layout managers call this value during frame preparation to size the root layout context.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".