[−][src]Struct iced::widget::Row
A container that distributes its contents horizontally.
A Row
will try to fill the horizontal space of its container.
Methods
impl<'a, Message, Renderer> Row<'a, Message, Renderer>
[src]
pub fn new() -> Self
[src]
Creates an empty Row
.
pub fn spacing(self, px: u16) -> Self
[src]
Sets the horizontal spacing between elements in pixels.
Custom margins per element do not exist in Iced. You should use this method instead! While less flexible, it helps you keep spacing between elements consistent.
pub fn padding(self, px: u16) -> Self
[src]
Sets the padding of the Row
in pixels.
pub fn width(self, width: u16) -> Self
[src]
Sets the width of the Row
in pixels.
pub fn height(self, height: u16) -> Self
[src]
Sets the height of the Row
in pixels.
pub fn max_width(self, max_width: u16) -> Self
[src]
Sets the maximum width of the Row
in pixels.
pub fn max_height(self, max_height: u16) -> Self
[src]
Sets the maximum height of the Row
in pixels.
pub fn align_self(self, align: Align) -> Self
[src]
Sets the alignment of the Row
itself.
This is useful if you want to override the default alignment given by the parent container.
pub fn align_items(self, align: Align) -> Self
[src]
Sets the vertical alignment of the contents of the Row
.
pub fn justify_content(self, justify: Justify) -> Self
[src]
Sets the horizontal distribution strategy for the contents of the
Row
.
pub fn push<E>(self, child: E) -> Row<'a, Message, Renderer> where
E: Into<Element<'a, Message, Renderer>>,
[src]
E: Into<Element<'a, Message, Renderer>>,
Trait Implementations
impl<'a, Message, Renderer> Widget<Message, Renderer> for Row<'a, Message, Renderer>
[src]
fn node(&self, renderer: &Renderer) -> Node
[src]
fn on_event(
&mut self,
event: Event,
layout: Layout,
cursor_position: Point,
messages: &mut Vec<Message>
)
[src]
&mut self,
event: Event,
layout: Layout,
cursor_position: Point,
messages: &mut Vec<Message>
)
fn draw(
&self,
renderer: &mut Renderer,
layout: Layout,
cursor_position: Point
) -> MouseCursor
[src]
&self,
renderer: &mut Renderer,
layout: Layout,
cursor_position: Point
) -> MouseCursor
fn hash_layout(&self, state: &mut Hasher)
[src]
impl<'a, Message: Default, Renderer: Default> Default for Row<'a, Message, Renderer>
[src]
impl<'a, Message, Renderer> From<Row<'a, Message, Renderer>> for Element<'a, Message, Renderer> where
Renderer: 'a,
Message: 'static,
[src]
Renderer: 'a,
Message: 'static,
impl<'a, Message, Renderer> Debug for Row<'a, Message, Renderer>
[src]
Auto Trait Implementations
impl<'a, Message, Renderer> !Sync for Row<'a, Message, Renderer>
impl<'a, Message, Renderer> !Send for Row<'a, Message, Renderer>
impl<'a, Message, Renderer> Unpin for Row<'a, Message, Renderer>
impl<'a, Message, Renderer> !UnwindSafe for Row<'a, Message, Renderer>
impl<'a, Message, Renderer> !RefUnwindSafe for Row<'a, Message, Renderer>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,