# Class TCEFWindowComponent

Description
Hierarchy
Fields
Methods
Properties

## Unit

uCEFWindowComponent

## Declaration

`type TCEFWindowComponent = class(TCEFPanelComponent, ICefWindowDelegateEvents)`

## Description

This item has no description.

## Hierarchy

- TObject
- TPersistent
- TComponent
- TCEFViewComponent
- TCEFPanelComponent
- TCEFWindowComponent

## Overview

### Fields

Protected | `FWindow: ICefWindow;`
Protected | `FWindowDlg: ICefWindowDelegate;`
Protected | `FOnWindowCreated: TOnWindowCreatedEvent;`
Protected | `FOnWindowClosing: TOnWindowClosingEvent;`
Protected | `FOnWindowDestroyed: TOnWindowDestroyedEvent;`
Protected | `FOnWindowActivationChanged: TOnWindowActivationChangedEvent;`
Protected | `FOnWindowBoundsChanged: TOnWindowBoundsChangedEvent;`
Protected | `FOnWindowFullscreenTransition: TOnWindowFullscreenTransitionEvent;`
Protected | `FOnGetParentWindow: TOnGetParentWindowEvent;`
Protected | `FOnIsWindowModalDialog: TOnIsWindowModalDialogEvent;`
Protected | `FOnGetInitialBounds: TOnGetInitialBoundsEvent;`
Protected | `FOnGetInitialShowState: TOnGetInitialShowStateEvent;`
Protected | `FOnIsFrameless: TOnIsFramelessEvent;`
Protected | `FOnWithStandardWindowButtons: TOnWithStandardWindowButtonsEvent;`
Protected | `FOnGetTitlebarHeight: TOnGetTitlebarHeightEvent;`
Protected | `FOnAcceptsFirstMouse: TOnAcceptsFirstMouseEvent;`
Protected | `FOnCanResize: TOnCanResizeEvent;`
Protected | `FOnCanMaximize: TOnCanMaximizeEvent;`
Protected | `FOnCanMinimize: TOnCanMinimizeEvent;`
Protected | `FOnCanClose: TOnCanCloseEvent;`
Protected | `FOnAccelerator: TOnAcceleratorEvent;`
Protected | `FOnKeyEvent: TOnWindowKeyEventEvent;`
Protected | `FOnThemeColorsChanged: TOnThemeColorsChangedEvent;`
Protected | `FOnGetWindowRuntimeStyle: TOnGetWindowRuntimeStyleEvent;`
Protected | `FOnGetLinuxWindowProperties: TOnGetLinuxWindowPropertiesEvent;`

### Methods

