#[repr(transparent)]pub struct ArkUI_ScrollSnapAlign(pub c_uint);Available on crate feature
api-12 only.Expand description
Enumerates the alignment modes of list items when scrolling ends.
Available since API-level: 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.
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.
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.
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 duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ArkUI_ScrollSnapAlign
impl Debug for ArkUI_ScrollSnapAlign
Source§impl Hash for ArkUI_ScrollSnapAlign
impl Hash for ArkUI_ScrollSnapAlign
Source§impl PartialEq for ArkUI_ScrollSnapAlign
impl PartialEq for ArkUI_ScrollSnapAlign
impl Copy 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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)