Struct ndk_sys::ANativeActivityCallbacks
source · #[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 usize) -> *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 usize) -> *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§
source§impl Clone for ANativeActivityCallbacks
impl Clone for ANativeActivityCallbacks
source§fn clone(&self) -> ANativeActivityCallbacks
fn clone(&self) -> ANativeActivityCallbacks
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 Debug for ANativeActivityCallbacks
impl Debug for ANativeActivityCallbacks
impl Copy for ANativeActivityCallbacks
Auto Trait Implementations§
impl Freeze for ANativeActivityCallbacks
impl RefUnwindSafe for ANativeActivityCallbacks
impl Send for ANativeActivityCallbacks
impl Sync for ANativeActivityCallbacks
impl Unpin for ANativeActivityCallbacks
impl UnwindSafe for ANativeActivityCallbacks
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