Protected | `procedure DestroyView; override;`
Protected | `procedure Initialize; override;`
Protected | `function GetInitialized: boolean; override;`
Protected | `function GetAsView: ICefView; override;`
Protected | `function GetAsPanel: ICefPanel; override;`
Protected | `function GetAsWindow: ICefWindow; override;`
Protected | `function GetIsClosed: boolean;`
Protected | `function GetIsActive: boolean;`
Protected | `function GetIsAlwaysOnTop: boolean;`
Protected | `function GetIsMaximized: boolean;`
Protected | `function GetIsMinimized: boolean;`
Protected | `function GetIsFullscreen: boolean;`
Protected | `function GetFocusedView: ICefView;`
Protected | `function GetTitle: ustring;`
Protected | `function GetWindowIcon: ICefImage;`
Protected | `function GetWindowAppIcon: ICefImage;`
Protected | `function GetDisplay: ICefDisplay;`
Protected | `function GetClientAreaBoundsInScreen: TCefRect;`
Protected | `function GetWindowHandle: TCefWindowHandle;`
Protected | `function GetRuntimeStyle: TCefRuntimeStyle;`
Protected | `procedure SetAlwaysOnTop(on_top: boolean);`
Protected | `procedure SetFullscreen(fullscreen: boolean);`
Protected | `procedure SetTitle(const title_: ustring);`
Protected | `procedure SetWindowIcon(const image: ICefImage);`
Protected | `procedure SetWindowAppIcon(const image: ICefImage);`
Protected | `procedure doOnWindowCreated(const window_: ICefWindow);`
Protected | `procedure doOnWindowClosing(const window_: ICefWindow);`
Protected | `procedure doOnWindowDestroyed(const window_: ICefWindow);`
Protected | `procedure doOnWindowActivationChanged(const window_: ICefWindow; active: boolean);`
Protected | `procedure doOnWindowBoundsChanged(const window_: ICefWindow; const new_bounds: TCefRect);`
Protected | `procedure doOnWindowFullscreenTransition(const window_: ICefWindow; is_completed: boolean);`
Protected | `procedure doOnGetParentWindow(const window_: ICefWindow; var is_menu, can_activate_menu: boolean; var aResult : ICefWindow);`
Protected | `procedure doOnIsWindowModalDialog(const window_: ICefWindow; var aResult : boolean);`
Protected | `procedure doOnGetInitialBounds(const window_: ICefWindow; var aResult : TCefRect);`
Protected | `procedure doOnGetInitialShowState(const window_: ICefWindow; var aResult : TCefShowState);`
Protected | `procedure doOnIsFrameless(const window_: ICefWindow; var aResult : boolean);`
Protected | `procedure doOnWithStandardWindowButtons(const window_: ICefWindow; var aResult : boolean);`
Protected | `procedure doOnGetTitlebarHeight(const window_: ICefWindow; var titlebar_height: Single; var aResult : boolean);`
Protected | `procedure doOnAcceptsFirstMouse(const window_: ICefWindow; var aResult: TCefState);`
Protected | `procedure doOnCanResize(const window_: ICefWindow; var aResult : boolean);`
Protected | `procedure doOnCanMaximize(const window_: ICefWindow; var aResult : boolean);`
Protected | `procedure doOnCanMinimize(const window_: ICefWindow; var aResult : boolean);`
Protected | `procedure doOnCanClose(const window_: ICefWindow; var aResult : boolean);`
Protected | `procedure doOnAccelerator(const window_: ICefWindow; command_id: Integer; var aResult : boolean);`
Protected | `procedure doOnKeyEvent(const window_: ICefWindow; const event: TCefKeyEvent; var aResult : boolean);`
Protected | `procedure doOnThemeColorsChanged(const window_: ICefWindow; chrome_theme: Integer);`
Protected | `procedure doOnGetWindowRuntimeStyle(var aResult: TCefRuntimeStyle);`
Protected | `procedure doOnGetLinuxWindowProperties(const window_: ICefWindow; var properties: TLinuxWindowProperties; var aResult: boolean);`
Protected | `procedure doCreateCustomView; override;`
Public | `procedure CreateTopLevelWindow;`
Public | `procedure Show;`
Public | `procedure ShowAsBrowserModalDialog(const browser_view: ICefBrowserView);`
Public | `procedure Hide;`
Public | `procedure CenterWindow(const size_: TCefSize);`
Public | `procedure Close;`
Public | `procedure Activate;`
Public | `procedure Deactivate;`
Public | `procedure BringToTop;`
Public | `procedure Maximize;`
Public | `procedure Minimize;`
Public | `procedure Restore;`
Public | `function AddOverlayView(const view: ICefView; docking_mode: TCefDockingMode; can_activate: boolean): ICefOverlayController;`
Public | `procedure ShowMenu(const menu_model: ICefMenuModel; const screen_point: TCefPoint; anchor_position : TCefMenuAnchorPosition);`
Public | `procedure CancelMenu;`
Public | `procedure SetDraggableRegions(regionsCount: NativeUInt; const regions: PCefDraggableRegionArray);`
Public | `procedure SendKeyPress(key_code: Integer; event_flags: cardinal);`
Public | `procedure SendMouseMove(screen_x, screen_y: Integer);`
Public | `procedure SendMouseEvents(button: TCefMouseButtonType; mouse_down, mouse_up: boolean);`
Public | `procedure SetAccelerator(command_id, key_code : Integer; shift_pressed, ctrl_pressed, alt_pressed, high_priority: boolean);`
Public | `procedure RemoveAccelerator(command_id: Integer);`
Public | `procedure RemoveAllAccelerators;`
Public | `procedure SetThemeColor(color_id: integer; color: TCefColor);`
Public | `procedure ThemeChanged;`

### Properties

