pub trait WidgetCoreRect: WidgetCore {
// Required methods
fn rect(&self) -> Rect;
fn set_rect(&mut self, rect: Rect);
}Expand description
Extension for a widget core with a Rect
This is only implemented on the core when there is not an explicit
definition of Layout::rect.
Required Methods§
Sourcefn rect(&self) -> Rect
fn rect(&self) -> Rect
Get the stored Rect
This should be equivalent to Layout::rect.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.