pub struct Blank;Expand description
A widget with nothing of its own: an empty box for the stylesheet to
paint. Used for check, separator and spacer.
Trait Implementations§
Source§impl<M: 'static> Widget<M> for Blank
impl<M: 'static> Widget<M> for Blank
fn as_any(&self) -> &dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Source§fn set_attribute(&mut self, name: &str, value: &str) -> bool
fn set_attribute(&mut self, name: &str, value: &str) -> bool
Takes an attribute from the element description, returning
false
for one the widget does not know. id, class, style, grow,
align, disabled, shortcut and state never reach here.Source§fn axis(&self) -> Option<Axis>
fn axis(&self) -> Option<Axis>
Some for a container: the direction it lays its children out in.Source§fn measure(&self, fonts: &dyn Fonts, style: &ComputedStyle) -> Size
fn measure(&self, fonts: &dyn Fonts, style: &ComputedStyle) -> Size
The natural size of the widget’s own content, without padding or
border. Containers are measured from their children instead.
Source§fn state(&self) -> ElementState
fn state(&self) -> ElementState
State the widget owns, such as
CHECKED, merged into the element’s
state for styling.Auto Trait Implementations§
impl Freeze for Blank
impl RefUnwindSafe for Blank
impl Send for Blank
impl Sync for Blank
impl Unpin for Blank
impl UnsafeUnpin for Blank
impl UnwindSafe for Blank
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more