Public | `property FocusedView : ICefView read GetFocusedView;`
Public | `property Title : ustring read GetTitle write SetTitle;`
Public | `property WindowIcon : ICefImage read GetWindowIcon write SetWindowIcon;`
Public | `property WindowAppIcon : ICefImage read GetWindowAppIcon write SetWindowAppIcon;`
Public | `property Display : ICefDisplay read GetDisplay;`
Public | `property ClientAreaBoundsInScreen : TCefRect read GetClientAreaBoundsInScreen;`
Public | `property WindowHandle : TCefWindowHandle read GetWindowHandle;`
Public | `property IsClosed : boolean read GetIsClosed;`
Public | `property IsActive : boolean read GetIsActive;`
Public | `property IsAlwaysOnTop : boolean read GetIsAlwaysOnTop write SetAlwaysOnTop;`
Public | `property IsFullscreen : boolean read GetIsFullscreen write SetFullscreen;`
Public | `property IsMaximized : boolean read GetIsMaximized;`
Public | `property IsMinimized : boolean read GetIsMinimized;`
Public | `property RuntimeStyle : TCefRuntimeStyle read GetRuntimeStyle;`
Published | `property OnWindowCreated : TOnWindowCreatedEvent read FOnWindowCreated write FOnWindowCreated;`
Published | `property OnWindowClosing : TOnWindowClosingEvent read FOnWindowClosing write FOnWindowClosing;`
Published | `property OnWindowDestroyed : TOnWindowDestroyedEvent read FOnWindowDestroyed write FOnWindowDestroyed;`
Published | `property OnWindowActivationChanged : TOnWindowActivationChangedEvent read FOnWindowActivationChanged write FOnWindowActivationChanged;`
Published | `property OnWindowBoundsChanged : TOnWindowBoundsChangedEvent read FOnWindowBoundsChanged write FOnWindowBoundsChanged;`
Published | `property OnWindowFullscreenTransition : TOnWindowFullscreenTransitionEvent read FOnWindowFullscreenTransition write FOnWindowFullscreenTransition;`
Published | `property OnGetParentWindow : TOnGetParentWindowEvent read FOnGetParentWindow write FOnGetParentWindow;`
Published | `property OnIsWindowModalDialog : TOnIsWindowModalDialogEvent read FOnIsWindowModalDialog write FOnIsWindowModalDialog;`
Published | `property OnGetInitialBounds : TOnGetInitialBoundsEvent read FOnGetInitialBounds write FOnGetInitialBounds;`
Published | `property OnGetInitialShowState : TOnGetInitialShowStateEvent read FOnGetInitialShowState write FOnGetInitialShowState;`
Published | `property OnIsFrameless : TOnIsFramelessEvent read FOnIsFrameless write FOnIsFrameless;`
Published | `property OnWithStandardWindowButtons : TOnWithStandardWindowButtonsEvent read FOnWithStandardWindowButtons write FOnWithStandardWindowButtons;`
Published | `property OnGetTitlebarHeight : TOnGetTitlebarHeightEvent read FOnGetTitlebarHeight write FOnGetTitlebarHeight;`
Published | `property OnAcceptsFirstMouse : TOnAcceptsFirstMouseEvent read FOnAcceptsFirstMouse write FOnAcceptsFirstMouse;`
Published | `property OnCanResize : TOnCanResizeEvent read FOnCanResize write FOnCanResize;`
Published | `property OnCanMaximize : TOnCanMaximizeEvent read FOnCanMaximize write FOnCanMaximize;`
Published | `property OnCanMinimize : TOnCanMinimizeEvent read FOnCanMinimize write FOnCanMinimize;`
Published | `property OnCanClose : TOnCanCloseEvent read FOnCanClose write FOnCanClose;`
Published | `property OnAccelerator : TOnAcceleratorEvent read FOnAccelerator write FOnAccelerator;`
Published | `property OnKeyEvent : TOnWindowKeyEventEvent read FOnKeyEvent write FOnKeyEvent;`
Published | `property OnThemeColorsChanged : TOnThemeColorsChangedEvent read FOnThemeColorsChanged write FOnThemeColorsChanged;`
Published | `property OnGetWindowRuntimeStyle : TOnGetWindowRuntimeStyleEvent read FOnGetWindowRuntimeStyle write FOnGetWindowRuntimeStyle;`
Published | `property OnGetLinuxWindowProperties : TOnGetLinuxWindowPropertiesEvent read FOnGetLinuxWindowProperties write FOnGetLinuxWindowProperties;`

## Description

### Fields

Protected | `FWindow: ICefWindow;`
This item has no description.

Protected | `FWindowDlg: ICefWindowDelegate;`
This item has no description.

Protected | `FOnWindowCreated: TOnWindowCreatedEvent;`
ICefWindowDelegateEvents

Protected | `FOnWindowClosing: TOnWindowClosingEvent;`
This item has no description.

Protected | `FOnWindowDestroyed: TOnWindowDestroyedEvent;`
This item has no description.

Protected | `FOnWindowActivationChanged: TOnWindowActivationChangedEvent;`
This item has no description.

Protected | `FOnWindowBoundsChanged: TOnWindowBoundsChangedEvent;`
This item has no description.

Protected | `FOnWindowFullscreenTransition: TOnWindowFullscreenTransitionEvent;`
This item has no description.

Protected | `FOnGetParentWindow: TOnGetParentWindowEvent;`
This item has no description.

Protected | `FOnIsWindowModalDialog: TOnIsWindowModalDialogEvent;`
This item has no description.

Protected | `FOnGetInitialBounds: TOnGetInitialBoundsEvent;`
This item has no description.

Protected | `FOnGetInitialShowState: TOnGetInitialShowStateEvent;`
This item has no description.

