使用soui开发的mbc,只支持windows版本
w1146869587
2022-01-24 479b1995ef435713c2cf4f0da8de3a6af6c30922
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _BROWSER_GEOMETRY_UTIL_H_
#define _BROWSER_GEOMETRY_UTIL_H_
#pragma once
 
#include "include/internal/cef_types_wrappers.h"
 
namespace browser {
 
// Convert |value| from logical coordinates to device coordinates.
int LogicalToDevice(int value, float device_scale_factor);
CefRect LogicalToDevice(const CefRect& value, float device_scale_factor);
 
// Convert |value| from device coordinates to logical coordinates.
int DeviceToLogical(int value, float device_scale_factor);
void DeviceToLogical(CefMouseEvent& value, float device_scale_factor);
 
}  // namespace browser
 
#endif  // _BROWSER_GEOMETRY_UTIL_H_