pub struct MenuModel(/* private fields */);Expand description
See _cef_menu_model_t for more documentation.
Trait Implementations§
fn into_raw(self) -> *mut _cef_menu_model_t
fn into_raw(self) -> *mut _cef_menu_model_t
fn wrap_result(self) -> MenuModel
Source§impl ImplMenuModel for MenuModel
impl ImplMenuModel for MenuModel
See
_cef_menu_model_t::is_sub_menu for more documentation.Source§fn clear(&self) -> c_int
fn clear(&self) -> c_int
See
_cef_menu_model_t::clear for more documentation.Source§fn count(&self) -> usize
fn count(&self) -> usize
See
_cef_menu_model_t::get_count for more documentation.Source§fn add_separator(&self) -> c_int
fn add_separator(&self) -> c_int
See
_cef_menu_model_t::add_separator for more documentation.Source§fn add_item(&self, command_id: c_int, label: Option<&CefString>) -> c_int
fn add_item(&self, command_id: c_int, label: Option<&CefString>) -> c_int
See
_cef_menu_model_t::add_item for more documentation.Source§fn add_check_item(&self, command_id: c_int, label: Option<&CefString>) -> c_int
fn add_check_item(&self, command_id: c_int, label: Option<&CefString>) -> c_int
See
_cef_menu_model_t::add_check_item for more documentation.Source§fn add_radio_item(
&self,
command_id: c_int,
label: Option<&CefString>,
group_id: c_int,
) -> c_int
fn add_radio_item( &self, command_id: c_int, label: Option<&CefString>, group_id: c_int, ) -> c_int
See
_cef_menu_model_t::add_radio_item for more documentation.See
_cef_menu_model_t::add_sub_menu for more documentation.Source§fn insert_separator_at(&self, index: usize) -> c_int
fn insert_separator_at(&self, index: usize) -> c_int
See
_cef_menu_model_t::insert_separator_at for more documentation.Source§fn insert_item_at(
&self,
index: usize,
command_id: c_int,
label: Option<&CefString>,
) -> c_int
fn insert_item_at( &self, index: usize, command_id: c_int, label: Option<&CefString>, ) -> c_int
See
_cef_menu_model_t::insert_item_at for more documentation.Source§fn insert_check_item_at(
&self,
index: usize,
command_id: c_int,
label: Option<&CefString>,
) -> c_int
fn insert_check_item_at( &self, index: usize, command_id: c_int, label: Option<&CefString>, ) -> c_int
See
_cef_menu_model_t::insert_check_item_at for more documentation.Source§fn insert_radio_item_at(
&self,
index: usize,
command_id: c_int,
label: Option<&CefString>,
group_id: c_int,
) -> c_int
fn insert_radio_item_at( &self, index: usize, command_id: c_int, label: Option<&CefString>, group_id: c_int, ) -> c_int
See
_cef_menu_model_t::insert_radio_item_at for more documentation.See
_cef_menu_model_t::insert_sub_menu_at for more documentation.Source§fn remove(&self, command_id: c_int) -> c_int
fn remove(&self, command_id: c_int) -> c_int
See
_cef_menu_model_t::remove for more documentation.Source§fn remove_at(&self, index: usize) -> c_int
fn remove_at(&self, index: usize) -> c_int
See
_cef_menu_model_t::remove_at for more documentation.Source§fn index_of(&self, command_id: c_int) -> c_int
fn index_of(&self, command_id: c_int) -> c_int
See
_cef_menu_model_t::get_index_of for more documentation.Source§fn command_id_at(&self, index: usize) -> c_int
fn command_id_at(&self, index: usize) -> c_int
See
_cef_menu_model_t::get_command_id_at for more documentation.Source§fn set_command_id_at(&self, index: usize, command_id: c_int) -> c_int
fn set_command_id_at(&self, index: usize, command_id: c_int) -> c_int
See
_cef_menu_model_t::set_command_id_at for more documentation.Source§fn label(&self, command_id: c_int) -> CefStringUserfree
fn label(&self, command_id: c_int) -> CefStringUserfree
See
_cef_menu_model_t::get_label for more documentation.Source§fn label_at(&self, index: usize) -> CefStringUserfree
fn label_at(&self, index: usize) -> CefStringUserfree
See
_cef_menu_model_t::get_label_at for more documentation.Source§fn set_label(&self, command_id: c_int, label: Option<&CefString>) -> c_int
fn set_label(&self, command_id: c_int, label: Option<&CefString>) -> c_int
See
_cef_menu_model_t::set_label for more documentation.Source§fn set_label_at(&self, index: usize, label: Option<&CefString>) -> c_int
fn set_label_at(&self, index: usize, label: Option<&CefString>) -> c_int
See
_cef_menu_model_t::set_label_at for more documentation.Source§fn get_type(&self, command_id: c_int) -> MenuItemType
fn get_type(&self, command_id: c_int) -> MenuItemType
See
_cef_menu_model_t::get_type for more documentation.Source§fn type_at(&self, index: usize) -> MenuItemType
fn type_at(&self, index: usize) -> MenuItemType
See
_cef_menu_model_t::get_type_at for more documentation.Source§fn group_id(&self, command_id: c_int) -> c_int
fn group_id(&self, command_id: c_int) -> c_int
See
_cef_menu_model_t::get_group_id for more documentation.Source§fn group_id_at(&self, index: usize) -> c_int
fn group_id_at(&self, index: usize) -> c_int
See
_cef_menu_model_t::get_group_id_at for more documentation.Source§fn set_group_id(&self, command_id: c_int, group_id: c_int) -> c_int
fn set_group_id(&self, command_id: c_int, group_id: c_int) -> c_int
See
_cef_menu_model_t::set_group_id for more documentation.Source§fn set_group_id_at(&self, index: usize, group_id: c_int) -> c_int
fn set_group_id_at(&self, index: usize, group_id: c_int) -> c_int
See
_cef_menu_model_t::set_group_id_at for more documentation.See
_cef_menu_model_t::get_sub_menu for more documentation.See
_cef_menu_model_t::get_sub_menu_at for more documentation.Source§fn is_visible(&self, command_id: c_int) -> c_int
fn is_visible(&self, command_id: c_int) -> c_int
See
_cef_menu_model_t::is_visible for more documentation.Source§fn is_visible_at(&self, index: usize) -> c_int
fn is_visible_at(&self, index: usize) -> c_int
See
_cef_menu_model_t::is_visible_at for more documentation.Source§fn set_visible(&self, command_id: c_int, visible: c_int) -> c_int
fn set_visible(&self, command_id: c_int, visible: c_int) -> c_int
See
_cef_menu_model_t::set_visible for more documentation.Source§fn set_visible_at(&self, index: usize, visible: c_int) -> c_int
fn set_visible_at(&self, index: usize, visible: c_int) -> c_int
See
_cef_menu_model_t::set_visible_at for more documentation.Source§fn is_enabled(&self, command_id: c_int) -> c_int
fn is_enabled(&self, command_id: c_int) -> c_int
See
_cef_menu_model_t::is_enabled for more documentation.Source§fn is_enabled_at(&self, index: usize) -> c_int
fn is_enabled_at(&self, index: usize) -> c_int
See
_cef_menu_model_t::is_enabled_at for more documentation.Source§fn set_enabled(&self, command_id: c_int, enabled: c_int) -> c_int
fn set_enabled(&self, command_id: c_int, enabled: c_int) -> c_int
See
_cef_menu_model_t::set_enabled for more documentation.Source§fn set_enabled_at(&self, index: usize, enabled: c_int) -> c_int
fn set_enabled_at(&self, index: usize, enabled: c_int) -> c_int
See
_cef_menu_model_t::set_enabled_at for more documentation.Source§fn is_checked(&self, command_id: c_int) -> c_int
fn is_checked(&self, command_id: c_int) -> c_int
See
_cef_menu_model_t::is_checked for more documentation.Source§fn is_checked_at(&self, index: usize) -> c_int
fn is_checked_at(&self, index: usize) -> c_int
See
_cef_menu_model_t::is_checked_at for more documentation.Source§fn set_checked(&self, command_id: c_int, checked: c_int) -> c_int
fn set_checked(&self, command_id: c_int, checked: c_int) -> c_int
See
_cef_menu_model_t::set_checked for more documentation.Source§fn set_checked_at(&self, index: usize, checked: c_int) -> c_int
fn set_checked_at(&self, index: usize, checked: c_int) -> c_int
See
_cef_menu_model_t::set_checked_at for more documentation.Source§fn has_accelerator(&self, command_id: c_int) -> c_int
fn has_accelerator(&self, command_id: c_int) -> c_int
See
_cef_menu_model_t::has_accelerator for more documentation.Source§fn has_accelerator_at(&self, index: usize) -> c_int
fn has_accelerator_at(&self, index: usize) -> c_int
See
_cef_menu_model_t::has_accelerator_at for more documentation.Source§fn set_accelerator(
&self,
command_id: c_int,
key_code: c_int,
shift_pressed: c_int,
ctrl_pressed: c_int,
alt_pressed: c_int,
) -> c_int
fn set_accelerator( &self, command_id: c_int, key_code: c_int, shift_pressed: c_int, ctrl_pressed: c_int, alt_pressed: c_int, ) -> c_int
See
_cef_menu_model_t::set_accelerator for more documentation.Source§fn set_accelerator_at(
&self,
index: usize,
key_code: c_int,
shift_pressed: c_int,
ctrl_pressed: c_int,
alt_pressed: c_int,
) -> c_int
fn set_accelerator_at( &self, index: usize, key_code: c_int, shift_pressed: c_int, ctrl_pressed: c_int, alt_pressed: c_int, ) -> c_int
See
_cef_menu_model_t::set_accelerator_at for more documentation.Source§fn remove_accelerator(&self, command_id: c_int) -> c_int
fn remove_accelerator(&self, command_id: c_int) -> c_int
See
_cef_menu_model_t::remove_accelerator for more documentation.Source§fn remove_accelerator_at(&self, index: usize) -> c_int
fn remove_accelerator_at(&self, index: usize) -> c_int
See
_cef_menu_model_t::remove_accelerator_at for more documentation.Source§fn accelerator(
&self,
command_id: c_int,
key_code: Option<&mut c_int>,
shift_pressed: Option<&mut c_int>,
ctrl_pressed: Option<&mut c_int>,
alt_pressed: Option<&mut c_int>,
) -> c_int
fn accelerator( &self, command_id: c_int, key_code: Option<&mut c_int>, shift_pressed: Option<&mut c_int>, ctrl_pressed: Option<&mut c_int>, alt_pressed: Option<&mut c_int>, ) -> c_int
See
_cef_menu_model_t::get_accelerator for more documentation.Source§fn accelerator_at(
&self,
index: usize,
key_code: Option<&mut c_int>,
shift_pressed: Option<&mut c_int>,
ctrl_pressed: Option<&mut c_int>,
alt_pressed: Option<&mut c_int>,
) -> c_int
fn accelerator_at( &self, index: usize, key_code: Option<&mut c_int>, shift_pressed: Option<&mut c_int>, ctrl_pressed: Option<&mut c_int>, alt_pressed: Option<&mut c_int>, ) -> c_int
See
_cef_menu_model_t::get_accelerator_at for more documentation.Source§fn set_color(
&self,
command_id: c_int,
color_type: MenuColorType,
color: u32,
) -> c_int
fn set_color( &self, command_id: c_int, color_type: MenuColorType, color: u32, ) -> c_int
See
_cef_menu_model_t::set_color for more documentation.Source§fn set_color_at(
&self,
index: c_int,
color_type: MenuColorType,
color: u32,
) -> c_int
fn set_color_at( &self, index: c_int, color_type: MenuColorType, color: u32, ) -> c_int
See
_cef_menu_model_t::set_color_at for more documentation.Source§fn color(
&self,
command_id: c_int,
color_type: MenuColorType,
color: Option<&mut u32>,
) -> c_int
fn color( &self, command_id: c_int, color_type: MenuColorType, color: Option<&mut u32>, ) -> c_int
See
_cef_menu_model_t::get_color for more documentation.Source§fn color_at(
&self,
index: c_int,
color_type: MenuColorType,
color: Option<&mut u32>,
) -> c_int
fn color_at( &self, index: c_int, color_type: MenuColorType, color: Option<&mut u32>, ) -> c_int
See
_cef_menu_model_t::get_color_at for more documentation.Source§fn set_font_list(
&self,
command_id: c_int,
font_list: Option<&CefString>,
) -> c_int
fn set_font_list( &self, command_id: c_int, font_list: Option<&CefString>, ) -> c_int
See
_cef_menu_model_t::set_font_list for more documentation.Source§fn set_font_list_at(&self, index: c_int, font_list: Option<&CefString>) -> c_int
fn set_font_list_at(&self, index: c_int, font_list: Option<&CefString>) -> c_int
See
_cef_menu_model_t::set_font_list_at for more documentation.fn get_raw(&self) -> *mut _cef_menu_model_t
Source§impl Rc for MenuModel
impl Rc for MenuModel
Source§fn as_base(&self) -> &_cef_base_ref_counted_t
fn as_base(&self) -> &_cef_base_ref_counted_t
Get the reference of cef_base_ref_counted_t.
Source§unsafe fn release(&self) -> bool
unsafe fn release(&self) -> bool
Decrease reference count by 1 and release the value if the count meets 0.
Reuturn
True if it is released. Read moreSource§fn has_one_ref(&self) -> bool
fn has_one_ref(&self) -> bool
True if the reference count is exactly 1.Source§fn has_at_least_one_ref(&self) -> bool
fn has_at_least_one_ref(&self) -> bool
True if the reference count is larger than 0.Auto Trait Implementations§
impl Freeze for MenuModel
impl RefUnwindSafe for MenuModel
impl Send for MenuModel
impl Sync for MenuModel
impl Unpin for MenuModel
impl UnwindSafe for MenuModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more