Class TFMXBufferPanel

Description
Hierarchy
Fields
Methods
Properties

Unit

Declaration

type TFMXBufferPanel = class(TControl)

Description

TBufferPanel is used by FMX applications with browsers in OSR mode to draw the browser contents. See the FMXExternalPumpBrowser demo for more details.

Hierarchy

Overview

Fields

Protected FMutex: THandle;
Protected FBuffer: TBitmap;
Protected FScanlineSize: integer;
Protected FColor: TAlphaColor;
Protected FHighSpeedDrawing: boolean;
Protected FOnDialogKey: TDialogKeyEvent;
Protected FForcedDeviceScaleFactor: single;

Methods

Protected procedure CreateSyncObj;
Protected procedure DestroySyncObj;
Protected procedure DestroyBuffer;
Protected function GetScreenScale: single; virtual;
Protected function GetBufferWidth: integer;
Protected function GetBufferHeight: integer;
Protected function GetParentForm: TCustomForm;
Protected function GetParentFormHandle: TCefWindowHandle;
Protected function GetRealScreenScale(var aResultScale : single) : boolean; virtual;
Protected function CopyBuffer: boolean;
Protected function SaveBufferToFile(const aFilename : string) : boolean;
Protected procedure Paint; override;
Protected procedure DialogKey(var Key: Word; Shift: TShiftState); override;
Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public procedure AfterConstruction; override;
Public function SaveToFile(const aFilename : string) : boolean;
Public procedure InvalidatePanel;
Public function BeginBufferDraw: boolean;
Public procedure EndBufferDraw;
Public procedure BufferDraw(const aBitmap : TBitmap; const aSrcRect, aDstRect : TRectF);
Public function UpdateBufferDimensions(aWidth, aHeight : integer) : boolean;
Public function BufferIsResized(aUseMutex : boolean = True) : boolean;
Public function ScreenToClient(aPoint : TPoint) : TPoint; overload;
Public function ScreenToClient(aPoint : TPointF) : TPointF; overload;
Public function ClientToScreen(aPoint : TPoint) : TPoint; overload;
Public function ClientToScreen(aPoint : TPointF) : TPointF; overload;

Properties

Public property Buffer : TBitmap read FBuffer;
Public property ScanlineSize : integer read FScanlineSize;
Public property BufferWidth : integer read GetBufferWidth;
Public property BufferHeight : integer read GetBufferHeight;
Public property ScreenScale : single read GetScreenScale;
Public property ForcedDeviceScaleFactor : single read FForcedDeviceScaleFactor write FForcedDeviceScaleFactor;
Published property Align;
Published property Anchors;
Published property Visible;
Published property Enabled;
Published property TabOrder;
Published property Color : TAlphaColor read FColor write FColor default claWhite;
Published property HighSpeedDrawing : boolean read FHighSpeedDrawing write FHighSpeedDrawing default True;
Published property Hint;
Published property ShowHint;
Published property OnEnter;
Published property OnExit;
Published property OnResize;
Published property OnClick;
Published property OnMouseDown;
Published property OnMouseMove;
Published property OnMouseUp;
Published property OnMouseEnter;
Published property OnMouseLeave;
Published property OnMouseWheel;
Published property OnKeyUp;
Published property OnKeyDown;
Published property OnDialogKey : TDialogKeyEvent read FOnDialogKey write FOnDialogKey;

Description

Fields

Protected FMutex: THandle;

This item has no description.

Protected FBuffer: TBitmap;

This item has no description.

Protected FScanlineSize: integer;

This item has no description.

Protected FColor: TAlphaColor;

This item has no description.

Protected FHighSpeedDrawing: boolean;

This item has no description.

Protected FOnDialogKey: TDialogKeyEvent;

This item has no description.

Protected FForcedDeviceScaleFactor: single;

This item has no description.

Methods

Protected procedure CreateSyncObj;

This item has no description.

Protected procedure DestroySyncObj;

This item has no description.

Protected procedure DestroyBuffer;

This item has no description.

Protected function GetScreenScale: single; virtual;

This item has no description.

Protected function GetBufferWidth: integer;

This item has no description.

Protected function GetBufferHeight: integer;

This item has no description.

Protected function GetParentForm: TCustomForm;

