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-gesture-OrientedBoundingBox"))]
__jni_bindgen! {
    /// public class [OrientedBoundingBox](https://developer.android.com/reference/android/gesture/OrientedBoundingBox.html)
    ///
    /// Required feature: "android-gesture-OrientedBoundingBox"
    public class OrientedBoundingBox ("android/gesture/OrientedBoundingBox") extends crate::java::lang::Object {

        /// **get** public final [squareness](https://developer.android.com/reference/android/gesture/OrientedBoundingBox.html#squareness)
        pub fn squareness<'env>(&'env self) -> f32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/gesture/OrientedBoundingBox\0", "squareness\0", "F\0");
                env.get_float_field(self.0.object, __jni_field)
            }
        }

        /// **get** public final [width](https://developer.android.com/reference/android/gesture/OrientedBoundingBox.html#width)
        pub fn width<'env>(&'env self) -> f32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/gesture/OrientedBoundingBox\0", "width\0", "F\0");
                env.get_float_field(self.0.object, __jni_field)
            }
        }

        /// **get** public final [height](https://developer.android.com/reference/android/gesture/OrientedBoundingBox.html#height)
        pub fn height<'env>(&'env self) -> f32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/gesture/OrientedBoundingBox\0", "height\0", "F\0");
                env.get_float_field(self.0.object, __jni_field)
            }
        }

        /// **get** public final [orientation](https://developer.android.com/reference/android/gesture/OrientedBoundingBox.html#orientation)
        pub fn orientation<'env>(&'env self) -> f32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/gesture/OrientedBoundingBox\0", "orientation\0", "F\0");
                env.get_float_field(self.0.object, __jni_field)
            }
        }

        /// **get** public final [centerX](https://developer.android.com/reference/android/gesture/OrientedBoundingBox.html#centerX)
        pub fn centerX<'env>(&'env self) -> f32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/gesture/OrientedBoundingBox\0", "centerX\0", "F\0");
                env.get_float_field(self.0.object, __jni_field)
            }
        }

        /// **get** public final [centerY](https://developer.android.com/reference/android/gesture/OrientedBoundingBox.html#centerY)
        pub fn centerY<'env>(&'env self) -> f32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/gesture/OrientedBoundingBox\0", "centerY\0", "F\0");
                env.get_float_field(self.0.object, __jni_field)
            }
        }
    }
}