Skip to main content

ArkWeb_OnScrollCallback

Type Alias ArkWeb_OnScrollCallback 

Source
pub type ArkWeb_OnScrollCallback = Option<unsafe extern "C" fn(webTag: *const c_char, userData: *mut c_void, x: f64, y: f64)>;
Available on crate features api-11 and api-12 and api-18 only.
Expand description

Defines the scroll callback of the native ArkWeb.

§Arguments

  • webTag - The name of the web component.

  • userData - The data set by user.

  • x - X-axis scrolling offset.

  • y - Y-axis scrolling offset.

Available since API-level: 18

Aliased Type§

pub enum ArkWeb_OnScrollCallback {
    None,
    Some(unsafe extern "C" fn(*const u8, *mut c_void, f64, f64)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*const u8, *mut c_void, f64, f64))

Some value of type T.