This item has no description.

Protected function GetParentFormHandle: TCefWindowHandle;

This item has no description.

Protected function GetRealScreenScale(var aResultScale : single) : boolean; virtual;

This item has no description.

Protected function CopyBuffer: boolean;

This item has no description.

Protected function SaveBufferToFile(const aFilename : string) : boolean;

This item has no description.

Protected procedure Paint; override;

This item has no description.

Protected procedure DialogKey(var Key: Word; Shift: TShiftState); override;

This item has no description.

Public constructor Create(AOwner: TComponent); override;

This item has no description.

Public destructor Destroy; override;

This item has no description.

Public procedure AfterConstruction; override;

This item has no description.

Public function SaveToFile(const aFilename : string) : boolean;

Save the visible web contents as a bitmap file.

Public procedure InvalidatePanel;

Invalidate this panel.

Public function BeginBufferDraw: boolean;

Acquires the synchronization object before drawing into the background bitmap.

Public procedure EndBufferDraw;

Releases the synchronization object after drawing into the background bitmap.

Public procedure BufferDraw(const aBitmap : TBitmap; const aSrcRect, aDstRect : TRectF);

Draws a part of aBitmap into the background bitmap buffer at the specified rectangle.

Parameters
aBitmap
Bitmap that will be drawn into the background bitmap.
aSrcRect
Rectangle that defines the area of aBitmap that will be drawn into the background bitmap.
aDstRect
Rectangle that defines the area of the background bitmap where aBitmap will be drawn.
Public function UpdateBufferDimensions(aWidth, aHeight : integer) : boolean;

Update the background bitmap size.

Public function BufferIsResized(aUseMutex : boolean = True) : boolean;

Check if the background image buffers have the same dimensions as this panel. Returns true if they have the same size.

Public function ScreenToClient(aPoint : TPoint) : TPoint; overload;

Convert a point from the screen coordinate system to the client coordinate system.

Public function ScreenToClient(aPoint : TPointF) : TPointF; overload;

Convert a point from the screen coordinate system to the client coordinate system.

Public function ClientToScreen(aPoint : TPoint) : TPoint; overload;

Convert a point from the client coordinate system to the screen coordinate system.

Public function ClientToScreen(aPoint : TPointF) : TPointF; overload;

Convert a point from the client coordinate system to the screen coordinate system.

Properties

Public property Buffer : TBitmap read FBuffer;

Background bitmap.

Public property ScanlineSize : integer read FScanlineSize;

Returns the scanline size.

Public property BufferWidth : integer read GetBufferWidth;

Image width.

Public property BufferHeight : integer read GetBufferHeight;

Image height.

Public property ScreenScale : single read GetScreenScale;

Returns the screen scale.

Public property ForcedDeviceScaleFactor : single read FForcedDeviceScaleFactor write FForcedDeviceScaleFactor;

Screen scale value used instead of the real one.

Published property Align;

This item has no description.

Published property Anchors;

This item has no description.

Published property Visible;

This item has no description.

Published property Enabled;

This item has no description.

Published property TabOrder;

This item has no description.

Published property Color : TAlphaColor read FColor write FColor default claWhite;

Color used to clear the panel canvas in the Paint method.

Published property HighSpeedDrawing : boolean read FHighSpeedDrawing write FHighSpeedDrawing default True;

Set HighSpeedDrawing to True to draw the buffer to the canvas using a high speed interpolation mode.

Published property Hint;

This item has no description.

Published property ShowHint;

This item has no description.

Published property OnEnter;

This item has no description.

Published property OnExit;

This item has no description.

Published property OnResize;

This item has no description.

Published property OnClick;

This item has no description.

Published property OnMouseDown;

This item has no description.

Published property OnMouseMove;

This item has no description.

Published property OnMouseUp;

This item has no description.

Published property OnMouseEnter;

This item has no description.

Published property OnMouseLeave;

This item has no description.

Published property OnMouseWheel;

This item has no description.

Published property OnKeyUp;

This item has no description.

Published property OnKeyDown;

This item has no description.

Published property OnDialogKey : TDialogKeyEvent read FOnDialogKey write FOnDialogKey;

Event triggered before the DialogKey.


Generated by PasDoc 0.16.0-snapshot.