[−][src]Struct pixel_widgets::widget::row::Row
Layout child widgets horizontally
Implementations
impl<'a, T: 'a> Row<'a, T>
[src]
pub fn new() -> Self
[src]
Construct a new Row
pub fn push<I: IntoNode<'a, T> + 'a>(self, item: I) -> Self
[src]
Adds a child widget to the row
pub fn extend<I: IntoIterator<Item = N>, N: IntoNode<'a, T> + 'a>(
self,
iter: I
) -> Self
[src]
self,
iter: I
) -> Self
Adds child widgets using an iterator
Trait Implementations
impl<'a, T: 'a> IntoNode<'a, T> for Row<'a, T>
[src]
pub fn into_node(self) -> Node<'a, T>
[src]
pub fn class(self, class: &'a str) -> Node<'a, Message>
[src]
pub fn on_event(
self,
event: NodeEvent,
f: impl 'a + Send + Fn(&mut Context<Message>)
) -> Node<'a, Message>
[src]
self,
event: NodeEvent,
f: impl 'a + Send + Fn(&mut Context<Message>)
) -> Node<'a, Message>
impl<'a, T: 'a> Widget<'a, T> for Row<'a, T>
[src]
pub fn widget(&self) -> &'static str
[src]
pub fn visit_children(&mut self, visitor: &mut dyn FnMut(&mut Node<'a, T>))
[src]
pub fn len(&self) -> usize
[src]
pub fn size(&self, style: &Stylesheet) -> (Size, Size)
[src]
pub fn focused(&self) -> bool
[src]
pub fn event(
&mut self,
layout: Rectangle,
clip: Rectangle,
stylesheet: &Stylesheet,
event: Event,
context: &mut Context<T>
)
[src]
&mut self,
layout: Rectangle,
clip: Rectangle,
stylesheet: &Stylesheet,
event: Event,
context: &mut Context<T>
)
pub fn draw(
&mut self,
layout: Rectangle,
clip: Rectangle,
stylesheet: &Stylesheet
) -> Vec<Primitive<'a>>
[src]
&mut self,
layout: Rectangle,
clip: Rectangle,
stylesheet: &Stylesheet
) -> Vec<Primitive<'a>>
pub fn state(&self) -> StateVec
[src]
pub fn hit(
&self,
layout: Rectangle,
clip: Rectangle,
_style: &Stylesheet,
x: f32,
y: f32
) -> bool
[src]
&self,
layout: Rectangle,
clip: Rectangle,
_style: &Stylesheet,
x: f32,
y: f32
) -> bool
pub fn node_event(
&mut self,
_layout: Rectangle,
_style: &Stylesheet,
_event: NodeEvent,
_context: &mut Context<Message>
)
[src]
&mut self,
_layout: Rectangle,
_style: &Stylesheet,
_event: NodeEvent,
_context: &mut Context<Message>
)
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for Row<'a, T>
[src]
impl<'a, T> Send for Row<'a, T>
[src]
impl<'a, T> !Sync for Row<'a, T>
[src]
impl<'a, T> Unpin for Row<'a, T>
[src]
impl<'a, T> !UnwindSafe for Row<'a, T>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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.
pub 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>,