pub struct AndroidSurfaceDescriptor {
pub logical_size: LogicalSize,
pub window: *mut c_void,
pub jni_env: *mut c_void,
pub surface: *mut c_void,
}Expand description
An Android window to present to, for MapHandle::attach_android_surface().
Name the window by window, or by jni_env and surface. The session
takes its own reference to the window, so you can release yours once the
call returns.
See mln_android_surface_descriptor in the
C API reference.
Fields§
§logical_size: LogicalSize§window: *mut c_voidYour ANativeWindow*, or null to name the window by surface.
jni_env: *mut c_voidThe calling thread’s JNIEnv*, with surface.
surface: *mut c_voidAn android.view.Surface, with jni_env.
Implementations§
Source§impl AndroidSurfaceDescriptor
impl AndroidSurfaceDescriptor
pub fn new(logical_size: LogicalSize) -> Self
Trait Implementations§
Source§impl Clone for AndroidSurfaceDescriptor
impl Clone for AndroidSurfaceDescriptor
Source§fn clone(&self) -> AndroidSurfaceDescriptor
fn clone(&self) -> AndroidSurfaceDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AndroidSurfaceDescriptor
Source§impl Debug for AndroidSurfaceDescriptor
impl Debug for AndroidSurfaceDescriptor
Source§impl PartialEq for AndroidSurfaceDescriptor
impl PartialEq for AndroidSurfaceDescriptor
impl StructuralPartialEq for AndroidSurfaceDescriptor
Auto Trait Implementations§
impl !Send for AndroidSurfaceDescriptor
impl !Sync for AndroidSurfaceDescriptor
impl Freeze for AndroidSurfaceDescriptor
impl RefUnwindSafe for AndroidSurfaceDescriptor
impl Unpin for AndroidSurfaceDescriptor
impl UnsafeUnpin for AndroidSurfaceDescriptor
impl UnwindSafe for AndroidSurfaceDescriptor
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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