Struct composable::views::Spacer
source · pub struct Spacer(/* private fields */);
Available on crate features
unstable
and views
only.Implementations§
Trait Implementations§
source§impl View for Spacer
impl View for Spacer
source§fn event(&self, event: Event, offset: Point, bounds: Bounds)
fn event(&self, event: Event, offset: Point, bounds: Bounds)
User-interface
Event
handling of the View
source§fn padding(self, top: f32, right: f32, bottom: f32, left: f32) -> Padding<Self>
fn padding(self, top: f32, right: f32, bottom: f32, left: f32) -> Padding<Self>
Add padding to all sides of the
View
source§fn padding_top(self, pad: f32) -> Padding<Self>
fn padding_top(self, pad: f32) -> Padding<Self>
Add padding to the top of the
View
source§fn padding_right(self, pad: f32) -> Padding<Self>
fn padding_right(self, pad: f32) -> Padding<Self>
Add padding to the right side of the
View
source§fn padding_bottom(self, pad: f32) -> Padding<Self>
fn padding_bottom(self, pad: f32) -> Padding<Self>
Add padding to the bottom of the
View
source§fn padding_left(self, pad: f32) -> Padding<Self>
fn padding_left(self, pad: f32) -> Padding<Self>
Add padding to the left side of the
View
source§fn padding_horizontal(self, pad: f32) -> Padding<Self>
fn padding_horizontal(self, pad: f32) -> Padding<Self>
Add padding to the horizontal sides of the
View
source§fn padding_vertical(self, pad: f32) -> Padding<Self>
fn padding_vertical(self, pad: f32) -> Padding<Self>
Add padding to the vertical sides of the
View
source§fn padding_both(self, horizontal: f32, vertical: f32) -> Padding<Self>
fn padding_both(self, horizontal: f32, vertical: f32) -> Padding<Self>
Add different padding to the horizontal and vertical sides of the
View
source§fn padding_all(self, pad: f32) -> Padding<Self>
fn padding_all(self, pad: f32) -> Padding<Self>
Add the same padding to all sides of the
View
source§fn fixed(self, width: f32, height: f32) -> impl View
fn fixed(self, width: f32, height: f32) -> impl View
Set the size of the
View
to a fixed value.fn width(self, width: f32) -> impl View
fn height(self, height: f32) -> impl View
Auto Trait Implementations§
impl !Freeze for Spacer
impl !RefUnwindSafe for Spacer
impl Send for Spacer
impl !Sync for Spacer
impl Unpin 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