Protected | `FOnIsFrameless: TOnIsFramelessEvent;`
This item has no description.

Protected | `FOnWithStandardWindowButtons: TOnWithStandardWindowButtonsEvent;`
This item has no description.

Protected | `FOnGetTitlebarHeight: TOnGetTitlebarHeightEvent;`
This item has no description.

Protected | `FOnAcceptsFirstMouse: TOnAcceptsFirstMouseEvent;`
This item has no description.

Protected | `FOnCanResize: TOnCanResizeEvent;`
This item has no description.

Protected | `FOnCanMaximize: TOnCanMaximizeEvent;`
This item has no description.

Protected | `FOnCanMinimize: TOnCanMinimizeEvent;`
This item has no description.

Protected | `FOnCanClose: TOnCanCloseEvent;`
This item has no description.

Protected | `FOnAccelerator: TOnAcceleratorEvent;`
This item has no description.

Protected | `FOnKeyEvent: TOnWindowKeyEventEvent;`
This item has no description.

Protected | `FOnThemeColorsChanged: TOnThemeColorsChangedEvent;`
This item has no description.

Protected | `FOnGetWindowRuntimeStyle: TOnGetWindowRuntimeStyleEvent;`
This item has no description.

Protected | `FOnGetLinuxWindowProperties: TOnGetLinuxWindowPropertiesEvent;`
This item has no description.

### Methods

Protected | `procedure DestroyView; override;`
This item has no description.

Protected | `procedure Initialize; override;`
This item has no description.

Protected | `function GetInitialized: boolean; override;`
This item has no description.

Protected | `function GetAsView: ICefView; override;`
This item has no description.

Protected | `function GetAsPanel: ICefPanel; override;`
This item has no description.

Protected | `function GetAsWindow: ICefWindow; override;`
This item has no description.

Protected | `function GetIsClosed: boolean;`
This item has no description.

Protected | `function GetIsActive: boolean;`
This item has no description.

Protected | `function GetIsAlwaysOnTop: boolean;`
This item has no description.

Protected | `function GetIsMaximized: boolean;`
This item has no description.

Protected | `function GetIsMinimized: boolean;`
This item has no description.

Protected | `function GetIsFullscreen: boolean;`
This item has no description.

Protected | `function GetFocusedView: ICefView;`
This item has no description.

Protected | `function GetTitle: ustring;`
This item has no description.

Protected | `function GetWindowIcon: ICefImage;`
This item has no description.

Protected | `function GetWindowAppIcon: ICefImage;`
This item has no description.

Protected | `function GetDisplay: ICefDisplay;`
This item has no description.

Protected | `function GetClientAreaBoundsInScreen: TCefRect;`
This item has no description.

Protected | `function GetWindowHandle: TCefWindowHandle;`
This item has no description.

Protected | `function GetRuntimeStyle: TCefRuntimeStyle;`
This item has no description.

Protected | `procedure SetAlwaysOnTop(on_top: boolean);`
This item has no description.

Protected | `procedure SetFullscreen(fullscreen: boolean);`
This item has no description.

Protected | `procedure SetTitle(const title_: ustring);`
This item has no description.

Protected | `procedure SetWindowIcon(const image: ICefImage);`
This item has no description.

Protected | `procedure SetWindowAppIcon(const image: ICefImage);`
This item has no description.

Protected | `procedure doOnWindowCreated(const window_: ICefWindow);`
ICefWindowDelegateEvents

Protected | `procedure doOnWindowClosing(const window_: ICefWindow);`
This item has no description.

Protected | `procedure doOnWindowDestroyed(const window_: ICefWindow);`
This item has no description.

Protected | `procedure doOnWindowActivationChanged(const window_: ICefWindow; active: boolean);`
This item has no description.

Protected | `procedure doOnWindowBoundsChanged(const window_: ICefWindow; const new_bounds: TCefRect);`
This item has no description.

Protected | `procedure doOnWindowFullscreenTransition(const window_: ICefWindow; is_completed: boolean);`
This item has no description.

Protected | `procedure doOnGetParentWindow(const window_: ICefWindow; var is_menu, can_activate_menu: boolean; var aResult : ICefWindow);`
This item has no description.

Protected | `procedure doOnIsWindowModalDialog(const window_: ICefWindow; var aResult : boolean);`
This item has no description.

Protected | `procedure doOnGetInitialBounds(const window_: ICefWindow; var aResult : TCefRect);`
This item has no description.

Protected | `procedure doOnGetInitialShowState(const window_: ICefWindow; var aResult : TCefShowState);`
This item has no description.

Protected | `procedure doOnIsFrameless(const window_: ICefWindow; var aResult : boolean);`
This item has no description.

