The OpenD Programming Language

cef_menu_model_delegate_t

Implement this structure to handle menu model events. The functions of this structure will be called on the browser process UI thread unless otherwise indicated.

Members

Variables

base
cef_base_ref_counted_t base;

Base structure.

format_label
int function(cef_menu_model_delegate_t* self, cef_menu_model_t* menu_model, cef_string_t* label) nothrow format_label;

Optionally modify a menu item label. Return true (1) if |label| was modified.

menu_closed
void function(cef_menu_model_delegate_t* self, cef_menu_model_t* menu_model) nothrow menu_closed;

The menu has closed.

menu_will_show
void function(cef_menu_model_delegate_t* self, cef_menu_model_t* menu_model) nothrow menu_will_show;

The menu is about to show.

unhandled_close_submenu
void function(cef_menu_model_delegate_t* self, cef_menu_model_t* menu_model, int is_rtl) nothrow unhandled_close_submenu;

Called on unhandled close submenu keyboard commands. |is_rtl| will be true (1) if the menu is displaying a right-to-left language.

unhandled_open_submenu
void function(cef_menu_model_delegate_t* self, cef_menu_model_t* menu_model, int is_rtl) nothrow unhandled_open_submenu;

Called on unhandled open submenu keyboard commands. |is_rtl| will be true (1) if the menu is displaying a right-to-left language.

Meta