Class TCefViewDelegateRef

Description
Hierarchy
Fields
Methods
Properties

Unit

Declaration

type TCefViewDelegateRef = class(TCefBaseRefCountedRef, ICefViewDelegate)

Description

This item has no description.

Hierarchy

Overview

Methods

Protected procedure OnGetPreferredSize(const view: ICefView; var aResult : TCefSize);
Protected procedure OnGetMinimumSize(const view: ICefView; var aResult : TCefSize);
Protected procedure OnGetMaximumSize(const view: ICefView; var aResult : TCefSize);
Protected procedure OnGetHeightForWidth(const view: ICefView; width: Integer; var aResult: Integer);
Protected procedure OnParentViewChanged(const view: ICefView; added: boolean; const parent: ICefView);
Protected procedure OnChildViewChanged(const view: ICefView; added: boolean; const child: ICefView);
Protected procedure OnWindowChanged(const view: ICefView; added: boolean);
Protected procedure OnLayoutChanged(const view: ICefView; new_bounds: TCefRect);
Protected procedure OnFocus(const view: ICefView);
Protected procedure OnBlur(const view: ICefView);
Protected procedure OnThemeChanged(const view: ICefView);
Public class function UnWrap(data: Pointer): ICefViewDelegate;

Description

Methods

Protected procedure OnGetPreferredSize(const view: ICefView; var aResult : TCefSize);

This item has no description. Showing description inherited from ICefViewDelegate.OnGetPreferredSize.

Return the preferred size for |view|. The Layout will use this information to determine the display size.

Protected procedure OnGetMinimumSize(const view: ICefView; var aResult : TCefSize);

This item has no description. Showing description inherited from ICefViewDelegate.OnGetMinimumSize.

Return the minimum size for |view|.

Protected procedure OnGetMaximumSize(const view: ICefView; var aResult : TCefSize);

This item has no description. Showing description inherited from ICefViewDelegate.OnGetMaximumSize.

Return the maximum size for |view|.

Protected procedure OnGetHeightForWidth(const view: ICefView; width: Integer; var aResult: Integer);

This item has no description. Showing description inherited from ICefViewDelegate.OnGetHeightForWidth.

Return the height necessary to display |view| with the provided |width|. If not specified the result of get_preferred_size().height will be used by default. Override if |view|'s preferred height depends upon the width (for example, with Labels).

Protected procedure OnParentViewChanged(const view: ICefView; added: boolean; const parent: ICefView);

This item has no description. Showing description inherited from ICefViewDelegate.OnParentViewChanged.

Called when the parent of |view| has changed. If |view| is being added to |parent| then |added| will be true (1). If |view| is being removed from |parent| then |added| will be false (0). If |view| is being reparented the remove notification will be sent before the add notification. Do not modify the view hierarchy in this callback.

Protected procedure OnChildViewChanged(const view: ICefView; added: boolean; const child: ICefView);

This item has no description. Showing description inherited from ICefViewDelegate.OnChildViewChanged.

Called when a child of |view| has changed. If |child| is being added to |view| then |added| will be true (1). If |child| is being removed from |view| then |added| will be false (0). If |child| is being reparented the remove notification will be sent to the old parent before the add notification is sent to the new parent. Do not modify the view hierarchy in this callback.

Protected procedure OnWindowChanged(const view: ICefView; added: boolean);

This item has no description. Showing description inherited from ICefViewDelegate.OnWindowChanged.

Called when |view| is added or removed from the ICefWindow.

Protected procedure OnLayoutChanged(const view: ICefView; new_bounds: TCefRect);

This item has no description. Showing description inherited from ICefViewDelegate.OnLayoutChanged.

Called when the layout of |view| has changed.

Protected procedure OnFocus(const view: ICefView);

This item has no description. Showing description inherited from ICefViewDelegate.OnFocus.

Called when |view| gains focus.

Protected procedure OnBlur(const view: ICefView);

This item has no description. Showing description inherited from ICefViewDelegate.OnBlur.

Called when |view| loses focus.

Protected procedure OnThemeChanged(const view: ICefView);

This item has no description. Showing description inherited from ICefViewDelegate.OnThemeChanged.

(

Called when the theme for |view| has changed, after the new theme colors have already been applied. Views are notified via the component hierarchy in depth-first reverse order (children before parents).

This will be called in the following cases:

1. When |view|, or a parent of |view|, is added to a Window.
2. When the native/OS or Chrome theme changes for the Window that contains
   |view|. See ICefWindowDelegate.OnThemeColorsChanged documentation.
3. When the client explicitly calls ICefWindow.ThemeChanged on the
   Window that contains |view|.

Optionally use this callback to override the new per-View theme colors by calling ICefView.SetBackgroundColor or the appropriate component- specific function. See ICefWindow.SetThemeColor documentation for how to customize additional Window theme colors.

(

Public class function UnWrap(data: Pointer): ICefViewDelegate;

Returns a ICefViewDelegate instance using a PCefViewDelegate data pointer.


Generated by PasDoc 0.16.0-snapshot.