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
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-inputmethodservice-InputMethodService_Insets"))]
__jni_bindgen! {
/// public final class [InputMethodService.Insets](https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets.html)
///
/// Required feature: "android-inputmethodservice-InputMethodService_Insets"
public final class InputMethodService_Insets ("android/inputmethodservice/InputMethodService$Insets") extends crate::java::lang::Object {
/// [Insets](https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets.html#Insets())
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::inputmethodservice::InputMethodService_Insets>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/inputmethodservice/InputMethodService$Insets", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/inputmethodservice/InputMethodService$Insets\0", "<init>\0", "()V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// **get** public [contentTopInsets](https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets.html#contentTopInsets)
pub fn contentTopInsets<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/inputmethodservice/InputMethodService$Insets\0", "contentTopInsets\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
/// **set** public [contentTopInsets](https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets.html#contentTopInsets)
pub fn set_contentTopInsets<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/inputmethodservice/InputMethodService$Insets\0", "contentTopInsets\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
/// **get** public [visibleTopInsets](https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets.html#visibleTopInsets)
pub fn visibleTopInsets<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/inputmethodservice/InputMethodService$Insets\0", "visibleTopInsets\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
/// **set** public [visibleTopInsets](https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets.html#visibleTopInsets)
pub fn set_visibleTopInsets<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/inputmethodservice/InputMethodService$Insets\0", "visibleTopInsets\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
/// public static final [TOUCHABLE_INSETS_FRAME](https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets.html#TOUCHABLE_INSETS_FRAME)
pub const TOUCHABLE_INSETS_FRAME : i32 = 0;
/// public static final [TOUCHABLE_INSETS_CONTENT](https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets.html#TOUCHABLE_INSETS_CONTENT)
pub const TOUCHABLE_INSETS_CONTENT : i32 = 1;
/// public static final [TOUCHABLE_INSETS_VISIBLE](https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets.html#TOUCHABLE_INSETS_VISIBLE)
pub const TOUCHABLE_INSETS_VISIBLE : i32 = 2;
/// **get** public [touchableInsets](https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets.html#touchableInsets)
pub fn touchableInsets<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/inputmethodservice/InputMethodService$Insets\0", "touchableInsets\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
/// **set** public [touchableInsets](https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets.html#touchableInsets)
pub fn set_touchableInsets<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/inputmethodservice/InputMethodService$Insets\0", "touchableInsets\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
}
}