pub struct RowScope { /* private fields */ }Expand description
A Row and its builder.
Implementations§
Source§impl RowScope
impl RowScope
Sourcepub fn arrangement(self, arrangement: Arrangement) -> Self
pub fn arrangement(self, arrangement: Arrangement) -> Self
How the children share the main axis.
Sourcepub fn space_role(self, role: SpaceRole) -> Self
pub fn space_role(self, role: SpaceRole) -> Self
A gap from the design system’s spacing ladder.
Source§impl RowScope
impl RowScope
Sourcepub fn on_pointer(
self,
kinds: PointerKinds,
handler: impl FnMut(PointerEvent) + 'static,
) -> Self
pub fn on_pointer( self, kinds: PointerKinds, handler: impl FnMut(PointerEvent) + 'static, ) -> Self
Subscribes the node to the kinds of pointer input in kinds. The handler runs
on the same call as the input; calling consume on the event keeps it from
the nearest subscribed ancestor and from the Renderer’s own handling.
A node that never calls this has no pointer input at all, and costs nothing.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RowScope
impl !Send for RowScope
impl !Sync for RowScope
impl !UnwindSafe for RowScope
impl Freeze for RowScope
impl Unpin for RowScope
impl UnsafeUnpin for RowScope
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