pub struct Spacer { /* private fields */ }Expand description
A Spacer widget
Implementations§
Trait Implementations§
Source§impl WidgetExt for Spacer
impl WidgetExt for Spacer
Source§fn from_widget_ptr(ptr: *mut CWidget) -> Self
fn from_widget_ptr(ptr: *mut CWidget) -> Self
Constructs a new widget from a widget pointer
Source§fn underlying(&self) -> *mut c_void
fn underlying(&self) -> *mut c_void
Gets the underlying pointer (JNI jobject on android, UIView on iOS)
Source§fn background(self, col: Color) -> Selfwhere
Self: Sized,
fn background(self, col: Color) -> Selfwhere
Self: Sized,
Sets the background color
impl Send for Spacer
impl Sync for Spacer
Auto Trait Implementations§
impl Freeze for Spacer
impl RefUnwindSafe for Spacer
impl Unpin for Spacer
impl UnsafeUnpin for Spacer
impl UnwindSafe for Spacer
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