Trait ImplMenuModel

Source
pub trait ImplMenuModel:
    Clone
    + Sized
    + Rc {
Show 57 methods // Required methods fn is_sub_menu(&self) -> c_int; fn clear(&self) -> c_int; fn count(&self) -> usize; fn add_separator(&self) -> c_int; fn add_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; fn add_radio_item( &self, command_id: c_int, label: Option<&CefString>, group_id: c_int, ) -> c_int; fn add_sub_menu( &self, command_id: c_int, label: Option<&CefString>, ) -> Option<MenuModel>; fn insert_separator_at(&self, index: usize) -> c_int; fn insert_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; fn insert_radio_item_at( &self, index: usize, command_id: c_int, label: Option<&CefString>, group_id: c_int, ) -> c_int; fn insert_sub_menu_at( &self, index: usize, command_id: c_int, label: Option<&CefString>, ) -> Option<MenuModel>; fn remove(&self, command_id: c_int) -> c_int; fn remove_at(&self, index: usize) -> c_int; fn index_of(&self, command_id: c_int) -> c_int; fn command_id_at(&self, index: usize) -> c_int; fn set_command_id_at(&self, index: usize, command_id: c_int) -> c_int; fn label(&self, command_id: c_int) -> CefStringUserfree; fn label_at(&self, index: usize) -> CefStringUserfree; fn set_label(&self, command_id: c_int, label: Option<&CefString>) -> c_int; fn set_label_at(&self, index: usize, label: Option<&CefString>) -> c_int; fn get_type(&self, command_id: c_int) -> MenuItemType; fn type_at(&self, index: usize) -> MenuItemType; fn group_id(&self, command_id: c_int) -> c_int; fn group_id_at(&self, index: usize) -> c_int; fn set_group_id(&self, command_id: c_int, group_id: c_int) -> c_int; fn set_group_id_at(&self, index: usize, group_id: c_int) -> c_int; fn sub_menu(&self, command_id: c_int) -> Option<MenuModel>; fn sub_menu_at(&self, index: usize) -> Option<MenuModel>; fn is_visible(&self, command_id: c_int) -> c_int; fn is_visible_at(&self, index: usize) -> c_int; fn set_visible(&self, command_id: c_int, visible: c_int) -> c_int; fn set_visible_at(&self, index: usize, visible: c_int) -> c_int; fn is_enabled(&self, command_id: c_int) -> c_int; fn is_enabled_at(&self, index: usize) -> c_int; fn set_enabled(&self, command_id: c_int, enabled: c_int) -> c_int; fn set_enabled_at(&self, index: usize, enabled: c_int) -> c_int; fn is_checked(&self, command_id: c_int) -> c_int; fn is_checked_at(&self, index: usize) -> c_int; fn set_checked(&self, command_id: c_int, checked: c_int) -> c_int; fn set_checked_at(&self, index: usize, checked: c_int) -> c_int; fn has_accelerator(&self, command_id: c_int) -> c_int; fn has_accelerator_at(&self, index: usize) -> 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; 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 remove_accelerator(&self, command_id: c_int) -> c_int; fn remove_accelerator_at(&self, index: usize) -> 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; 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 set_color( &self, command_id: c_int, color_type: MenuColorType, color: u32, ) -> c_int; fn set_color_at( &self, index: c_int, color_type: MenuColorType, color: u32, ) -> c_int; fn color( &self, command_id: 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; fn set_font_list( &self, command_id: c_int, font_list: Option<&CefString>, ) -> c_int; fn set_font_list_at( &self, index: c_int, font_list: Option<&CefString>, ) -> c_int; fn get_raw(&self) -> *mut _cef_menu_model_t;
}

Required Methods§

Source

fn is_sub_menu(&self) -> c_int

See _cef_menu_model_t::is_sub_menu for more documentation.

Source

fn clear(&self) -> c_int

See _cef_menu_model_t::clear for more documentation.

Source

fn count(&self) -> usize

See _cef_menu_model_t::get_count for more documentation.

Source

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

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

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

See _cef_menu_model_t::add_radio_item for more documentation.

Source

fn add_sub_menu( &self, command_id: c_int, label: Option<&CefString>, ) -> Option<MenuModel>

See _cef_menu_model_t::add_sub_menu for more documentation.

Source

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

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

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

See _cef_menu_model_t::insert_radio_item_at for more documentation.

Source

fn insert_sub_menu_at( &self, index: usize, command_id: c_int, label: Option<&CefString>, ) -> Option<MenuModel>

See _cef_menu_model_t::insert_sub_menu_at for more documentation.

Source

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

See _cef_menu_model_t::remove_at for more documentation.

Source

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

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

See _cef_menu_model_t::set_command_id_at for more documentation.

Source

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

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

See _cef_menu_model_t::set_label for more documentation.

Source

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

See _cef_menu_model_t::get_type for more documentation.

Source

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

See _cef_menu_model_t::get_group_id for more documentation.

Source

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

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

See _cef_menu_model_t::set_group_id_at for more documentation.

Source

fn sub_menu(&self, command_id: c_int) -> Option<MenuModel>

See _cef_menu_model_t::get_sub_menu for more documentation.

Source

fn sub_menu_at(&self, index: usize) -> Option<MenuModel>

See _cef_menu_model_t::get_sub_menu_at for more documentation.

Source

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

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

See _cef_menu_model_t::set_visible for more documentation.

Source

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

See _cef_menu_model_t::is_enabled for more documentation.

Source

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

See _cef_menu_model_t::set_enabled for more documentation.

Source

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

See _cef_menu_model_t::is_checked for more documentation.

Source

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

See _cef_menu_model_t::set_checked for more documentation.

Source

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

See _cef_menu_model_t::has_accelerator for more documentation.

Source

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

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

See _cef_menu_model_t::set_accelerator_at for more documentation.

Source

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

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

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

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

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

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

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

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

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

See _cef_menu_model_t::set_font_list_at for more documentation.

Source

fn get_raw(&self) -> *mut _cef_menu_model_t

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§