#[repr(transparent)]pub struct ArkUI_ScrollNestedMode(pub c_uint);api-12 only.Expand description
@brief Defines nested scrolling options.
@since 12
Tuple Fields§
§0: c_uintImplementations§
Source§impl ArkUI_ScrollNestedMode
impl ArkUI_ScrollNestedMode
Sourcepub const ARKUI_SCROLL_NESTED_MODE_SELF_ONLY: ArkUI_ScrollNestedMode = _
pub const ARKUI_SCROLL_NESTED_MODE_SELF_ONLY: ArkUI_ScrollNestedMode = _
The scrolling is contained within the component, and no scroll chaining occurs, that is, the parent component does not scroll when the component scrolling reaches the boundary.
Source§impl ArkUI_ScrollNestedMode
impl ArkUI_ScrollNestedMode
Sourcepub const ARKUI_SCROLL_NESTED_MODE_SELF_FIRST: ArkUI_ScrollNestedMode = _
pub const ARKUI_SCROLL_NESTED_MODE_SELF_FIRST: ArkUI_ScrollNestedMode = _
The component scrolls first, and when it hits the boundary, the parent component scrolls. /** When the parent component hits the boundary, its edge effect is displayed. If no edge effect is specified for the parent component, the edge effect of the child component is displayed instead.
Source§impl ArkUI_ScrollNestedMode
impl ArkUI_ScrollNestedMode
Sourcepub const ARKUI_SCROLL_NESTED_MODE_PARENT_FIRST: ArkUI_ScrollNestedMode = _
pub const ARKUI_SCROLL_NESTED_MODE_PARENT_FIRST: ArkUI_ScrollNestedMode = _
The parent component scrolls first, and when it hits the boundary, the component scrolls. When the component hits the boundary, its edge effect is displayed. If no edge effect is specified for the component, the edge effect of the parent component is displayed instead.
Source§impl ArkUI_ScrollNestedMode
impl ArkUI_ScrollNestedMode
Sourcepub const ARKUI_SCROLL_NESTED_MODE_PARALLEL: ArkUI_ScrollNestedMode = _
pub const ARKUI_SCROLL_NESTED_MODE_PARALLEL: ArkUI_ScrollNestedMode = _
The component and its parent component scroll at the same time. When both the component and its parent component hit the boundary, the edge effect of the component is displayed. If no edge effect is specified for the component, the edge effect of the parent component is displayed instead.
Trait Implementations§
Source§impl Clone for ArkUI_ScrollNestedMode
impl Clone for ArkUI_ScrollNestedMode
Source§fn clone(&self) -> ArkUI_ScrollNestedMode
fn clone(&self) -> ArkUI_ScrollNestedMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more