Protected | `procedure doOnWithStandardWindowButtons(const window_: ICefWindow; var aResult : boolean);`
This item has no description.

Protected | `procedure doOnGetTitlebarHeight(const window_: ICefWindow; var titlebar_height: Single; var aResult : boolean);`
This item has no description.

Protected | `procedure doOnAcceptsFirstMouse(const window_: ICefWindow; var aResult: TCefState);`
This item has no description.

Protected | `procedure doOnCanResize(const window_: ICefWindow; var aResult : boolean);`
This item has no description.

Protected | `procedure doOnCanMaximize(const window_: ICefWindow; var aResult : boolean);`
This item has no description.

Protected | `procedure doOnCanMinimize(const window_: ICefWindow; var aResult : boolean);`
This item has no description.

Protected | `procedure doOnCanClose(const window_: ICefWindow; var aResult : boolean);`
This item has no description.

Protected | `procedure doOnAccelerator(const window_: ICefWindow; command_id: Integer; var aResult : boolean);`
This item has no description.

Protected | `procedure doOnKeyEvent(const window_: ICefWindow; const event: TCefKeyEvent; var aResult : boolean);`
This item has no description.

Protected | `procedure doOnThemeColorsChanged(const window_: ICefWindow; chrome_theme: Integer);`
This item has no description.

Protected | `procedure doOnGetWindowRuntimeStyle(var aResult: TCefRuntimeStyle);`
This item has no description.

Protected | `procedure doOnGetLinuxWindowProperties(const window_: ICefWindow; var properties: TLinuxWindowProperties; var aResult: boolean);`
This item has no description.

Protected | `procedure doCreateCustomView; override;`
ICefViewDelegateEvents

Public | `procedure CreateTopLevelWindow;`
Create a new Window.

Public | `procedure Show;`
Show the Window.

Public | `procedure ShowAsBrowserModalDialog(const browser_view: ICefBrowserView);`
Show the Window as a browser modal dialog relative to |browser_view|. A parent Window must be returned via ICefWindowDelegate.OnGetParentWindow and |browser_view| must belong to that parent Window. While this Window is visible, |browser_view| will be disabled while other controls in the parent Window remain enabled. Navigating or destroying the |browser_view| will close this Window automatically. Alternately, use show() and return true (1) from ICefWindowDelegate.OnIsWindowModalDialog for a window modal dialog where all controls in the parent Window are disabled.

Public | `procedure Hide;`
Hide the Window.

Public | `procedure CenterWindow(const size_: TCefSize);`
Sizes the Window to |size| and centers it in the current display.

Public | `procedure Close;`
Close the Window.

Public | `procedure Activate;`
Activate the Window, assuming it already exists and is visible.

Public | `procedure Deactivate;`
Deactivate the Window, making the next Window in the Z order the active Window.

Public | `procedure BringToTop;`
Bring this Window to the top of other Windows in the Windowing system.

Public | `procedure Maximize;`
Maximize the Window.

Public | `procedure Minimize;`
Minimize the Window.

Public | `procedure Restore;`
Restore the Window.

Public | `function AddOverlayView(const view: ICefView; docking_mode: TCefDockingMode; can_activate: boolean): ICefOverlayController;`
Add a View that will be overlayed on the Window contents with absolute positioning and high z-order. Positioning is controlled by |docking_mode| as described below. Setting |can_activate| to true (1) will allow the overlay view to receive input focus. The returned cef_overlay_controller_t object is used to control the overlay. Overlays are hidden by default. With CEF_DOCKING_MODE_CUSTOM:
    1. The overlay is initially hidden, sized to |view|'s preferred size,
       and positioned in the top-left corner.
    2. Optionally change the overlay position and/or size by calling
       CefOverlayController methods.
    3. Call CefOverlayController::SetVisible(true) to show the overlay.
    4. The overlay will be automatically re-sized if |view|'s layout
       changes. Optionally change the overlay position and/or size when
       OnLayoutChanged is called on the Window's delegate to indicate a
       change in Window bounds.
With other docking modes:
    1. The overlay is initially hidden, sized to |view|'s preferred size,
       and positioned based on |docking_mode|.
    2. Call CefOverlayController::SetVisible(true) to show the overlay.
    3. The overlay will be automatically re-sized if |view|'s layout changes
       and re-positioned as appropriate when the Window resizes.
Overlays created by this function will receive a higher z-order then any child Views added previously. It is therefore recommended to call this function last after all other child Views have been added so that the overlay displays as the top-most child of the Window.

Public | `procedure ShowMenu(const menu_model: ICefMenuModel; const screen_point: TCefPoint; anchor_position : TCefMenuAnchorPosition);`
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|.

Public | `procedure CancelMenu;`
Cancel the menu that is currently showing, if any.

