jni-android-sys 0.0.10

Autogenerated glue code for access Android JVM APIs from Rust
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "android-renderscript-ProgramVertexFixedFunction_Constants"))]
__jni_bindgen! {
    /// public class [ProgramVertexFixedFunction.Constants](https://developer.android.com/reference/android/renderscript/ProgramVertexFixedFunction.Constants.html)
    ///
    /// Required feature: "android-renderscript-ProgramVertexFixedFunction_Constants"
    public class ProgramVertexFixedFunction_Constants ("android/renderscript/ProgramVertexFixedFunction$Constants") extends crate::java::lang::Object {

        /// [Constants](https://developer.android.com/reference/android/renderscript/ProgramVertexFixedFunction.Constants.html#Constants(android.renderscript.RenderScript))
        ///
        /// Required features: "android-renderscript-RenderScript"
        #[cfg(any(feature = "all", all(feature = "android-renderscript-RenderScript")))]
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::renderscript::RenderScript>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::renderscript::ProgramVertexFixedFunction_Constants>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/ProgramVertexFixedFunction$Constants", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/renderscript/RenderScript;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/ProgramVertexFixedFunction$Constants\0", "<init>\0", "(Landroid/renderscript/RenderScript;)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [destroy](https://developer.android.com/reference/android/renderscript/ProgramVertexFixedFunction.Constants.html#destroy())
        pub fn destroy<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/ProgramVertexFixedFunction$Constants", java.flags == PUBLIC, .name == "destroy", .descriptor == "()V"
            unsafe {
                let __jni_args = [];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/ProgramVertexFixedFunction$Constants\0", "destroy\0", "()V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setModelview](https://developer.android.com/reference/android/renderscript/ProgramVertexFixedFunction.Constants.html#setModelview(android.renderscript.Matrix4f))
        ///
        /// Required features: "android-renderscript-Matrix4f"
        #[cfg(any(feature = "all", all(feature = "android-renderscript-Matrix4f")))]
        pub fn setModelview<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::renderscript::Matrix4f>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/ProgramVertexFixedFunction$Constants", java.flags == PUBLIC, .name == "setModelview", .descriptor == "(Landroid/renderscript/Matrix4f;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/ProgramVertexFixedFunction$Constants\0", "setModelview\0", "(Landroid/renderscript/Matrix4f;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setProjection](https://developer.android.com/reference/android/renderscript/ProgramVertexFixedFunction.Constants.html#setProjection(android.renderscript.Matrix4f))
        ///
        /// Required features: "android-renderscript-Matrix4f"
        #[cfg(any(feature = "all", all(feature = "android-renderscript-Matrix4f")))]
        pub fn setProjection<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::renderscript::Matrix4f>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/ProgramVertexFixedFunction$Constants", java.flags == PUBLIC, .name == "setProjection", .descriptor == "(Landroid/renderscript/Matrix4f;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/ProgramVertexFixedFunction$Constants\0", "setProjection\0", "(Landroid/renderscript/Matrix4f;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setTexture](https://developer.android.com/reference/android/renderscript/ProgramVertexFixedFunction.Constants.html#setTexture(android.renderscript.Matrix4f))
        ///
        /// Required features: "android-renderscript-Matrix4f"
        #[cfg(any(feature = "all", all(feature = "android-renderscript-Matrix4f")))]
        pub fn setTexture<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::renderscript::Matrix4f>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/ProgramVertexFixedFunction$Constants", java.flags == PUBLIC, .name == "setTexture", .descriptor == "(Landroid/renderscript/Matrix4f;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/ProgramVertexFixedFunction$Constants\0", "setTexture\0", "(Landroid/renderscript/Matrix4f;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}