#[repr(transparent)]pub struct ArkUI_ScrollAlignment(pub c_uint);Available on crate feature
api-12 only.Expand description
@brief Alignment when scrolling to specific items.
@since 12
Tuple Fields§
§0: c_uintImplementations§
Source§impl ArkUI_ScrollAlignment
impl ArkUI_ScrollAlignment
Sourcepub const ARKUI_SCROLL_ALIGNMENT_START: ArkUI_ScrollAlignment = _
pub const ARKUI_SCROLL_ALIGNMENT_START: ArkUI_ScrollAlignment = _
Align the head. Align the head of the specified item with the head of the container.
Source§impl ArkUI_ScrollAlignment
impl ArkUI_ScrollAlignment
Sourcepub const ARKUI_SCROLL_ALIGNMENT_CENTER: ArkUI_ScrollAlignment = _
pub const ARKUI_SCROLL_ALIGNMENT_CENTER: ArkUI_ScrollAlignment = _
Center alignment. Align the axis direction of the specified item to the center of the container.
Source§impl ArkUI_ScrollAlignment
impl ArkUI_ScrollAlignment
Sourcepub const ARKUI_SCROLL_ALIGNMENT_END: ArkUI_ScrollAlignment = _
pub const ARKUI_SCROLL_ALIGNMENT_END: ArkUI_ScrollAlignment = _
Tail alignment. Align the tail of the specified item with the tail of the container.
Source§impl ArkUI_ScrollAlignment
impl ArkUI_ScrollAlignment
Sourcepub const ARKUI_SCROLL_ALIGNMENT_AUTO: ArkUI_ScrollAlignment = _
pub const ARKUI_SCROLL_ALIGNMENT_AUTO: ArkUI_ScrollAlignment = _
Automatic alignment. If the specified item is completely in the display area, no adjustments will be made. Otherwise, according to the principle of the shortest sliding distance, align the head or tail of the specified item with the container, so that the specified item is completely in the display area.
Trait Implementations§
Source§impl Clone for ArkUI_ScrollAlignment
impl Clone for ArkUI_ScrollAlignment
Source§fn clone(&self) -> ArkUI_ScrollAlignment
fn clone(&self) -> ArkUI_ScrollAlignment
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_ScrollAlignment
impl Hash for ArkUI_ScrollAlignment
Source§impl PartialEq for ArkUI_ScrollAlignment
impl PartialEq for ArkUI_ScrollAlignment
impl Eq for ArkUI_ScrollAlignment
impl StructuralPartialEq for ArkUI_ScrollAlignment
Auto Trait Implementations§
impl Freeze for ArkUI_ScrollAlignment
impl RefUnwindSafe for ArkUI_ScrollAlignment
impl Send for ArkUI_ScrollAlignment
impl Sync for ArkUI_ScrollAlignment
impl Unpin for ArkUI_ScrollAlignment
impl UnwindSafe for ArkUI_ScrollAlignment
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