Struct ndk_sys::ANativeActivityCallbacks[][src]

#[repr(C)]
pub struct ANativeActivityCallbacks {
Show 16 fields pub onStart: Option<unsafe extern "C" fn(activity: *mut ANativeActivity)>, pub onResume: Option<unsafe extern "C" fn(activity: *mut ANativeActivity)>, pub onSaveInstanceState: Option<unsafe extern "C" fn(activity: *mut ANativeActivity, outSize: *mut size_t) -> *mut c_void>, pub onPause: Option<unsafe extern "C" fn(activity: *mut ANativeActivity)>, pub onStop: Option<unsafe extern "C" fn(activity: *mut ANativeActivity)>, pub onDestroy: Option<unsafe extern "C" fn(activity: *mut ANativeActivity)>, pub onWindowFocusChanged: Option<unsafe extern "C" fn(activity: *mut ANativeActivity, hasFocus: c_int)>, pub onNativeWindowCreated: Option<unsafe extern "C" fn(activity: *mut ANativeActivity, window: *mut ANativeWindow)>, pub onNativeWindowResized: Option<unsafe extern "C" fn(activity: *mut ANativeActivity, window: *mut ANativeWindow)>, pub onNativeWindowRedrawNeeded: Option<unsafe extern "C" fn(activity: *mut ANativeActivity, window: *mut ANativeWindow)>, pub onNativeWindowDestroyed: Option<unsafe extern "C" fn(activity: *mut ANativeActivity, window: *mut ANativeWindow)>, pub onInputQueueCreated: Option<unsafe extern "C" fn(activity: *mut ANativeActivity, queue: *mut AInputQueue)>, pub onInputQueueDestroyed: Option<unsafe extern "C" fn(activity: *mut ANativeActivity, queue: *mut AInputQueue)>, pub onContentRectChanged: Option<unsafe extern "C" fn(activity: *mut ANativeActivity, rect: *const ARect)>, pub onConfigurationChanged: Option<unsafe extern "C" fn(activity: *mut ANativeActivity)>, pub onLowMemory: Option<unsafe extern "C" fn(activity: *mut ANativeActivity)>,
}

Fields

onStart: Option<unsafe extern "C" fn(activity: *mut ANativeActivity)>onResume: Option<unsafe extern "C" fn(activity: *mut ANativeActivity)>onSaveInstanceState: Option<unsafe extern "C" fn(activity: *mut ANativeActivity, outSize: *mut size_t) -> *mut c_void>onPause: Option<unsafe extern "C" fn(activity: *mut ANativeActivity)>onStop: Option<unsafe extern "C" fn(activity: *mut ANativeActivity)>onDestroy: Option<unsafe extern "C" fn(activity: *mut ANativeActivity)>onWindowFocusChanged: Option<unsafe extern "C" fn(activity: *mut ANativeActivity, hasFocus: c_int)>onNativeWindowCreated: Option<unsafe extern "C" fn(activity: *mut ANativeActivity, window: *mut ANativeWindow)>onNativeWindowResized: Option<unsafe extern "C" fn(activity: *mut ANativeActivity, window: *mut ANativeWindow)>onNativeWindowRedrawNeeded: Option<unsafe extern "C" fn(activity: *mut ANativeActivity, window: *mut ANativeWindow)>onNativeWindowDestroyed: Option<unsafe extern "C" fn(activity: *mut ANativeActivity, window: *mut ANativeWindow)>onInputQueueCreated: Option<unsafe extern "C" fn(activity: *mut ANativeActivity, queue: *mut AInputQueue)>onInputQueueDestroyed: Option<unsafe extern "C" fn(activity: *mut ANativeActivity, queue: *mut AInputQueue)>onContentRectChanged: Option<unsafe extern "C" fn(activity: *mut ANativeActivity, rect: *const ARect)>onConfigurationChanged: Option<unsafe extern "C" fn(activity: *mut ANativeActivity)>onLowMemory: Option<unsafe extern "C" fn(activity: *mut ANativeActivity)>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.