pub struct AndroidSurfaceReplacement {
pub logical_size: LogicalSize,
pub window: *mut c_void,
pub jni_env: *mut c_void,
pub surface: *mut c_void,
}Expand description
A new Android window for
RenderSessionHandle::set_android_surface_target().
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_replacement 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 AndroidSurfaceReplacement
impl AndroidSurfaceReplacement
pub fn new(logical_size: LogicalSize) -> Self
Trait Implementations§
Source§impl Clone for AndroidSurfaceReplacement
impl Clone for AndroidSurfaceReplacement
Source§fn clone(&self) -> AndroidSurfaceReplacement
fn clone(&self) -> AndroidSurfaceReplacement
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 AndroidSurfaceReplacement
Source§impl Debug for AndroidSurfaceReplacement
impl Debug for AndroidSurfaceReplacement
impl StructuralPartialEq for AndroidSurfaceReplacement
Auto Trait Implementations§
impl !Send for AndroidSurfaceReplacement
impl !Sync for AndroidSurfaceReplacement
impl Freeze for AndroidSurfaceReplacement
impl RefUnwindSafe for AndroidSurfaceReplacement
impl Unpin for AndroidSurfaceReplacement
impl UnsafeUnpin for AndroidSurfaceReplacement
impl UnwindSafe for AndroidSurfaceReplacement
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