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 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!! __jni_bindgen! { /// public class [RectShape](https://developer.android.com/reference/android/graphics/drawable/shapes/RectShape.html) /// /// Required feature: android-graphics-drawable-shapes-RectShape #[cfg(any(feature = "all", feature = "android-graphics-drawable-shapes-RectShape"))] public class RectShape extends crate::android::graphics::drawable::shapes::Shape { /// <init> pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::android::graphics::drawable::shapes::RectShape>> { // class.path == "android/graphics/drawable/shapes/RectShape", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V" unsafe { let __jni_args = []; let (__jni_class, __jni_method) = __jni_env.require_class_method("android/graphics/drawable/shapes/RectShape\0", "<init>\0", "()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/RectShape.html#draw(android,%2520graphics,%2520Canvas,%2520android,%2520graphics,%2520Paint)) /// /// 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::Result<()> { // class.path == "android/graphics/drawable/shapes/RectShape", 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/RectShape\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()) } } /// [getOutline](https://developer.android.com/reference/android/graphics/drawable/shapes/RectShape.html#getOutline(android,%2520graphics,%2520Outline)) /// /// Required features: "android-graphics-Outline" #[cfg(any(feature = "all", all(feature = "android-graphics-Outline")))] pub fn get_outline<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::Outline>>) -> __jni_bindgen::Result<()> { // class.path == "android/graphics/drawable/shapes/RectShape", java.flags == PUBLIC, .name == "getOutline", .descriptor == "(Landroid/graphics/Outline;)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/graphics/drawable/shapes/RectShape\0", "getOutline\0", "(Landroid/graphics/Outline;)V\0"); __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } // // Not emitting: Non-public method // /// [onResize](https://developer.android.com/reference/android/graphics/drawable/shapes/RectShape.html#onResize(float,%2520float)) // fn on_resize<'env>(&'env self, arg0: f32, arg1: f32) -> __jni_bindgen::Result<()> { // // class.path == "android/graphics/drawable/shapes/RectShape", java.flags == PROTECTED, .name == "onResize", .descriptor == "(FF)V" // unsafe { // let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1)]; // 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/RectShape\0", "onResize\0", "(FF)V\0"); // __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } // // Not emitting: Non-public method // /// [rect](https://developer.android.com/reference/android/graphics/drawable/shapes/RectShape.html#rect()) // /// // /// Required features: "android-graphics-RectF" // #[cfg(any(feature = "all", all(feature = "android-graphics-RectF")))] // fn rect<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::RectF>>> { // // class.path == "android/graphics/drawable/shapes/RectShape", java.flags == PROTECTED | FINAL, .name == "rect", .descriptor == "()Landroid/graphics/RectF;" // 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/RectShape\0", "rect\0", "()Landroid/graphics/RectF;\0"); // __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } /// [clone](https://developer.android.com/reference/android/graphics/drawable/shapes/RectShape.html#clone()) /// /// Required features: "android-graphics-drawable-shapes-RectShape" #[cfg(any(feature = "all", all(feature = "android-graphics-drawable-shapes-RectShape")))] pub fn clone<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::drawable::shapes::RectShape>>> { // class.path == "android/graphics/drawable/shapes/RectShape", java.flags == PUBLIC, .name == "clone", .descriptor == "()Landroid/graphics/drawable/shapes/RectShape;" 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/RectShape\0", "clone\0", "()Landroid/graphics/drawable/shapes/RectShape;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } // // Not emitting: Bridge method - type erasure // /// [clone](https://developer.android.com/reference/android/graphics/drawable/shapes/RectShape.html#clone()) // /// // /// Required features: "android-graphics-drawable-shapes-Shape" // #[cfg(any(feature = "all", all(feature = "android-graphics-drawable-shapes-Shape")))] // pub fn clone<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::drawable::shapes::Shape>>> { // // class.path == "android/graphics/drawable/shapes/RectShape", java.flags == PUBLIC | BRIDGE | SYNTHETIC, .name == "clone", .descriptor == "()Landroid/graphics/drawable/shapes/Shape;" // 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/RectShape\0", "clone\0", "()Landroid/graphics/drawable/shapes/Shape;\0"); // __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } // // Not emitting: Bridge method - type erasure // /// [clone](https://developer.android.com/reference/android/graphics/drawable/shapes/RectShape.html#clone()) // /// // /// Required features: "java-lang-Object" // #[cfg(any(feature = "all", all(feature = "java-lang-Object")))] // pub fn clone<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::Object>>> { // // class.path == "android/graphics/drawable/shapes/RectShape", java.flags == PUBLIC | BRIDGE | SYNTHETIC, .name == "clone", .descriptor == "()Ljava/lang/Object;" // 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/RectShape\0", "clone\0", "()Ljava/lang/Object;\0"); // __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } } }