# Interface ICefDisplay

Description
Hierarchy
Methods
Properties

## Unit

uCEFInterfaces

## Declaration

`type ICefDisplay = interface(ICefBaseRefCounted)`

## Description

This interface typically, but not always, corresponds to a physical display connected to the system. A fake Display may exist on a headless system, or a Display may correspond to a remote, virtual display. All size and position values are in density independent pixel (DIP) coordinates unless otherwise indicated. Methods must be called on the browser process UI thread unless otherwise indicated.

For details on coordinate systems and usage see https://chromiumembedded.github.io/cef/general_usage#coordinate-systems

UNKNOWN

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

## Hierarchy

- IInterface
- ICefBaseRefCounted
- ICefDisplay

## Overview

### Methods

Public | `function GetID: int64;`
Public | `function GetDeviceScaleFactor: Single;`
Public | `procedure ConvertPointToPixels(var point: TCefPoint);`
Public | `procedure ConvertPointFromPixels(var point: TCefPoint);`
Public | `function GetBounds: TCefRect;`
Public | `function GetWorkArea: TCefRect;`
Public | `function GetRotation: Integer;`

### Properties

Public | `property ID : int64 read GetID;`
Public | `property DeviceScaleFactor : Single read GetDeviceScaleFactor;`
Public | `property Bounds : TCefRect read GetBounds;`
Public | `property WorkArea : TCefRect read GetWorkArea;`
Public | `property Rotation : Integer read GetRotation;`

## Description

### Methods

Public | `function GetID: int64;`
Returns the unique identifier for this Display. ###### Attributes GUID['{EC2D3606-DB4C-4894-8D38-B8F99E091965}']

Public | `function GetDeviceScaleFactor: Single;`
Returns this Display's device pixel scale factor. This specifies how much the UI should be scaled when the actual output has more pixels than standard displays (which is around 100~120dpi). The potential return values differ by platform. Windowed browsers with 1.0 zoom will have a JavaScript `window.devicePixelRatio` value matching the associated Display's get_device_scale_factor() value.

Public | `procedure ConvertPointToPixels(var point: TCefPoint);`
Convert |point| from DIP coordinates to pixel coordinates using this Display's device scale factor.

Public | `procedure ConvertPointFromPixels(var point: TCefPoint);`
Convert |point| from pixel coordinates to DIP coordinates using this Display's device scale factor.

Public | `function GetBounds: TCefRect;`
Returns this Display's bounds in DIP screen coordinates. This is the full size of the display.

Public | `function GetWorkArea: TCefRect;`
Returns this Display's work area in DIP screen coordinates. This excludes areas of the display that are occupied with window manager toolbars, etc.

Public | `function GetRotation: Integer;`
Returns this Display's rotation in degrees.

### Properties

Public | `property ID : int64 read GetID;`
Returns the unique identifier for this Display.

Public | `property DeviceScaleFactor : Single read GetDeviceScaleFactor;`
Returns this Display's device pixel scale factor. This specifies how much the UI should be scaled when the actual output has more pixels than standard displays (which is around 100~120dpi). The potential return values differ by platform.

Public | `property Bounds : TCefRect read GetBounds;`
Returns this Display's bounds in DIP screen coordinates. This is the full size of the display.

Public | `property WorkArea : TCefRect read GetWorkArea;`
Returns this Display's work area in DIP screen coordinates. This excludes areas of the display that are occupied with window manager toolbars, etc.

Public | `property Rotation : Integer read GetRotation;`
Returns this Display's rotation in degrees.

Generated by PasDoc 1.0.4.