pub struct WIDGET_SIZE;Expand description
Exact size property info.
Properties like size, width and height set this metadata in the widget state.
Panels can use this info to implement Length::Leftover support.
Implementations§
Source§impl WIDGET_SIZE
impl WIDGET_SIZE
Sourcepub fn set_height(&self, height: &Length)
pub fn set_height(&self, height: &Length)
Set the height state.
Sourcepub fn get(&self) -> Size2D<WidgetLength, ()>
pub fn get(&self) -> Size2D<WidgetLength, ()>
Get the size set in the state.
Sourcepub fn get_wgt(&self, wgt: &mut UiNode) -> Size2D<WidgetLength, ()>
pub fn get_wgt(&self, wgt: &mut UiNode) -> Size2D<WidgetLength, ()>
Get the size set in the widget state.
Auto Trait Implementations§
impl Freeze for WIDGET_SIZE
impl RefUnwindSafe for WIDGET_SIZE
impl Send for WIDGET_SIZE
impl Sync for WIDGET_SIZE
impl Unpin for WIDGET_SIZE
impl UnwindSafe for WIDGET_SIZE
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more