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-graphics-drawable-shapes-PathShape"))]
__jni_bindgen! {
    /// public class [PathShape](https://developer.android.com/reference/android/graphics/drawable/shapes/PathShape.html)
    ///
    /// Required feature: "android-graphics-drawable-shapes-PathShape"
    public class PathShape ("android/graphics/drawable/shapes/PathShape") extends crate::android::graphics::drawable::shapes::Shape {

        /// [PathShape](https://developer.android.com/reference/android/graphics/drawable/shapes/PathShape.html#PathShape(android.graphics.Path,%20float,%20float))
        ///
        /// Required features: "android-graphics-Path"
        #[cfg(any(feature = "all", all(feature = "android-graphics-Path")))]
        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::graphics::Path>>, arg1: f32, arg2: f32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::graphics::drawable::shapes::PathShape>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/graphics/drawable/shapes/PathShape", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/graphics/Path;FF)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/graphics/drawable/shapes/PathShape\0", "<init>\0", "(Landroid/graphics/Path;FF)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [clone](https://developer.android.com/reference/android/graphics/drawable/shapes/PathShape.html#clone())
        ///
        /// Required features: "android-graphics-drawable-shapes-PathShape"
        #[cfg(any(feature = "all", all(feature = "android-graphics-drawable-shapes-PathShape")))]
        pub fn clone<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::drawable::shapes::PathShape>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/graphics/drawable/shapes/PathShape", java.flags == PUBLIC, .name == "clone", .descriptor == "()Landroid/graphics/drawable/shapes/PathShape;"
            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/graphics/drawable/shapes/PathShape\0", "clone\0", "()Landroid/graphics/drawable/shapes/PathShape;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}