pub struct AndroidApp { /* private fields */ }
Expand description
A struct android_app *
.
Implementations§
Source§impl AndroidApp
impl AndroidApp
pub unsafe fn from_ptr(ptr: NonNull<android_app>) -> Self
pub fn ptr(&self) -> NonNull<android_app>
pub fn activity(&self) -> NativeActivity
pub fn input_queue(&self) -> Ref<'_, InputQueue>
pub fn config(&self) -> Ref<'_, Configuration>
pub fn handle_cmd<T>(&mut self, f: impl FnOnce(&mut Self, Cmd) -> T) -> T
pub fn saved_state(&self) -> Option<&[u8]>
pub fn content_rect(&self) -> ARect
pub fn looper(&self) -> ForeignLooper
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AndroidApp
impl RefUnwindSafe for AndroidApp
impl Unpin for AndroidApp
impl UnwindSafe for AndroidApp
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more