Public | `procedure SetDraggableRegions(regionsCount: NativeUInt; const regions: PCefDraggableRegionArray);`
Set the regions where mouse events will be intercepted by this Window to support drag operations. Call this function with an NULL vector to clear the draggable regions. The draggable region bounds should be in window coordinates.

Public | `procedure SendKeyPress(key_code: Integer; event_flags: cardinal);`
Simulate a key press. |key_code| is the VKEY_* value from Chromium's ui/events/keycodes/keyboard_codes.h header (VK_* values on Windows). |event_flags| is some combination of EVENTFLAG_SHIFT_DOWN, EVENTFLAG_CONTROL_DOWN and/or EVENTFLAG_ALT_DOWN. This function is exposed primarily for testing purposes.

Public | `procedure SendMouseMove(screen_x, screen_y: Integer);`
Simulate a mouse move. The mouse cursor will be moved to the specified (screen_x, screen_y) position. This function is exposed primarily for testing purposes.

Public | `procedure SendMouseEvents(button: TCefMouseButtonType; mouse_down, mouse_up: boolean);`
Simulate mouse down and/or mouse up events. |button| is the mouse button type. If |mouse_down| is true (1) a mouse down event will be sent. If |mouse_up| is true (1) a mouse up event will be sent. If both are true (1) a mouse down event will be sent followed by a mouse up event (equivalent to clicking the mouse button). The events will be sent using the current cursor position so make sure to call send_mouse_move() first to position the mouse. This function is exposed primarily for testing purposes.

Public | `procedure SetAccelerator(command_id, key_code : Integer; shift_pressed, ctrl_pressed, alt_pressed, high_priority: boolean);`
Set the keyboard accelerator for the specified |command_id|. |key_code| can be any virtual key or character value. Required modifier keys are specified by |shift_pressed|, |ctrl_pressed| and/or |alt_pressed|. ICefWindowDelegate.OnAccelerator will be called if the keyboard combination is triggered while this window has focus. The |high_priority| value will be considered if a child ICefBrowserView has focus when the keyboard combination is triggered. If |high_priority| is true (1) then the key event will not be forwarded to the web content (`keydown` event handler) or ICefKeyboardHandler first. If |high_priority| is false (0) then the behavior will depend on the ICefBrowserView.SetPreferAccelerators configuration.

Public | `procedure RemoveAccelerator(command_id: Integer);`
Remove the keyboard accelerator for the specified |command_id|.

Public | `procedure RemoveAllAccelerators;`
Remove all keyboard accelerators.

Public | `procedure SetThemeColor(color_id: integer; color: TCefColor);`
Override a standard theme color or add a custom color associated with |color_id|. See cef_color_ids.h for standard ID values. Recommended usage is as follows:
    1. Customize the default native/OS theme by calling SetThemeColor before
       showing the first Window. When done setting colors call
       ICefWindow.ThemeChanged to trigger ICefViewDelegate.OnThemeChanged
       notifications.
    2. Customize the current native/OS or Chrome theme after it changes by
       calling SetThemeColor from the ICefWindowDelegate.OnThemeColorsChanged
       callback. ICefViewDelegate.OnThemeChanged notifications will then be
       triggered automatically.
The configured color will be available immediately via ICefView.GetThemeColor and will be applied to each View in this Window's component hierarchy when ICefViewDelegate.OnThemeChanged is called. See OnThemeColorsChanged documentation for additional details. Clients wishing to add custom colors should use |color_id| values >= CEF_ChromeColorsEnd.

Public | `procedure ThemeChanged;`
Trigger ICefViewDelegate.OnThemeChanged callbacks for each View in this Window's component hierarchy. Unlike a native/OS or Chrome theme change this function does not reset theme colors to standard values and does not result in a call to ICefWindowDelegate.OnThemeColorsChanged. Do not call this function from ICefWindowDelegate.OnThemeColorsChanged or ICefViewDelegate.OnThemeChanged.

### Properties

Public | `property FocusedView : ICefView read GetFocusedView;`
Returns the View that currently has focus in this Window, or nullptr if no View currently has focus. A Window may have a focused View even if it is not currently active. Any focus changes while a Window is not active may be applied after that Window next becomes active.

Public | `property Title : ustring read GetTitle write SetTitle;`
Get the Window title.

Public | `property WindowIcon : ICefImage read GetWindowIcon write SetWindowIcon;`
Get the Window icon.

Public | `property WindowAppIcon : ICefImage read GetWindowAppIcon write SetWindowAppIcon;`
Get or set the Window App icon. This should be a larger icon for use in the host environment app switching UI. On Windows, this is the ICON_BIG used in Alt-Tab list and Windows taskbar. The Window icon will be used by default if no Window App icon is specified.

