pub struct MenuModelDelegate(/* private fields */);Expand description
See _cef_menu_model_delegate_t for more documentation.
Implementations§
Source§impl MenuModelDelegate
impl MenuModelDelegate
pub fn new<T>(interface: T) -> Selfwhere
T: WrapMenuModelDelegate,
Trait Implementations§
Source§impl Clone for MenuModelDelegate
impl Clone for MenuModelDelegate
Source§fn clone(&self) -> MenuModelDelegate
fn clone(&self) -> MenuModelDelegate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read morefn into_raw(self) -> *mut _cef_menu_model_delegate_t
fn into_raw(self) -> *mut _cef_menu_model_delegate_t
fn wrap_result(self) -> MenuModelDelegate
Source§fn from(value: MenuModelDelegate) -> Self
fn from(value: MenuModelDelegate) -> Self
Converts to this type from the input type.
Source§impl ImplMenuModelDelegate for MenuModelDelegate
impl ImplMenuModelDelegate for MenuModelDelegate
Source§fn execute_command(
&self,
menu_model: Option<&mut MenuModel>,
command_id: c_int,
event_flags: EventFlags,
)
fn execute_command( &self, menu_model: Option<&mut MenuModel>, command_id: c_int, event_flags: EventFlags, )
See
_cef_menu_model_delegate_t::execute_command for more documentation.See
_cef_menu_model_delegate_t::mouse_outside_menu for more documentation.See
_cef_menu_model_delegate_t::unhandled_open_submenu for more documentation.See
_cef_menu_model_delegate_t::unhandled_close_submenu for more documentation.See
_cef_menu_model_delegate_t::menu_will_show for more documentation.See
_cef_menu_model_delegate_t::menu_closed for more documentation.Source§fn format_label(
&self,
menu_model: Option<&mut MenuModel>,
label: Option<&mut CefString>,
) -> c_int
fn format_label( &self, menu_model: Option<&mut MenuModel>, label: Option<&mut CefString>, ) -> c_int
See
_cef_menu_model_delegate_t::format_label for more documentation.fn get_raw(&self) -> *mut _cef_menu_model_delegate_t
fn init_methods(object: &mut _cef_menu_model_delegate_t)
Source§impl Rc for MenuModelDelegate
impl Rc for MenuModelDelegate
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 MenuModelDelegate
impl RefUnwindSafe for MenuModelDelegate
impl Send for MenuModelDelegate
impl Sync for MenuModelDelegate
impl Unpin for MenuModelDelegate
impl UnwindSafe for MenuModelDelegate
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