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
Auto Trait Implementations
impl RefUnwindSafe for ANativeActivityCallbacks
impl Send for ANativeActivityCallbacks
impl Sync for ANativeActivityCallbacks
impl Unpin for ANativeActivityCallbacks
impl UnwindSafe for ANativeActivityCallbacks
Blanket Implementations
Mutably borrows from an owned value. Read more