Public | `property Display : ICefDisplay read GetDisplay;`
Returns the Display that most closely intersects the bounds of this Window. May return NULL if this Window is not currently displayed.

Public | `property ClientAreaBoundsInScreen : TCefRect read GetClientAreaBoundsInScreen;`
Returns the bounds (size and position) of this Window's client area. Position is in screen coordinates.

Public | `property WindowHandle : TCefWindowHandle read GetWindowHandle;`
Retrieve the platform window handle for this Window.

Public | `property IsClosed : boolean read GetIsClosed;`
Returns true (1) if the Window has been closed.

Public | `property IsActive : boolean read GetIsActive;`
Returns whether the Window is the currently active Window.

Public | `property IsAlwaysOnTop : boolean read GetIsAlwaysOnTop write SetAlwaysOnTop;`
Returns whether the Window has been set to be on top of other Windows in the Windowing system.

Public | `property IsFullscreen : boolean read GetIsFullscreen write SetFullscreen;`
Returns true (1) if the Window is fullscreen.

Public | `property IsMaximized : boolean read GetIsMaximized;`
Returns true (1) if the Window is maximized.

Public | `property IsMinimized : boolean read GetIsMinimized;`
Returns true (1) if the Window is minimized.

Public | `property RuntimeStyle : TCefRuntimeStyle read GetRuntimeStyle;`
Returns the runtime style for this Window (ALLOY or CHROME). See TCefRuntimeStyle documentation for details.

Published | `property OnWindowCreated : TOnWindowCreatedEvent read FOnWindowCreated write FOnWindowCreated;`
Called when |window| is created.

Published | `property OnWindowClosing : TOnWindowClosingEvent read FOnWindowClosing write FOnWindowClosing;`
Called when |window| is closing.

Published | `property OnWindowDestroyed : TOnWindowDestroyedEvent read FOnWindowDestroyed write FOnWindowDestroyed;`
Called when |window| is destroyed. Release all references to |window| and do not attempt to execute any functions on |window| after this callback returns.

Published | `property OnWindowActivationChanged : TOnWindowActivationChangedEvent read FOnWindowActivationChanged write FOnWindowActivationChanged;`
Called when |window| is activated or deactivated.

Published | `property OnWindowBoundsChanged : TOnWindowBoundsChangedEvent read FOnWindowBoundsChanged write FOnWindowBoundsChanged;`
Called when |window| bounds have changed. |new_bounds| will be in DIP screen coordinates.

Published | `property OnWindowFullscreenTransition : TOnWindowFullscreenTransitionEvent read FOnWindowFullscreenTransition write FOnWindowFullscreenTransition;`
Called when |window| is transitioning to or from fullscreen mode. On MacOS the transition occurs asynchronously with |is_competed| set to false (0) when the transition starts and true (1) after the transition completes. On other platforms the transition occurs synchronously with |is_completed| set to true (1) after the transition completes. With Alloy style you must also implement ICefDisplayHandler.OnFullscreenModeChange to handle fullscreen transitions initiated by browser content.

Published | `property OnGetParentWindow : TOnGetParentWindowEvent read FOnGetParentWindow write FOnGetParentWindow;`
Return the parent for |window| or NULL if the |window| does not have a parent. Windows with parents will not get a taskbar button. Set |is_menu| to true (1) if |window| will be displayed as a menu, in which case it will not be clipped to the parent window bounds. Set |can_activate_menu| to false (0) if |is_menu| is true (1) and |window| should not be activated (given keyboard focus) when displayed.

Published | `property OnIsWindowModalDialog : TOnIsWindowModalDialogEvent read FOnIsWindowModalDialog write FOnIsWindowModalDialog;`
Return true (1) if |window| should be created as a window modal dialog. Only called when a Window is returned via get_parent_window() with |is_menu| set to false (0). All controls in the parent Window will be disabled while |window| is visible. This functionality is not supported by all Linux window managers. Alternately, use ICefWindow.ShowAsBrowserModalDialog() for a browser modal dialog that works on all platforms.

Published | `property OnGetInitialBounds : TOnGetInitialBoundsEvent read FOnGetInitialBounds write FOnGetInitialBounds;`
Return the initial bounds for |window| in density independent pixel (DIP) coordinates. If this function returns an NULL CefRect then GetPreferredSize() will be called to retrieve the size, and the window will be placed on the screen with origin (0,0). This function can be used in combination with ICefView.GetBoundsInScreen() to restore the previous window bounds.

Published | `property OnGetInitialShowState : TOnGetInitialShowStateEvent read FOnGetInitialShowState write FOnGetInitialShowState;`
Return the initial show state for |window|.

