Trait Bounded
pub trait Bounded: Debug {
// Required methods
fn bounds(&self) -> Rectangle;
fn visible_bounds(&self) -> Option<Rectangle>;
}
Available on crate feature
selector
only.Expand description
Required Methods§
fn bounds(&self) -> Rectangle
fn bounds(&self) -> Rectangle
Returns the layout bounds.
fn visible_bounds(&self) -> Option<Rectangle>
fn visible_bounds(&self) -> Option<Rectangle>
Returns the visible bounds, in screen coordinates.