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-view-inputmethod-CursorAnchorInfo_Builder"))]
__jni_bindgen! {
    /// public final class [CursorAnchorInfo.Builder](https://developer.android.com/reference/android/view/inputmethod/CursorAnchorInfo.Builder.html)
    ///
    /// Required feature: "android-view-inputmethod-CursorAnchorInfo_Builder"
    public final class CursorAnchorInfo_Builder ("android/view/inputmethod/CursorAnchorInfo$Builder") extends crate::java::lang::Object {

        /// [Builder](https://developer.android.com/reference/android/view/inputmethod/CursorAnchorInfo.Builder.html#Builder())
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::view::inputmethod::CursorAnchorInfo_Builder>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/view/inputmethod/CursorAnchorInfo$Builder", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/inputmethod/CursorAnchorInfo$Builder\0", "<init>\0", "()V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setSelectionRange](https://developer.android.com/reference/android/view/inputmethod/CursorAnchorInfo.Builder.html#setSelectionRange(int,%20int))
        ///
        /// Required features: "android-view-inputmethod-CursorAnchorInfo_Builder"
        #[cfg(any(feature = "all", all(feature = "android-view-inputmethod-CursorAnchorInfo_Builder")))]
        pub fn setSelectionRange<'env>(&'env self, arg0: i32, arg1: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::inputmethod::CursorAnchorInfo_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/view/inputmethod/CursorAnchorInfo$Builder", java.flags == PUBLIC, .name == "setSelectionRange", .descriptor == "(II)Landroid/view/inputmethod/CursorAnchorInfo$Builder;"
            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/view/inputmethod/CursorAnchorInfo$Builder\0", "setSelectionRange\0", "(II)Landroid/view/inputmethod/CursorAnchorInfo$Builder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setComposingText](https://developer.android.com/reference/android/view/inputmethod/CursorAnchorInfo.Builder.html#setComposingText(int,%20java.lang.CharSequence))
        ///
        /// Required features: "android-view-inputmethod-CursorAnchorInfo_Builder", "java-lang-CharSequence"
        #[cfg(any(feature = "all", all(feature = "android-view-inputmethod-CursorAnchorInfo_Builder", feature = "java-lang-CharSequence")))]
        pub fn setComposingText<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::CharSequence>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::inputmethod::CursorAnchorInfo_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/view/inputmethod/CursorAnchorInfo$Builder", java.flags == PUBLIC, .name == "setComposingText", .descriptor == "(ILjava/lang/CharSequence;)Landroid/view/inputmethod/CursorAnchorInfo$Builder;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __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/view/inputmethod/CursorAnchorInfo$Builder\0", "setComposingText\0", "(ILjava/lang/CharSequence;)Landroid/view/inputmethod/CursorAnchorInfo$Builder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setInsertionMarkerLocation](https://developer.android.com/reference/android/view/inputmethod/CursorAnchorInfo.Builder.html#setInsertionMarkerLocation(float,%20float,%20float,%20float,%20int))
        ///
        /// Required features: "android-view-inputmethod-CursorAnchorInfo_Builder"
        #[cfg(any(feature = "all", all(feature = "android-view-inputmethod-CursorAnchorInfo_Builder")))]
        pub fn setInsertionMarkerLocation<'env>(&'env self, arg0: f32, arg1: f32, arg2: f32, arg3: f32, arg4: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::inputmethod::CursorAnchorInfo_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/view/inputmethod/CursorAnchorInfo$Builder", java.flags == PUBLIC, .name == "setInsertionMarkerLocation", .descriptor == "(FFFFI)Landroid/view/inputmethod/CursorAnchorInfo$Builder;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3), __jni_bindgen::AsJValue::as_jvalue(&arg4)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/inputmethod/CursorAnchorInfo$Builder\0", "setInsertionMarkerLocation\0", "(FFFFI)Landroid/view/inputmethod/CursorAnchorInfo$Builder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [addCharacterBounds](https://developer.android.com/reference/android/view/inputmethod/CursorAnchorInfo.Builder.html#addCharacterBounds(int,%20float,%20float,%20float,%20float,%20int))
        ///
        /// Required features: "android-view-inputmethod-CursorAnchorInfo_Builder"
        #[cfg(any(feature = "all", all(feature = "android-view-inputmethod-CursorAnchorInfo_Builder")))]
        pub fn addCharacterBounds<'env>(&'env self, arg0: i32, arg1: f32, arg2: f32, arg3: f32, arg4: f32, arg5: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::inputmethod::CursorAnchorInfo_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/view/inputmethod/CursorAnchorInfo$Builder", java.flags == PUBLIC, .name == "addCharacterBounds", .descriptor == "(IFFFFI)Landroid/view/inputmethod/CursorAnchorInfo$Builder;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3), __jni_bindgen::AsJValue::as_jvalue(&arg4), __jni_bindgen::AsJValue::as_jvalue(&arg5)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/inputmethod/CursorAnchorInfo$Builder\0", "addCharacterBounds\0", "(IFFFFI)Landroid/view/inputmethod/CursorAnchorInfo$Builder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

        /// [reset](https://developer.android.com/reference/android/view/inputmethod/CursorAnchorInfo.Builder.html#reset())
        pub fn reset<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/view/inputmethod/CursorAnchorInfo$Builder", java.flags == PUBLIC, .name == "reset", .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/view/inputmethod/CursorAnchorInfo$Builder\0", "reset\0", "()V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}