# Record TCefMenuModel

Description
Hierarchy
Fields
Methods
Properties

## Unit

uCEFTypes

## Declaration

`type TCefMenuModel = record`

## Description

Supports creation and modification of menus. See TCefMenuId (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.

NOTE: This struct is allocated DLL-side.

Implemented by ICefMenuModel.

<see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_menu_model_capi.h">CEF source file: /include/capi/cef_menu_model_capi.h (cef_menu_model_t))

## Overview

### Fields

| `base: TCefBaseRefCounted;`
| `is_sub_menu: function(self: PCefMenuModel): Integer; stdcall;`
| `clear: function(self: PCefMenuModel): Integer; stdcall;`
| `get_count: function(self: PCefMenuModel): NativeUInt; stdcall;`
| `add_separator: function(self: PCefMenuModel): Integer; stdcall;`
| `add_item: function(self: PCefMenuModel; command_id: Integer; const text: PCefString): Integer; stdcall;`
| `add_check_item: function(self: PCefMenuModel; command_id: Integer; const text: PCefString): Integer; stdcall;`
| `add_radio_item: function(self: PCefMenuModel; command_id: Integer; const text: PCefString; group_id: Integer): Integer; stdcall;`
| `add_sub_menu: function(self: PCefMenuModel; command_id: Integer; const text: PCefString): PCefMenuModel; stdcall;`
| `insert_separator_at: function(self: PCefMenuModel; index: NativeUInt): Integer; stdcall;`
| `insert_item_at: function(self: PCefMenuModel; index: NativeUInt; command_id: Integer; const text: PCefString): Integer; stdcall;`
| `insert_check_item_at: function(self: PCefMenuModel; index: NativeUInt; command_id: Integer; const text: PCefString): Integer; stdcall;`
| `insert_radio_item_at: function(self: PCefMenuModel; index: NativeUInt; command_id: Integer; const text: PCefString; group_id: Integer): Integer; stdcall;`
| `insert_sub_menu_at: function(self: PCefMenuModel; index: NativeUInt; command_id: Integer; const text: PCefString): PCefMenuModel; stdcall;`
| `remove: function(self: PCefMenuModel; command_id: Integer): Integer; stdcall;`
| `remove_at: function(self: PCefMenuModel; index: NativeUInt): Integer; stdcall;`
| `get_index_of: function(self: PCefMenuModel; command_id: Integer): Integer; stdcall;`
| `get_command_id_at: function(self: PCefMenuModel; index: NativeUInt): Integer; stdcall;`
| `set_command_id_at: function(self: PCefMenuModel; index: NativeUInt; command_id: Integer): Integer; stdcall;`
| `get_label: function(self: PCefMenuModel; command_id: Integer): PCefStringUserFree; stdcall;`
| `get_label_at: function(self: PCefMenuModel; index: NativeUInt): PCefStringUserFree; stdcall;`
| `set_label: function(self: PCefMenuModel; command_id: Integer; const text: PCefString): Integer; stdcall;`
| `set_label_at: function(self: PCefMenuModel; index: NativeUInt; const text: PCefString): Integer; stdcall;`
| `get_type: function(self: PCefMenuModel; command_id: Integer): TCefMenuItemType; stdcall;`
| `get_type_at: function(self: PCefMenuModel; index: NativeUInt): TCefMenuItemType; stdcall;`
| `get_group_id: function(self: PCefMenuModel; command_id: Integer): Integer; stdcall;`
| `get_group_id_at: function(self: PCefMenuModel; index: NativeUInt): Integer; stdcall;`
| `set_group_id: function(self: PCefMenuModel; command_id, group_id: Integer): Integer; stdcall;`
| `set_group_id_at: function(self: PCefMenuModel; index: NativeUInt; group_id: Integer): Integer; stdcall;`
| `get_sub_menu: function(self: PCefMenuModel; command_id: Integer): PCefMenuModel; stdcall;`
| `get_sub_menu_at: function(self: PCefMenuModel; index: NativeUInt): PCefMenuModel; stdcall;`
| `is_visible: function(self: PCefMenuModel; command_id: Integer): Integer; stdcall;`
| `is_visible_at: function(self: PCefMenuModel; index: NativeUInt): Integer; stdcall;`
| `set_visible: function(self: PCefMenuModel; command_id, visible: Integer): Integer; stdcall;`
| `set_visible_at: function(self: PCefMenuModel; index: NativeUInt; visible: Integer): Integer; stdcall;`
| `is_enabled: function(self: PCefMenuModel; command_id: Integer): Integer; stdcall;`
| `is_enabled_at: function(self: PCefMenuModel; index: NativeUInt): Integer; stdcall;`
| `set_enabled: function(self: PCefMenuModel; command_id, enabled: Integer): Integer; stdcall;`
| `set_enabled_at: function(self: PCefMenuModel; index: NativeUInt; enabled: Integer): Integer; stdcall;`
| `is_checked: function(self: PCefMenuModel; command_id: Integer): Integer; stdcall;`
| `is_checked_at: function(self: PCefMenuModel; index: NativeUInt): Integer; stdcall;`
| `set_checked: function(self: PCefMenuModel; command_id, checked: Integer): Integer; stdcall;`
| `set_checked_at: function(self: PCefMenuModel; index: NativeUInt; checked: Integer): Integer; stdcall;`
| `has_accelerator: function(self: PCefMenuModel; command_id: Integer): Integer; stdcall;`
| `has_accelerator_at: function(self: PCefMenuModel; index: NativeUInt): Integer; stdcall;`
| `set_accelerator: function(self: PCefMenuModel; command_id, key_code, shift_pressed, ctrl_pressed, alt_pressed: Integer): Integer; stdcall;`
| `set_accelerator_at: function(self: PCefMenuModel; index: NativeUInt; key_code, shift_pressed, ctrl_pressed, alt_pressed: Integer): Integer; stdcall;`
| `remove_accelerator: function(self: PCefMenuModel; command_id: Integer): Integer; stdcall;`
| `remove_accelerator_at: function(self: PCefMenuModel; index: NativeUInt): Integer; stdcall;`
| `get_accelerator: function(self: PCefMenuModel; command_id: Integer; key_code, shift_pressed, ctrl_pressed, alt_pressed: PInteger): Integer; stdcall;`
| `get_accelerator_at: function(self: PCefMenuModel; index: NativeUInt; key_code, shift_pressed, ctrl_pressed, alt_pressed: PInteger): Integer; stdcall;`
| `set_color: function(self: PCefMenuModel; command_id: Integer; color_type: TCefMenuColorType; color: TCefColor): Integer; stdcall;`
| `set_color_at: function(self: PCefMenuModel; index: Integer; color_type: TCefMenuColorType; color: TCefColor): Integer; stdcall;`
| `get_color: function(self: PCefMenuModel; command_id: Integer; color_type: TCefMenuColorType; color: PCefColor): Integer; stdcall;`
| `get_color_at: function(self: PCefMenuModel; index: Integer; color_type: TCefMenuColorType; color: PCefColor): Integer; stdcall;`
| `set_font_list: function(self: PCefMenuModel; command_id: Integer; const font_list: PCefString): Integer; stdcall;`
| `set_font_list_at: function(self: PCefMenuModel; index: Integer; const font_list: PCefString): Integer; stdcall;`

## Description

### Fields

| `base: TCefBaseRefCounted;`
This item has no description.

| `is_sub_menu: function(self: PCefMenuModel): Integer; stdcall;`
This item has no description.

| `clear: function(self: PCefMenuModel): Integer; stdcall;`
This item has no description.

| `get_count: function(self: PCefMenuModel): NativeUInt; stdcall;`
This item has no description.

| `add_separator: function(self: PCefMenuModel): Integer; stdcall;`
This item has no description.

| `add_item: function(self: PCefMenuModel; command_id: Integer; const text: PCefString): Integer; stdcall;`
This item has no description.

| `add_check_item: function(self: PCefMenuModel; command_id: Integer; const text: PCefString): Integer; stdcall;`
This item has no description.

| `add_radio_item: function(self: PCefMenuModel; command_id: Integer; const text: PCefString; group_id: Integer): Integer; stdcall;`
This item has no description.

| `add_sub_menu: function(self: PCefMenuModel; command_id: Integer; const text: PCefString): PCefMenuModel; stdcall;`
This item has no description.

| `insert_separator_at: function(self: PCefMenuModel; index: NativeUInt): Integer; stdcall;`
This item has no description.

| `insert_item_at: function(self: PCefMenuModel; index: NativeUInt; command_id: Integer; const text: PCefString): Integer; stdcall;`
This item has no description.

| `insert_check_item_at: function(self: PCefMenuModel; index: NativeUInt; command_id: Integer; const text: PCefString): Integer; stdcall;`
This item has no description.

| `insert_radio_item_at: function(self: PCefMenuModel; index: NativeUInt; command_id: Integer; const text: PCefString; group_id: Integer): Integer; stdcall;`
This item has no description.

| `insert_sub_menu_at: function(self: PCefMenuModel; index: NativeUInt; command_id: Integer; const text: PCefString): PCefMenuModel; stdcall;`
This item has no description.

| `remove: function(self: PCefMenuModel; command_id: Integer): Integer; stdcall;`
This item has no description.

| `remove_at: function(self: PCefMenuModel; index: NativeUInt): Integer; stdcall;`
This item has no description.

| `get_index_of: function(self: PCefMenuModel; command_id: Integer): Integer; stdcall;`
This item has no description.

| `get_command_id_at: function(self: PCefMenuModel; index: NativeUInt): Integer; stdcall;`
This item has no description.

| `set_command_id_at: function(self: PCefMenuModel; index: NativeUInt; command_id: Integer): Integer; stdcall;`
This item has no description.

| `get_label: function(self: PCefMenuModel; command_id: Integer): PCefStringUserFree; stdcall;`
This item has no description.

| `get_label_at: function(self: PCefMenuModel; index: NativeUInt): PCefStringUserFree; stdcall;`
This item has no description.

| `set_label: function(self: PCefMenuModel; command_id: Integer; const text: PCefString): Integer; stdcall;`
This item has no description.

| `set_label_at: function(self: PCefMenuModel; index: NativeUInt; const text: PCefString): Integer; stdcall;`
This item has no description.

| `get_type: function(self: PCefMenuModel; command_id: Integer): TCefMenuItemType; stdcall;`
This item has no description.

| `get_type_at: function(self: PCefMenuModel; index: NativeUInt): TCefMenuItemType; stdcall;`
This item has no description.

| `get_group_id: function(self: PCefMenuModel; command_id: Integer): Integer; stdcall;`
This item has no description.

| `get_group_id_at: function(self: PCefMenuModel; index: NativeUInt): Integer; stdcall;`
This item has no description.

| `set_group_id: function(self: PCefMenuModel; command_id, group_id: Integer): Integer; stdcall;`
This item has no description.

| `set_group_id_at: function(self: PCefMenuModel; index: NativeUInt; group_id: Integer): Integer; stdcall;`
This item has no description.

| `get_sub_menu: function(self: PCefMenuModel; command_id: Integer): PCefMenuModel; stdcall;`
This item has no description.

| `get_sub_menu_at: function(self: PCefMenuModel; index: NativeUInt): PCefMenuModel; stdcall;`
This item has no description.

| `is_visible: function(self: PCefMenuModel; command_id: Integer): Integer; stdcall;`
This item has no description.

| `is_visible_at: function(self: PCefMenuModel; index: NativeUInt): Integer; stdcall;`
This item has no description.

| `set_visible: function(self: PCefMenuModel; command_id, visible: Integer): Integer; stdcall;`
This item has no description.

| `set_visible_at: function(self: PCefMenuModel; index: NativeUInt; visible: Integer): Integer; stdcall;`
This item has no description.

| `is_enabled: function(self: PCefMenuModel; command_id: Integer): Integer; stdcall;`
This item has no description.

| `is_enabled_at: function(self: PCefMenuModel; index: NativeUInt): Integer; stdcall;`
This item has no description.

| `set_enabled: function(self: PCefMenuModel; command_id, enabled: Integer): Integer; stdcall;`
This item has no description.

| `set_enabled_at: function(self: PCefMenuModel; index: NativeUInt; enabled: Integer): Integer; stdcall;`
This item has no description.

| `is_checked: function(self: PCefMenuModel; command_id: Integer): Integer; stdcall;`
This item has no description.

| `is_checked_at: function(self: PCefMenuModel; index: NativeUInt): Integer; stdcall;`
This item has no description.

| `set_checked: function(self: PCefMenuModel; command_id, checked: Integer): Integer; stdcall;`
This item has no description.

| `set_checked_at: function(self: PCefMenuModel; index: NativeUInt; checked: Integer): Integer; stdcall;`
This item has no description.

| `has_accelerator: function(self: PCefMenuModel; command_id: Integer): Integer; stdcall;`
This item has no description.

| `has_accelerator_at: function(self: PCefMenuModel; index: NativeUInt): Integer; stdcall;`
This item has no description.

| `set_accelerator: function(self: PCefMenuModel; command_id, key_code, shift_pressed, ctrl_pressed, alt_pressed: Integer): Integer; stdcall;`
This item has no description.

| `set_accelerator_at: function(self: PCefMenuModel; index: NativeUInt; key_code, shift_pressed, ctrl_pressed, alt_pressed: Integer): Integer; stdcall;`
This item has no description.

| `remove_accelerator: function(self: PCefMenuModel; command_id: Integer): Integer; stdcall;`
This item has no description.

| `remove_accelerator_at: function(self: PCefMenuModel; index: NativeUInt): Integer; stdcall;`
This item has no description.

| `get_accelerator: function(self: PCefMenuModel; command_id: Integer; key_code, shift_pressed, ctrl_pressed, alt_pressed: PInteger): Integer; stdcall;`
This item has no description.

| `get_accelerator_at: function(self: PCefMenuModel; index: NativeUInt; key_code, shift_pressed, ctrl_pressed, alt_pressed: PInteger): Integer; stdcall;`
This item has no description.

| `set_color: function(self: PCefMenuModel; command_id: Integer; color_type: TCefMenuColorType; color: TCefColor): Integer; stdcall;`
This item has no description.

| `set_color_at: function(self: PCefMenuModel; index: Integer; color_type: TCefMenuColorType; color: TCefColor): Integer; stdcall;`
This item has no description.

| `get_color: function(self: PCefMenuModel; command_id: Integer; color_type: TCefMenuColorType; color: PCefColor): Integer; stdcall;`
This item has no description.

| `get_color_at: function(self: PCefMenuModel; index: Integer; color_type: TCefMenuColorType; color: PCefColor): Integer; stdcall;`
This item has no description.

| `set_font_list: function(self: PCefMenuModel; command_id: Integer; const font_list: PCefString): Integer; stdcall;`
This item has no description.

| `set_font_list_at: function(self: PCefMenuModel; index: Integer; const font_list: PCefString): Integer; stdcall;`
This item has no description.

Generated by PasDoc 0.16.0-snapshot.