type TCEFViewComponent = class(TComponent, ICefViewDelegateEvents)
This item has no description.
procedure CreateView; virtual; |
|
procedure DestroyView; virtual; |
|
procedure Initialize; virtual; |
|
function GetInitialized: boolean; virtual; |
|
function GetAsView: ICefView; virtual; |
|
function GetTypeString: ustring; |
|
function GetAsBrowserView: ICefBrowserView; virtual; |
|
function GetAsButton: ICefButton; virtual; |
|
function GetAsPanel: ICefPanel; virtual; |
|
function GetAsScrollView: ICefScrollView; virtual; |
|
function GetAsTextfield: ICefTextfield; virtual; |
|
function GetIsValid: boolean; |
|
function GetIsAttached: boolean; |
|
function GetDelegate: ICefViewDelegate; |
|
function GetWindow: ICefWindow; |
|
function GetID: Integer; |
|
function GetGroupID: Integer; |
|
function GetParentView: ICefView; |
|
function GetBounds: TCefRect; |
|
function GetBoundsInScreen: TCefRect; |
|
function GetSize: TCefSize; |
|
function GetPosition: TCefPoint; |
|
function GetPreferredSize: TCefSize; |
|
function GetMinimumSize: TCefSize; |
|
function GetMaximumSize: TCefSize; |
|
function GetIsVisible: boolean; |
|
function GetIsDrawn: boolean; |
|
function GetIsEnabled: boolean; |
|
function GetIsFocusable: boolean; |
|
function GetIsAccessibilityFocusable: boolean; |
|
function GetBackgroundColor: TCefColor; |
|
function GetViewForID(id_: Integer): ICefView; |
|
function GetHeightForWidth(width: Integer): Integer; |
|
function GetInsets: TCefInsets; |
|
function GetComponentID: integer; |
|
procedure SetID(id_: Integer); |
|
procedure SetGroupID(group_id: Integer); |
|
procedure SetBounds(const bounds_: TCefRect); |
|
procedure SetSize(const size_: TCefSize); |
|
procedure SetPosition(const position_: TCefPoint); |
|
procedure SetVisible(visible_: boolean); |
|
procedure SetEnabled(enabled_: boolean); |
|
procedure SetFocusable(focusable_: boolean); |
|
procedure SetBackgroundColor(color: TCefColor); |
|
procedure SetInsets(const insets: TCefInsets); |
|
procedure doOnGetPreferredSize(const view: ICefView; var aResult : TCefSize); virtual; |
|
procedure doOnGetMinimumSize(const view: ICefView; var aResult : TCefSize); virtual; |
|
procedure doOnGetMaximumSize(const view: ICefView; var aResult : TCefSize); virtual; |
|
procedure doOnGetHeightForWidth(const view: ICefView; width: Integer; var aResult: Integer); virtual; |
|
procedure doOnParentViewChanged(const view: ICefView; added: boolean; const parent: ICefView); virtual; |
|
procedure doOnChildViewChanged(const view: ICefView; added: boolean; const child: ICefView); virtual; |
|
procedure doOnWindowChanged(const view: ICefView; added: boolean); virtual; |
|
procedure doOnLayoutChanged(const view: ICefView; new_bounds: TCefRect); virtual; |
|
procedure doOnFocus(const view: ICefView); virtual; |
|
procedure doOnBlur(const view: ICefView); virtual; |
|
procedure doOnThemeChanged(const view: ICefView); virtual; |
|
procedure doCreateCustomView; virtual; |
|
constructor Create(AOwner: TComponent); override; |
|
procedure AfterConstruction; override; |
|
procedure BeforeDestruction; override; |
|
function ToStringEx(include_children: boolean): ustring; |
|
function IsSame(const that: ICefView): boolean; |
|
procedure SizeToPreferredSize; |
|
procedure InvalidateLayout; |
|
procedure RequestFocus; |
|
function GetThemeColor(color_id: integer): TCefColor; |
|
function ConvertPointToScreen(var point: TCefPoint): boolean; |
|
function ConvertPointFromScreen(var point: TCefPoint): boolean; |
|
function ConvertPointToWindow(var point: TCefPoint): boolean; |
|
function ConvertPointFromWindow(var point: TCefPoint): boolean; |
|
function ConvertPointToView(const view : ICefView; var point: TCefPoint): boolean; |
|
function ConvertPointFromView(const view : ICefView; var point: TCefPoint): boolean; |
FOnGetPreferredSize: TOnGetPreferredSizeEvent; |
|
ICefViewDelegateEvents |
FOnGetMinimumSize: TOnGetMinimumSizeEvent; |
|
This item has no description. |
FOnGetMaximumSize: TOnGetMaximumSizeEvent; |
|
This item has no description. |
FOnGetHeightForWidth: TOnGetHeightForWidthEvent; |
|
This item has no description. |
FOnParentViewChanged: TOnParentViewChangedEvent; |
|
This item has no description. |
FOnChildViewChanged: TOnChildViewChangedEvent; |
|
This item has no description. |
FOnWindowChanged: TOnWindowChangedEvent; |
|
This item has no description. |
FOnLayoutChanged: TOnLayoutChangedEvent; |
|
This item has no description. |
FOnFocus: TOnFocusEvent; |
|
This item has no description. |
FOnBlur: TOnBlurEvent; |
|
This item has no description. |
FOnThemeChanged: TOnThemeChangedEvent; |
|
This item has no description. |
FComponentID: integer; |
|
This item has no description. |
procedure CreateView; virtual; |
|
This item has no description. |
procedure DestroyView; virtual; |
|
This item has no description. |
procedure Initialize; virtual; |
|
This item has no description. |
function GetInitialized: boolean; virtual; |
|
This item has no description. |
function GetAsView: ICefView; virtual; |
|
This item has no description. |
function GetTypeString: ustring; |
|
This item has no description. |
function GetAsBrowserView: ICefBrowserView; virtual; |
|
This item has no description. |
function GetAsButton: ICefButton; virtual; |
|
This item has no description. |
function GetAsPanel: ICefPanel; virtual; |
|
This item has no description. |
function GetAsScrollView: ICefScrollView; virtual; |
|
This item has no description. |
function GetAsTextfield: ICefTextfield; virtual; |
|
This item has no description. |
function GetIsValid: boolean; |
|
This item has no description. |
function GetIsAttached: boolean; |
|
This item has no description. |
function GetDelegate: ICefViewDelegate; |
|
This item has no description. |
function GetWindow: ICefWindow; |
|
This item has no description. |
function GetID: Integer; |
|
This item has no description. |
function GetGroupID: Integer; |
|
This item has no description. |
function GetParentView: ICefView; |
|
This item has no description. |
function GetBounds: TCefRect; |
|
This item has no description. |
function GetBoundsInScreen: TCefRect; |
|
This item has no description. |
function GetSize: TCefSize; |
|
This item has no description. |
function GetPosition: TCefPoint; |
|
This item has no description. |
function GetPreferredSize: TCefSize; |
|
This item has no description. |
function GetMinimumSize: TCefSize; |
|
This item has no description. |
function GetMaximumSize: TCefSize; |
|
This item has no description. |
function GetIsVisible: boolean; |
|
This item has no description. |
function GetIsDrawn: boolean; |
|
This item has no description. |
function GetIsEnabled: boolean; |
|
This item has no description. |
function GetIsFocusable: boolean; |
|
This item has no description. |
function GetIsAccessibilityFocusable: boolean; |
|
This item has no description. |
function GetBackgroundColor: TCefColor; |
|
This item has no description. |
function GetViewForID(id_: Integer): ICefView; |
|
This item has no description. |
function GetHeightForWidth(width: Integer): Integer; |
|
This item has no description. |
function GetInsets: TCefInsets; |
|
This item has no description. |
function GetComponentID: integer; |
|
This item has no description. |
procedure SetID(id_: Integer); |
|
This item has no description. |
procedure SetGroupID(group_id: Integer); |
|
This item has no description. |
procedure SetBounds(const bounds_: TCefRect); |
|
This item has no description. |
procedure SetSize(const size_: TCefSize); |
|
This item has no description. |
procedure SetPosition(const position_: TCefPoint); |
|
This item has no description. |
procedure SetVisible(visible_: boolean); |
|
This item has no description. |
procedure SetEnabled(enabled_: boolean); |
|
This item has no description. |
procedure SetFocusable(focusable_: boolean); |
|
This item has no description. |
procedure SetBackgroundColor(color: TCefColor); |
|
This item has no description. |
procedure SetInsets(const insets: TCefInsets); |
|
This item has no description. |
procedure doOnGetPreferredSize(const view: ICefView; var aResult : TCefSize); virtual; |
|
ICefViewDelegateEvents |
procedure doOnGetMinimumSize(const view: ICefView; var aResult : TCefSize); virtual; |
|
This item has no description. |
procedure doOnGetMaximumSize(const view: ICefView; var aResult : TCefSize); virtual; |
|
This item has no description. |
procedure doOnGetHeightForWidth(const view: ICefView; width: Integer; var aResult: Integer); virtual; |
|
This item has no description. |
procedure doOnParentViewChanged(const view: ICefView; added: boolean; const parent: ICefView); virtual; |
|
This item has no description. |
procedure doOnChildViewChanged(const view: ICefView; added: boolean; const child: ICefView); virtual; |
|
This item has no description. |
procedure doOnWindowChanged(const view: ICefView; added: boolean); virtual; |
|
This item has no description. |
procedure doOnLayoutChanged(const view: ICefView; new_bounds: TCefRect); virtual; |
|
This item has no description. |
procedure doOnFocus(const view: ICefView); virtual; |
|
This item has no description. |
procedure doOnBlur(const view: ICefView); virtual; |
|
This item has no description. |
procedure doOnThemeChanged(const view: ICefView); virtual; |
|
This item has no description. |
procedure doCreateCustomView; virtual; |
|
This item has no description. Showing description inherited from ICefViewDelegateEvents.doCreateCustomView. Custom |
constructor Create(AOwner: TComponent); override; |
|
This item has no description. |
procedure AfterConstruction; override; |
|
This item has no description. |
procedure BeforeDestruction; override; |
|
This item has no description. |
function ToStringEx(include_children: boolean): ustring; |
|
Returns a string representation of this View which includes the type and various type-specific identifying attributes. If |include_children| is true (1) any child Views will also be included. Used primarily for testing purposes. |
function IsSame(const that: ICefView): boolean; |
|
Returns true (1) if this View is the same as |that| View. |
procedure SizeToPreferredSize; |
|
Size this View to its preferred size. Size is in parent coordinates, or DIP screen coordinates if there is no parent. |
procedure RequestFocus; |
|
Request keyboard focus. If this View is focusable it will become the focused View. |
function GetThemeColor(color_id: integer): TCefColor; |
|
Returns the current theme color associated with |color_id|, or the placeholder color (red) if unset. See cef_color_ids.h for standard ID values. Standard colors can be overridden and custom colors can be added using ICefWindow.SetThemeColor. |
function ConvertPointToScreen(var point: TCefPoint): boolean; |
|
Convert |point| from this View's coordinate system to DIP screen coordinates. This View must belong to a Window when calling this function. Returns true (1) if the conversion is successful or false (0) otherwise. Use ICefDisplay.ConvertPointToPixels() after calling this function if further conversion to display-specific pixel coordinates is desired. |
function ConvertPointFromScreen(var point: TCefPoint): boolean; |
|
Convert |point| to this View's coordinate system from DIP screen coordinates. This View must belong to a Window when calling this function. Returns true (1) if the conversion is successful or false (0) otherwise. Use ICefDisplay.ConvertPointFromPixels() before calling this function if conversion from display-specific pixel coordinates is necessary. |
function ConvertPointToWindow(var point: TCefPoint): boolean; |
|
Convert |point| from this View's coordinate system to that of the Window. This View must belong to a Window when calling this function. Returns true (1) if the conversion is successful or false (0) otherwise. |
function ConvertPointFromWindow(var point: TCefPoint): boolean; |
|
Convert |point| to this View's coordinate system from that of the Window. This View must belong to a Window when calling this function. Returns true (1) if the conversion is successful or false (0) otherwise. |
function ConvertPointToView(const view : ICefView; var point: TCefPoint): boolean; |
|
Convert |point| from this View's coordinate system to that of |view|. |view| needs to be in the same Window but not necessarily the same view hierarchy. Returns true (1) if the conversion is successful or false (0) otherwise. |
function ConvertPointFromView(const view : ICefView; var point: TCefPoint): boolean; |
|
Convert |point| to this View's coordinate system from that |view|. |view| needs to be in the same Window but not necessarily the same view hierarchy. Returns true (1) if the conversion is successful or false (0) otherwise. |
property Initialized : boolean read GetInitialized; |
|
Returns true when the control is fully initialized. |
property AsView : ICefView read GetAsView; |
|
Returns this control as a View. |
property AsBrowserView : ICefBrowserView read GetAsBrowserView; |
|
Returns this View as a BrowserView or NULL if this is not a BrowserView. |
property AsButton : ICefButton read GetAsButton; |
|
Returns this View as a Button or NULL if this is not a Button. |
property AsPanel : ICefPanel read GetAsPanel; |
|
Returns this View as a Panel or NULL if this is not a Panel. |
property AsScrollView : ICefScrollView read GetAsScrollView; |
|
Returns this View as a ScrollView or NULL if this is not a ScrollView. |
property AsTextfield : ICefTextfield read GetAsTextfield; |
|
Returns this View as a Textfield or NULL if this is not a Textfield. |
property ViewForID[id_: Integer]: ICefView read GetViewForID; |
|
Recursively descends the view tree starting at this View, and returns the first child that it encounters with the given ID. Returns NULL if no matching child view is found. |
property Valid : boolean read GetIsValid; |
|
Returns true (1) if this View is valid. |
property Attached : boolean read GetIsAttached; |
|
Returns true (1) if this View is currently attached to another View. A View can only be attached to one View at a time. |
property Delegate : ICefViewDelegate read GetDelegate; |
|
Returns the delegate associated with this View, if any. |
property Window : ICefWindow read GetWindow; |
|
Returns the top-level Window hosting this View, if any. |
property ParentView : ICefView read GetParentView; |
|
Returns the View that contains this View, if any. |
property BoundsInScreen : TCefRect read GetBoundsInScreen; |
|
Returns the bounds (size and position) of this View in DIP screen coordinates. |
property PreferredSize : TCefSize read GetPreferredSize; |
|
Returns the size this View would like to be if enough space is available. Size is in parent coordinates, or DIP screen coordinates if there is no parent. |
property MinimumSize : TCefSize read GetMinimumSize; |
|
Returns the minimum size for this View. Size is in parent coordinates, or DIP screen coordinates if there is no parent. |
property MaximumSize : TCefSize read GetMaximumSize; |
|
Returns the maximum size for this View. Size is in parent coordinates, or DIP screen coordinates if there is no parent. |
property Visible : boolean read GetIsVisible write SetVisible; |
|
Returns whether this View is visible. A view may be visible but still not drawn in a Window if any parent views are hidden. If this View is a Window then a return value of true (1) indicates that this Window is currently visible to the user on-screen. If this View is not a Window then call is_drawn() to determine whether this View and all parent views are visible and will be drawn. |
property Drawn : boolean read GetIsDrawn; |
|
Returns whether this View is visible and drawn in a Window. A view is drawn if it and all parent views are visible. If this View is a Window then calling this function is equivalent to calling is_visible(). Otherwise, to determine if the containing Window is visible to the user on-screen call is_visible() on the Window. |
property Enabled : boolean read GetIsEnabled write SetEnabled; |
|
Get or set whether this View is enabled. A disabled View does not receive keyboard or mouse inputs. If |enabled| differs from the current value the View will be repainted. Also, clears focus if the focused View is disabled. |
property Focusable : boolean read GetIsFocusable write SetFocusable; |
|
Gets and sets whether this View is capable of taking focus. It will clear focus if the focused View is set to be non-focusable. This is false (0) by default so that a View used as a container does not get the focus. |
property AccessibilityFocusable : boolean read GetIsAccessibilityFocusable; |
|
Return whether this View is focusable when the user requires full keyboard access, even though it may not be normally focusable. |
property BackgroundColor : TCefColor read GetBackgroundColor write SetBackgroundColor; |
|
Returns the background color for this View. If the background color is unset then the current `GetThemeColor(CEF_ColorPrimaryBackground)` value will be returned. If this View belongs to an overlay (created with ICefWindow.AddOverlayView), and the background color is unset, then a value of transparent (0) will be returned. |
property ID : integer read GetID write SetID; |
|
Gets or sets the ID for this View. ID should be unique within the subtree that you intend to search for it. 0 is the default ID for views. |
property GroupID : integer read GetGroupID write SetGroupID; |
|
Returns the group id of this View, or -1 if not set. |
property Bounds : TCefRect read GetBounds write SetBounds; |
|
Returns the bounds (size and position) of this View in parent coordinates, or DIP screen coordinates if there is no parent. |
property Size : TCefSize read GetSize write SetSize; |
|
Returns the size of this View in parent coordinates, or DIP screen coordinates if there is no parent. |
property Position : TCefPoint read GetPosition write SetPosition; |
|
Returns the position of this View. Position is in parent coordinates, or DIP screen coordinates if there is no parent. |
property Insets : TCefInsets read GetInsets write SetInsets; |
|
Returns the insets for this View in parent coordinates, or DIP screen coordinates if there is no parent. |
property TypeString : ustring read GetTypeString; |
|
Returns the type of this View as a string. Used primarily for testing purposes. |
property HeightForWidth[width: Integer]: Integer read GetHeightForWidth; |
|
Returns the height necessary to display this View with the provided width. |
property OnGetPreferredSize : TOnGetPreferredSizeEvent read FOnGetPreferredSize write FOnGetPreferredSize; |
|
Return the preferred size for |view|. The Layout will use this information to determine the display size. |
property OnGetMinimumSize : TOnGetMinimumSizeEvent read FOnGetMinimumSize write FOnGetMinimumSize; |
|
Return the minimum size for |view|. |
property OnGetMaximumSize : TOnGetMaximumSizeEvent read FOnGetMaximumSize write FOnGetMaximumSize; |
|
Return the maximum size for |view|. |
property OnGetHeightForWidth : TOnGetHeightForWidthEvent read FOnGetHeightForWidth write FOnGetHeightForWidth; |
|
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). |
property OnParentViewChanged : TOnParentViewChangedEvent read FOnParentViewChanged write FOnParentViewChanged; |
|
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. |
property OnChildViewChanged : TOnChildViewChangedEvent read FOnChildViewChanged write FOnChildViewChanged; |
|
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. |
property OnWindowChanged : TOnWindowChangedEvent read FOnWindowChanged write FOnWindowChanged; |
|
Called when |view| is added or removed from the ICefWindow. |
property OnLayoutChanged : TOnLayoutChangedEvent read FOnLayoutChanged write FOnLayoutChanged; |
|
Called when the layout of |view| has changed. |
property OnFocus : TOnFocusEvent read FOnFocus write FOnFocus; |
|
Called when |view| gains focus. |
property OnBlur : TOnBlurEvent read FOnBlur write FOnBlur; |
|
Called when |view| loses focus. |
property OnThemeChanged : TOnThemeChangedEvent read FOnThemeChanged write FOnThemeChanged; |
|
( 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. ( |