[−]Struct jni_android_sys::android::view::Menu
public interface Menu
Required feature: android-view-Menu
Methods
impl Menu
pub fn add_char_sequence<'env>(
&'env self,
arg0: impl Into<Option<&'env CharSequence>>
) -> Result<Option<Local<'env, MenuItem>>>[src]
&'env self,
arg0: impl Into<Option<&'env CharSequence>>
) -> Result<Option<Local<'env, MenuItem>>>
Required features: "android-view-MenuItem", "java-lang-CharSequence"
pub fn add_int<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, MenuItem>>>[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, MenuItem>>>
Required features: "android-view-MenuItem"
pub fn add_int_int_int_char_sequence<'env>(
&'env self,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: impl Into<Option<&'env CharSequence>>
) -> Result<Option<Local<'env, MenuItem>>>[src]
&'env self,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: impl Into<Option<&'env CharSequence>>
) -> Result<Option<Local<'env, MenuItem>>>
Required features: "android-view-MenuItem", "java-lang-CharSequence"
pub fn add_int_int_int_int<'env>(
&'env self,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: i32
) -> Result<Option<Local<'env, MenuItem>>>[src]
&'env self,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: i32
) -> Result<Option<Local<'env, MenuItem>>>
Required features: "android-view-MenuItem"
pub fn add_sub_menu_char_sequence<'env>(
&'env self,
arg0: impl Into<Option<&'env CharSequence>>
) -> Result<Option<Local<'env, SubMenu>>>[src]
&'env self,
arg0: impl Into<Option<&'env CharSequence>>
) -> Result<Option<Local<'env, SubMenu>>>
Required features: "android-view-SubMenu", "java-lang-CharSequence"
pub fn add_sub_menu_int<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, SubMenu>>>[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, SubMenu>>>
Required features: "android-view-SubMenu"
pub fn add_sub_menu_int_int_int_char_sequence<'env>(
&'env self,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: impl Into<Option<&'env CharSequence>>
) -> Result<Option<Local<'env, SubMenu>>>[src]
&'env self,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: impl Into<Option<&'env CharSequence>>
) -> Result<Option<Local<'env, SubMenu>>>
Required features: "android-view-SubMenu", "java-lang-CharSequence"
pub fn add_sub_menu_int_int_int_int<'env>(
&'env self,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: i32
) -> Result<Option<Local<'env, SubMenu>>>[src]
&'env self,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: i32
) -> Result<Option<Local<'env, SubMenu>>>
Required features: "android-view-SubMenu"
pub fn remove_item<'env>(&'env self, arg0: i32) -> Result<()>[src]
pub fn remove_group<'env>(&'env self, arg0: i32) -> Result<()>[src]
pub fn clear<'env>(&'env self) -> Result<()>[src]
pub fn set_group_checkable<'env>(
&'env self,
arg0: i32,
arg1: bool,
arg2: bool
) -> Result<()>[src]
&'env self,
arg0: i32,
arg1: bool,
arg2: bool
) -> Result<()>
pub fn set_group_visible<'env>(&'env self, arg0: i32, arg1: bool) -> Result<()>[src]
pub fn set_group_enabled<'env>(&'env self, arg0: i32, arg1: bool) -> Result<()>[src]
pub fn has_visible_items<'env>(&'env self) -> Result<bool>[src]
pub fn find_item<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, MenuItem>>>[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, MenuItem>>>
Required features: "android-view-MenuItem"
pub fn size<'env>(&'env self) -> Result<i32>[src]
pub fn get_item<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, MenuItem>>>[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, MenuItem>>>
Required features: "android-view-MenuItem"
pub fn close<'env>(&'env self) -> Result<()>[src]
pub fn perform_shortcut<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env KeyEvent>>,
arg2: i32
) -> Result<bool>[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env KeyEvent>>,
arg2: i32
) -> Result<bool>
Required features: "android-view-KeyEvent"
pub fn is_shortcut_key<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env KeyEvent>>
) -> Result<bool>[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env KeyEvent>>
) -> Result<bool>
Required features: "android-view-KeyEvent"
pub fn perform_identifier_action<'env>(
&'env self,
arg0: i32,
arg1: i32
) -> Result<bool>[src]
&'env self,
arg0: i32,
arg1: i32
) -> Result<bool>
pub fn set_qwerty_mode<'env>(&'env self, arg0: bool) -> Result<()>[src]
pub fn set_group_divider_enabled<'env>(&'env self, arg0: bool) -> Result<()>[src]
pub const CATEGORY_ALTERNATIVE: i32[src]
public static final CATEGORY_ALTERNATIVE
pub const CATEGORY_CONTAINER: i32[src]
public static final CATEGORY_CONTAINER
pub const CATEGORY_SECONDARY: i32[src]
public static final CATEGORY_SECONDARY
pub const CATEGORY_SYSTEM: i32[src]
public static final CATEGORY_SYSTEM
pub const FIRST: i32[src]
public static final FIRST
pub const FLAG_ALWAYS_PERFORM_CLOSE: i32[src]
public static final FLAG_ALWAYS_PERFORM_CLOSE
pub const FLAG_APPEND_TO_GROUP: i32[src]
public static final FLAG_APPEND_TO_GROUP
pub const FLAG_PERFORM_NO_CLOSE: i32[src]
public static final FLAG_PERFORM_NO_CLOSE
pub const NONE: i32[src]
public static final NONE
pub const SUPPORTED_MODIFIERS_MASK: i32[src]
public static final SUPPORTED_MODIFIERS_MASK
Methods from Deref<Target = Object>
pub fn get_class<'env>(&'env self) -> Result<Option<Local<'env, Class>>>[src]
Required features: "java-lang-Class"
pub fn hash_code<'env>(&'env self) -> Result<i32>[src]
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
Required features: "java-lang-Object"
pub fn to_string<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]
Required features: "java-lang-String"
pub fn notify<'env>(&'env self) -> Result<()>[src]
pub fn notify_all<'env>(&'env self) -> Result<()>[src]
pub fn wait_long<'env>(&'env self, arg0: i64) -> Result<()>[src]
pub fn wait_long_int<'env>(&'env self, arg0: i64, arg1: i32) -> Result<()>[src]
pub fn wait<'env>(&'env self) -> Result<()>[src]
Trait Implementations
impl AsRef<Menu> for ContextMenu
impl AsRef<Menu> for SubMenu
impl Deref for Menu
impl AsValidJObjectAndEnv for Menu
impl AsJValue for Menu
Auto Trait Implementations
impl !Sync for Menu
impl Unpin for Menu
impl !Send for Menu
impl UnwindSafe for Menu
impl RefUnwindSafe for Menu
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,