pub struct ColumnScope { /* private fields */ }Expand description
A Column and its builder.
Implementations§
Source§impl ColumnScope
impl ColumnScope
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 ColumnScope
impl ColumnScope
Source§impl ColumnScope
impl ColumnScope
Source§impl ColumnScope
impl ColumnScope
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§
Source§impl Drop for ColumnScope
impl Drop for ColumnScope
Auto Trait Implementations§
impl !RefUnwindSafe for ColumnScope
impl !Send for ColumnScope
impl !Sync for ColumnScope
impl !UnwindSafe for ColumnScope
impl Freeze for ColumnScope
impl Unpin for ColumnScope
impl UnsafeUnpin for ColumnScope
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