pub trait Render<E>: Sizedwhere
E: Env,{
// Required methods
fn _style(&self) -> &EStyle<E>;
fn _bounds(&self) -> &Bounds;
fn _viewport(&self) -> &Bounds;
fn _selector(&self) -> &ESSelector<E>;
fn _set_style(&mut self, v: &EStyle<E>);
fn _set_bounds(&mut self, v: &Bounds);
fn _set_viewport(&mut self, v: &Bounds);
fn _set_selector(&mut self, v: &ESSelector<E>);
// Provided methods
fn force(&self, _b: &Bounds) -> bool { ... }
fn validate_widgets(&mut self, _b: &Bounds) -> bool { ... }
}
Required Methods§
fn _style(&self) -> &EStyle<E>
fn _bounds(&self) -> &Bounds
fn _viewport(&self) -> &Bounds
fn _selector(&self) -> &ESSelector<E>
fn _set_style(&mut self, v: &EStyle<E>)
fn _set_bounds(&mut self, v: &Bounds)
fn _set_viewport(&mut self, v: &Bounds)
fn _set_selector(&mut self, v: &ESSelector<E>)
Provided Methods§
Sourcefn force(&self, _b: &Bounds) -> bool
fn force(&self, _b: &Bounds) -> bool
If widgets should be rendered even if the don’t require to
Sourcefn validate_widgets(&mut self, _b: &Bounds) -> bool
fn validate_widgets(&mut self, _b: &Bounds) -> bool
Return false if rendered widgets should not be set rendered
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.