[]Struct jni_android_sys::android::opengl::GLSurfaceView

#[repr(transparent)]
pub struct GLSurfaceView(_);

public class GLSurfaceView

Required feature: "android-opengl-GLSurfaceView"

Methods

impl GLSurfaceView

pub fn new_Context<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>
) -> Result<Local<'env, GLSurfaceView>, Local<'env, Throwable>>
[src]

GLSurfaceView

Required features: "android-content-Context"

pub fn new_Context_AttributeSet<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: impl Into<Option<&'env AttributeSet>>
) -> Result<Local<'env, GLSurfaceView>, Local<'env, Throwable>>
[src]

GLSurfaceView

Required features: "android-content-Context", "android-util-AttributeSet"

pub fn setGLWrapper<'env>(
    &'env self,
    arg0: impl Into<Option<&'env GLSurfaceView_GLWrapper>>
) -> Result<(), Local<'env, Throwable>>
[src]

setGLWrapper

Required features: "android-opengl-GLSurfaceView_GLWrapper"

pub fn setDebugFlags<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getDebugFlags<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn setPreserveEGLContextOnPause<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getPreserveEGLContextOnPause<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn setRenderer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env GLSurfaceView_Renderer>>
) -> Result<(), Local<'env, Throwable>>
[src]

setRenderer

Required features: "android-opengl-GLSurfaceView_Renderer"

pub fn setEGLContextFactory<'env>(
    &'env self,
    arg0: impl Into<Option<&'env GLSurfaceView_EGLContextFactory>>
) -> Result<(), Local<'env, Throwable>>
[src]

setEGLContextFactory

Required features: "android-opengl-GLSurfaceView_EGLContextFactory"

pub fn setEGLWindowSurfaceFactory<'env>(
    &'env self,
    arg0: impl Into<Option<&'env GLSurfaceView_EGLWindowSurfaceFactory>>
) -> Result<(), Local<'env, Throwable>>
[src]

setEGLWindowSurfaceFactory

Required features: "android-opengl-GLSurfaceView_EGLWindowSurfaceFactory"

pub fn setEGLConfigChooser_EGLConfigChooser<'env>(
    &'env self,
    arg0: impl Into<Option<&'env GLSurfaceView_EGLConfigChooser>>
) -> Result<(), Local<'env, Throwable>>
[src]

setEGLConfigChooser

Required features: "android-opengl-GLSurfaceView_EGLConfigChooser"

pub fn setEGLConfigChooser_boolean<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn setEGLConfigChooser_int_int_int_int_int_int<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: i32,
    arg5: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn setEGLContextClientVersion<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn setRenderMode<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getRenderMode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn requestRender<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn surfaceCreated<'env>(
    &'env self,
    arg0: impl Into<Option<&'env SurfaceHolder>>
) -> Result<(), Local<'env, Throwable>>
[src]

surfaceCreated

Required features: "android-view-SurfaceHolder"

pub fn surfaceDestroyed<'env>(
    &'env self,
    arg0: impl Into<Option<&'env SurfaceHolder>>
) -> Result<(), Local<'env, Throwable>>
[src]

surfaceDestroyed

Required features: "android-view-SurfaceHolder"

pub fn surfaceChanged<'env>(
    &'env self,
    arg0: impl Into<Option<&'env SurfaceHolder>>,
    arg1: i32,
    arg2: i32,
    arg3: i32
) -> Result<(), Local<'env, Throwable>>
[src]

surfaceChanged

Required features: "android-view-SurfaceHolder"

pub fn surfaceRedrawNeededAsync<'env>(
    &'env self,
    arg0: impl Into<Option<&'env SurfaceHolder>>,
    arg1: impl Into<Option<&'env Runnable>>
) -> Result<(), Local<'env, Throwable>>
[src]

surfaceRedrawNeededAsync

Required features: "android-view-SurfaceHolder", "java-lang-Runnable"

pub fn surfaceRedrawNeeded<'env>(
    &'env self,
    arg0: impl Into<Option<&'env SurfaceHolder>>
) -> Result<(), Local<'env, Throwable>>
[src]

Deprecated

surfaceRedrawNeeded

Required features: "android-view-SurfaceHolder"

pub fn onPause<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn onResume<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn queueEvent<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Runnable>>
) -> Result<(), Local<'env, Throwable>>
[src]

queueEvent

Required features: "java-lang-Runnable"

pub const DEBUG_CHECK_GL_ERROR: i32[src]

public static final DEBUG_CHECK_GL_ERROR

pub const DEBUG_LOG_GL_CALLS: i32[src]

public static final DEBUG_LOG_GL_CALLS

pub const RENDERMODE_CONTINUOUSLY: i32[src]

public static final RENDERMODE_CONTINUOUSLY

pub const RENDERMODE_WHEN_DIRTY: i32[src]

public static final RENDERMODE_WHEN_DIRTY

Methods from Deref<Target = SurfaceView>

pub fn getHolder<'env>(
    &'env self
) -> Result<Option<Local<'env, SurfaceHolder>>, Local<'env, Throwable>>
[src]

getHolder

Required features: "android-view-SurfaceHolder"

pub fn setVisibility<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn gatherTransparentRegion<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Region>>
) -> Result<bool, Local<'env, Throwable>>
[src]

gatherTransparentRegion

Required features: "android-graphics-Region"

pub fn draw<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Canvas>>
) -> Result<(), Local<'env, Throwable>>
[src]

draw

Required features: "android-graphics-Canvas"

pub fn setZOrderMediaOverlay<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn setZOrderOnTop<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn setSecure<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

Trait Implementations

impl AsJValue for GLSurfaceView

impl AsRef<SurfaceHolder_Callback2> for GLSurfaceView

impl AsValidJObjectAndEnv for GLSurfaceView

impl Deref for GLSurfaceView

type Target = SurfaceView

The resulting type after dereferencing.

impl JniType for GLSurfaceView

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.