pub type cef_menu_button_t = _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.
Aliased Type§
#[repr(C)]pub struct cef_menu_button_t {
pub base: _cef_label_button_t,
pub show_menu: Option<unsafe extern "C" fn(*mut _cef_menu_button_t, *mut _cef_menu_model_t, *const _cef_point_t, cef_menu_anchor_position_t)>,
pub trigger_menu: Option<unsafe extern "C" fn(*mut _cef_menu_button_t)>,
}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().