mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add screen pixel to screen DIP conversion methods.
On Windows these new CefDisplay methods convert between screen pixel coordinates and screen DIP coordinates. On macOS and Linux these methods just return a copy of the input coordinates.
This commit is contained in:
committed by
Marshall Greenblatt
parent
fa643b269e
commit
485f0b9caf
@@ -91,6 +91,20 @@ class CefDisplay : public CefBaseRefCounted {
|
||||
/*--cef(count_func=displays:GetDisplayCount)--*/
|
||||
static void GetAllDisplays(std::vector<CefRefPtr<CefDisplay>>& displays);
|
||||
|
||||
///
|
||||
/// Convert |point| from DIP screen coordinates to pixel screen coordinates.
|
||||
/// This method is only used on Windows.
|
||||
///
|
||||
/*--cef()--*/
|
||||
static CefPoint ConvertScreenPointToPixels(const CefPoint& point);
|
||||
|
||||
///
|
||||
/// Convert |point| from pixel screen coordinates to DIP screen coordinates.
|
||||
/// This method is only used on Windows.
|
||||
///
|
||||
/*--cef()--*/
|
||||
static CefPoint ConvertScreenPointFromPixels(const CefPoint& point);
|
||||
|
||||
///
|
||||
/// Returns the unique identifier for this Display.
|
||||
///
|
||||
|
Reference in New Issue
Block a user