Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 80.1.4+g8927396+chromium-80.0.3987.149
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(default)
Class CefDisplay

CefBaseRefCounted
   |
   +--CefDisplay

   in cef_display.h

class CefDisplay
extends CefBaseRefCounted

This class 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 pixels (DIP) unless otherwise indicated. Methods must be called on the browser process UI thread unless otherwise indicated.


Method Summary
 virtual void ConvertPointFromPixels( CefPoint& point )= 0
          Convert |point| from pixel coordinates to density independent pixels (DIP) using this Display's device scale factor.
 virtual void ConvertPointToPixels( CefPoint& point )= 0
          Convert |point| from density independent pixels (DIP) to pixel coordinates using this Display's device scale factor.
 static void GetAllDisplays( std::vector< CefRefPtr< CefDisplay > >& displays )
          Returns all Displays.
 virtual CefRect GetBounds()= 0
          Returns this Display's bounds.
 virtual float GetDeviceScaleFactor()= 0
          Returns this Display's device pixel scale factor.
 static size_t GetDisplayCount()
          Returns the total number of Displays.
 static CefRefPtr< CefDisplay > GetDisplayMatchingBounds( const CefRect& bounds, bool input_pixel_coords )
          Returns the Display that most closely intersects |bounds|.
 static CefRefPtr< CefDisplay > GetDisplayNearestPoint( const CefPoint& point, bool input_pixel_coords )
          Returns the Display nearest |point|.
 virtual int64 GetID()= 0
          Returns the unique identifier for this Display.
 static CefRefPtr< CefDisplay > GetPrimaryDisplay()
          Returns the primary Display.
 virtual int GetRotation()= 0
          Returns this Display's rotation in degrees.
 virtual CefRect GetWorkArea()= 0
          Returns this Display's work area.
   
Methods inherited from class CefBaseRefCounted
AddRef, Release, HasOneRef, HasAtLeastOneRef
 

Method Detail

ConvertPointFromPixels

public virtual void ConvertPointFromPixels( CefPoint& point )= 0;
Convert |point| from pixel coordinates to density independent pixels (DIP) using this Display's device scale factor.

ConvertPointToPixels

public virtual void ConvertPointToPixels( CefPoint& point )= 0;
Convert |point| from density independent pixels (DIP) to pixel coordinates using this Display's device scale factor.

GetAllDisplays

public static void GetAllDisplays( std::vector< CefRefPtr< CefDisplay > >& displays );
Returns all Displays. Mirrored displays are excluded; this method is intended to return distinct, usable displays.

GetBounds

public virtual CefRect GetBounds()= 0;
Returns this Display's bounds. This is the full size of the display.

GetDeviceScaleFactor

public virtual float GetDeviceScaleFactor()= 0;
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.

GetDisplayCount

public static size_t GetDisplayCount();
Returns the total number of Displays. Mirrored displays are excluded; this method is intended to return the number of distinct, usable displays.

GetDisplayMatchingBounds

public static CefRefPtr< CefDisplay > GetDisplayMatchingBounds( const CefRect& bounds, bool input_pixel_coords );
Returns the Display that most closely intersects |bounds|. Set |input_pixel_coords| to true if |bounds| is in pixel coordinates instead of density independent pixels (DIP).

GetDisplayNearestPoint

public static CefRefPtr< CefDisplay > GetDisplayNearestPoint( const CefPoint& point, bool input_pixel_coords );
Returns the Display nearest |point|. Set |input_pixel_coords| to true if |point| is in pixel coordinates instead of density independent pixels (DIP).

GetID

public virtual int64 GetID()= 0;
Returns the unique identifier for this Display.

GetPrimaryDisplay

public static CefRefPtr< CefDisplay > GetPrimaryDisplay();
Returns the primary Display.

GetRotation

public virtual int GetRotation()= 0;
Returns this Display's rotation in degrees.

GetWorkArea

public virtual CefRect GetWorkArea()= 0;
Returns this Display's work area. This excludes areas of the display that are occupied for window manager toolbars, etc.

 Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 80.1.4+g8927396+chromium-80.0.3987.149
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

Chromium Embedded Framework (CEF) Copyright © 2016 Marshall A. Greenblatt