Struct composable::views::Fixed
source · pub struct Fixed<V> { /* private fields */ }
Available on crate features
unstable
and views
only.Expand description
Trait Implementations§
source§impl<V: View> View for Fixed<V>
impl<V: View> View for Fixed<V>
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<V> Freeze for Fixed<V>where
V: Freeze,
impl<V> RefUnwindSafe for Fixed<V>where
V: RefUnwindSafe,
impl<V> Send for Fixed<V>where
V: Send,
impl<V> Sync for Fixed<V>where
V: Sync,
impl<V> Unpin for Fixed<V>where
V: Unpin,
impl<V> UnwindSafe for Fixed<V>where
V: UnwindSafe,
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