Published | `property OnIsFrameless : TOnIsFramelessEvent read FOnIsFrameless write FOnIsFrameless;`
Return true (1) if |window| should be created without a frame or title bar. The window will be resizable if can_resize() returns true (1). Use ICefWindow.SetDraggableRegions() to specify draggable regions.

Published | `property OnWithStandardWindowButtons : TOnWithStandardWindowButtonsEvent read FOnWithStandardWindowButtons write FOnWithStandardWindowButtons;`
Return true (1) if |window| should be created with standard window buttons like close, minimize and zoom. This function is only supported on macOS.

Published | `property OnGetTitlebarHeight : TOnGetTitlebarHeightEvent read FOnGetTitlebarHeight write FOnGetTitlebarHeight;`
Return whether the titlebar height should be overridden, and sets the height of the titlebar in |titlebar_height|. On macOS, it can also be used to adjust the vertical position of the traffic light buttons in frameless windows. The buttons will be positioned halfway down the titlebar at a height of |titlebar_height| / 2.

Published | `property OnAcceptsFirstMouse : TOnAcceptsFirstMouseEvent read FOnAcceptsFirstMouse write FOnAcceptsFirstMouse;`
Return whether the view should accept the initial mouse-down event, allowing it to respond to click-through behavior. If STATE_ENABLED is returned, the view will be sent a mouseDown: message for an initial mouse- down event, activating the view with one click, instead of clicking first to make the window active and then clicking the view. This function is only supported on macOS. For more details, refer to the documentation of acceptsFirstMouse.

Published | `property OnCanResize : TOnCanResizeEvent read FOnCanResize write FOnCanResize;`
Return true (1) if |window| can be resized.

Published | `property OnCanMaximize : TOnCanMaximizeEvent read FOnCanMaximize write FOnCanMaximize;`
Return true (1) if |window| can be maximized.

Published | `property OnCanMinimize : TOnCanMinimizeEvent read FOnCanMinimize write FOnCanMinimize;`
Return true (1) if |window| can be minimized.

Published | `property OnCanClose : TOnCanCloseEvent read FOnCanClose write FOnCanClose;`
Return true (1) if |window| can be closed. This will be called for user- initiated window close actions and when ICefWindow.close() is called.

Published | `property OnAccelerator : TOnAcceleratorEvent read FOnAccelerator write FOnAccelerator;`
Called when a keyboard accelerator registered with ICefWindow.SetAccelerator is triggered. Return true (1) if the accelerator was handled or false (0) otherwise.

Published | `property OnKeyEvent : TOnWindowKeyEventEvent read FOnKeyEvent write FOnKeyEvent;`
Called after all other controls in the window have had a chance to handle the event. |event| contains information about the keyboard event. Return true (1) if the keyboard event was handled or false (0) otherwise.

Published | `property OnThemeColorsChanged : TOnThemeColorsChangedEvent read FOnThemeColorsChanged write FOnThemeColorsChanged;`
Called after the native/OS or Chrome theme for |window| has changed. |chrome_theme| will be true (1) if the notification is for a Chrome theme. Native/OS theme colors are configured globally and do not need to be customized for each Window individually. An example of a native/OS theme change that triggers this callback is when the user switches between dark and light mode during application lifespan. Native/OS theme changes can be disabled by passing the `–force-dark-mode` or `–force-light-mode` command-line flag. Chrome theme colors will be applied and this callback will be triggered if/when a BrowserView is added to the Window's component hierarchy. Chrome theme colors can be configured on a per-RequestContext basis using ICefRequestContext.SetChromeColorScheme or (Chrome style only) by visiting chrome://settings/manageProfile. Any theme changes using those mechanisms will also trigger this callback. Chrome theme colors will be persisted and restored from disk cache. This callback is not triggered on Window creation so clients that wish to customize the initial native/OS theme must call ICefWindow.SetThemeColor and ICefWindow.ThemeChanged before showing the first Window. Theme colors will be reset to standard values before this callback is called for the first affected Window. Call ICefWindow.SetThemeColor from inside this callback to override a standard color or add a custom color. ICefViewDelegate.OnThemeChanged will be called after this callback for the complete |window| component hierarchy.

Published | `property OnGetWindowRuntimeStyle : TOnGetWindowRuntimeStyleEvent read FOnGetWindowRuntimeStyle write FOnGetWindowRuntimeStyle;`
Optionally change the runtime style for this Window. See TCefRuntimeStyle documentation for details.

Published | `property OnGetLinuxWindowProperties : TOnGetLinuxWindowPropertiesEvent read FOnGetLinuxWindowProperties write FOnGetLinuxWindowProperties;`
Return Linux-specific window properties for correctly handling by window managers.

Generated by PasDoc 1.0.4.