pub struct LeftAlign { /* private fields */ }
Expand description
Render state for left alignment.
Implementations§
source§impl LeftAlign
impl LeftAlign
sourcepub fn build() -> Self
pub fn build() -> Self
Starts rendering items in left alignment.
Items are passed from left to right.
sourcepub fn with_spacing(spacing: f32) -> Self
pub fn with_spacing(spacing: f32) -> Self
Starts rendering items in left alignment with a custom spacing.
Items are passed from left to right.
sourcepub fn item(&mut self, ui: &Ui<'_>, render: impl FnOnce())
pub fn item(&mut self, ui: &Ui<'_>, render: impl FnOnce())
Renders the next item.
Items are passed from left to right.
sourcepub fn item_with_spacing(
&mut self,
ui: &Ui<'_>,
spacing: f32,
render: impl FnOnce()
)
pub fn item_with_spacing( &mut self, ui: &Ui<'_>, spacing: f32, render: impl FnOnce() )
Renders the next item with a temporary spacing override.
Items are passed from left to right.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LeftAlign
impl RefUnwindSafe for LeftAlign
impl Send for LeftAlign
impl Sync for LeftAlign
impl Unpin for LeftAlign
impl UnwindSafe for LeftAlign
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