Add a check item to the menu. Returns true (1) on success.
Add an item to the menu. Returns true (1) on success.
Add a radio item to the menu. Only a single item with the specified |group_id| can be checked at a time. Returns true (1) on success.
Add a sub-menu to the menu. The new sub-menu is returned.
Base structure.
Retrieves the keyboard accelerator for the specified |command_id|. Returns true (1) on success.
Retrieves the keyboard accelerator for the specified |index|. Returns true (1) on success.
Returns in |color| the color that was explicitly set for |command_id| and |color_type|. If a color was not set then 0 will be returned in |color|. Returns true (1) on success.
Returns in |color| the color that was explicitly set for |command_id| and |color_type|. Specify an |index| value of -1 to return the default color in |color|. If a color was not set then 0 will be returned in |color|. Returns true (1) on success.
Returns the command id at the specified |index| or -1 if not found due to invalid range or the index being a separator.
Returns the group id for the specified |command_id| or -1 if invalid.
Returns the group id at the specified |index| or -1 if invalid.
Returns the index associated with the specified |command_id| or -1 if not found due to the command id not existing in the menu.
Returns the label for the specified |command_id| or NULL if not found.
Returns the label at the specified |index| or NULL if not found due to invalid range or the index being a separator.
Returns the submenu for the specified |command_id| or NULL if invalid.
Returns the submenu at the specified |index| or NULL if invalid.
Returns the item type for the specified |command_id|.
Returns the item type at the specified |index|.
Returns true (1) if the specified |command_id| has a keyboard accelerator assigned.
Returns true (1) if the specified |index| has a keyboard accelerator assigned.
Insert a check item in the menu at the specified |index|. Returns true (1) on success.
Insert an item in the menu at the specified |index|. Returns true (1) on success.
Insert a radio item in the menu at the specified |index|. Only a single item with the specified |group_id| can be checked at a time. Returns true (1) on success.
Insert a separator in the menu at the specified |index|. Returns true (1) on success.
Insert a sub-menu in the menu at the specified |index|. The new sub-menu is returned.
Returns true (1) if the specified |command_id| is checked. Only applies to check and radio items.
Returns true (1) if the specified |index| is checked. Only applies to check and radio items.
Returns true (1) if the specified |command_id| is enabled.
Returns true (1) if the specified |index| is enabled.
Returns true (1) if the specified |command_id| is visible.
Returns true (1) if the specified |index| is visible.
Removes the item with the specified |command_id|. Returns true (1) on success.
Remove the keyboard accelerator for the specified |command_id|. Returns true (1) on success.
Remove the keyboard accelerator at the specified |index|. Returns true (1) on success.
Removes the item at the specified |index|. Returns true (1) on success.
Set the keyboard accelerator for the specified |command_id|. |key_code| can be any virtual key or character value. Returns true (1) on success.
Set the keyboard accelerator at the specified |index|. |key_code| can be any virtual key or character value. Returns true (1) on success.
Check the specified |command_id|. Only applies to check and radio items. Returns true (1) on success.
Check the specified |index|. Only applies to check and radio items. Returns true (1) on success.
Set the explicit color for |command_id| and |color_type| to |color|. Specify a |color| value of 0 to remove the explicit color. If no explicit color or default color is set for |color_type| then the system color will be used. Returns true (1) on success.
Set the explicit color for |command_id| and |index| to |color|. Specify a |color| value of 0 to remove the explicit color. Specify an |index| value of -1 to set the default color for items that do not have an explicit color set. If no explicit color or default color is set for |color_type| then the system color will be used. Returns true (1) on success.
Sets the command id at the specified |index|. Returns true (1) on success.
Change the enabled status of the specified |command_id|. Returns true (1) on success.
Change the enabled status at the specified |index|. Returns true (1) on success.
Sets the font list for the specified |command_id|. If |font_list| is NULL the system font will be used. Returns true (1) on success. The format is "<FONT_FAMILY_LIST>,STYLES <SIZE>", where: - FONT_FAMILY_LIST is a comma-separated list of font family names, - STYLES is an optional space-separated list of style names (case- sensitive "Bold" and "Italic" are supported), and - SIZE is an integer font size in pixels with the suffix "px".
Sets the font list for the specified |index|. Specify an |index| value of - 1 to set the default font. If |font_list| is NULL the system font will - FONT_FAMILY_LIST is a comma-separated list of font family names, - STYLES is an optional space-separated list of style names (case- sensitive "Bold" and "Italic" are supported), and - SIZE is an integer font size in pixels with the suffix "px".
Sets the group id for the specified |command_id|. Returns true (1) on success.
Sets the group id at the specified |index|. Returns true (1) on success.
Sets the label for the specified |command_id|. Returns true (1) on success.
Set the label at the specified |index|. Returns true (1) on success.
Change the visibility of the specified |command_id|. Returns true (1) on success.
Change the visibility at the specified |index|. Returns true (1) on success.
Supports creation and modification of menus. See cef_menu_id_t for the command ids that have default implementations. All user-defined command ids should be between MENU_ID_USER_FIRST and MENU_ID_USER_LAST. The functions of this structure can only be accessed on the browser process the UI thread.