#[repr(transparent)]pub struct ArkUI_ScrollSnapAlign(pub c_uint);Available on crate feature
api-12 only.Expand description
@brief Enumerates the alignment modes of list items when scrolling ends.
@since 12
Tuple Fields§
§0: c_uintImplementations§
Source§impl ArkUI_ScrollSnapAlign
impl ArkUI_ScrollSnapAlign
Sourcepub const ARKUI_SCROLL_SNAP_ALIGN_NONE: ArkUI_ScrollSnapAlign = _
pub const ARKUI_SCROLL_SNAP_ALIGN_NONE: ArkUI_ScrollSnapAlign = _
No alignment. This is the default value.
Source§impl ArkUI_ScrollSnapAlign
impl ArkUI_ScrollSnapAlign
Sourcepub const ARKUI_SCROLL_SNAP_ALIGN_START: ArkUI_ScrollSnapAlign = _
pub const ARKUI_SCROLL_SNAP_ALIGN_START: ArkUI_ScrollSnapAlign = _
The first item in the view is aligned at the start of the list.
Source§impl ArkUI_ScrollSnapAlign
impl ArkUI_ScrollSnapAlign
Sourcepub const ARKUI_SCROLL_SNAP_ALIGN_CENTER: ArkUI_ScrollSnapAlign = _
pub const ARKUI_SCROLL_SNAP_ALIGN_CENTER: ArkUI_ScrollSnapAlign = _
The middle items in the view are aligned in the center of the list.
Source§impl ArkUI_ScrollSnapAlign
impl ArkUI_ScrollSnapAlign
Sourcepub const ARKUI_SCROLL_SNAP_ALIGN_END: ArkUI_ScrollSnapAlign = _
pub const ARKUI_SCROLL_SNAP_ALIGN_END: ArkUI_ScrollSnapAlign = _
The last item in the view is aligned at the end of the list.
Trait Implementations§
Source§impl Clone for ArkUI_ScrollSnapAlign
impl Clone for ArkUI_ScrollSnapAlign
Source§fn clone(&self) -> ArkUI_ScrollSnapAlign
fn clone(&self) -> ArkUI_ScrollSnapAlign
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Hash for ArkUI_ScrollSnapAlign
impl Hash for ArkUI_ScrollSnapAlign
Source§impl PartialEq for ArkUI_ScrollSnapAlign
impl PartialEq for ArkUI_ScrollSnapAlign
impl Eq for ArkUI_ScrollSnapAlign
impl StructuralPartialEq for ArkUI_ScrollSnapAlign
Auto Trait Implementations§
impl Freeze for ArkUI_ScrollSnapAlign
impl RefUnwindSafe for ArkUI_ScrollSnapAlign
impl Send for ArkUI_ScrollSnapAlign
impl Sync for ArkUI_ScrollSnapAlign
impl Unpin for ArkUI_ScrollSnapAlign
impl UnwindSafe for ArkUI_ScrollSnapAlign
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