1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


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

        /// <init>
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::android::renderscript::Int2>> {
            // class.path == "android/renderscript/Int2", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/Int2\0", "<init>\0", "()V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// <init>
        pub fn new_int_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32, arg1: i32) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::android::renderscript::Int2>> {
            // class.path == "android/renderscript/Int2", java.flags == PUBLIC, .name == "<init>", .descriptor == "(II)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/Int2\0", "<init>\0", "(II)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// **get** public [x](https://developer.android.com/reference/android/renderscript/Int2.html#x)
        pub fn x<'env>(&'env self) -> i32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (class, field) = env.require_class_field("android/renderscript/Int2\0", "x\0", "I\0");
                env.get_int_field(class, field)
            }
        }

        /// **set** public [x](https://developer.android.com/reference/android/renderscript/Int2.html#x)
        pub fn set_x<'env>(&'env self, value: i32) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (class, field) = env.require_class_field("android/renderscript/Int2\0", "x\0", "I\0");
                env.set_int_field(class, field, value)
            }
        }

        /// **get** public [y](https://developer.android.com/reference/android/renderscript/Int2.html#y)
        pub fn y<'env>(&'env self) -> i32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (class, field) = env.require_class_field("android/renderscript/Int2\0", "y\0", "I\0");
                env.get_int_field(class, field)
            }
        }

        /// **set** public [y](https://developer.android.com/reference/android/renderscript/Int2.html#y)
        pub fn set_y<'env>(&'env self, value: i32) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (class, field) = env.require_class_field("android/renderscript/Int2\0", "y\0", "I\0");
                env.set_int_field(class, field, value)
            }
        }
    }
}