#[repr(C)]pub struct _cef_menu_button_t {
pub base: cef_label_button_t,
pub show_menu: Option<unsafe extern "C" fn(self_: *mut _cef_menu_button_t, menu_model: *mut _cef_menu_model_t, screen_point: *const cef_point_t, anchor_position: cef_menu_anchor_position_t)>,
pub trigger_menu: Option<unsafe extern "C" fn(self_: *mut _cef_menu_button_t)>,
}Expand description
MenuButton is a button with optional text, icon and/or menu marker that shows a menu when clicked with the left mouse button. All size and position values are in density independent pixels (DIP) unless otherwise indicated. Methods must be called on the browser process UI thread unless otherwise indicated.
NOTE: This struct is allocated DLL-side.
Fields§
§base: cef_label_button_tBase structure.
Show a menu with contents |menu_model|. |screen_point| specifies the menu position in screen coordinates. |anchor_position| specifies how the menu will be anchored relative to |screen_point|. This function should be called from cef_menu_button_delegate_t::on_menu_button_pressed().
Show the menu for this button. Results in a call to cef_menu_button_delegate_t::on_menu_button_pressed().
Trait Implementations§
Source§fn clone(&self) -> _cef_menu_button_t
fn clone(&self) -> _cef_menu_button_t
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 moreAuto Trait Implementations§
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