pub trait Navigable {
// Required method
fn get_bounds(&self) -> (Vec2, Vec2);
}Expand description
Trait for extracting position and size from navigable UI components.
This allows the auto-navigation system to work with different UI implementations as long as they can provide position and size information.
Required Methods§
Sourcefn get_bounds(&self) -> (Vec2, Vec2)
fn get_bounds(&self) -> (Vec2, Vec2)
Returns the center position and size in global coordinates.