cef_menu_button_create

Function cef_menu_button_create 

Source
pub unsafe extern "C" fn cef_menu_button_create(
    delegate: *mut _cef_menu_button_delegate_t,
    text: *const cef_string_t,
) -> *mut cef_menu_button_t
Expand description

Create a new MenuButton. A |delegate| must be provided to call show_menu() when the button is clicked. |text| will be shown on the MenuButton and used as the default accessible name. If |with_frame| is true (1) the button will have a visible frame at all times, center alignment, additional padding and a default minimum size of 70x33 DIP. If |with_frame| is false (0) the button will only have a visible frame on hover/press, left alignment, less padding and no default minimum size.