|
4 | 4 |
|
5 | 5 | namespace CefSharp.Structs |
6 | 6 | { |
| 7 | + /// <summary> |
| 8 | + /// Class representing the virtual screen information for use when window |
| 9 | + /// rendering is disabled. |
| 10 | + /// </summary> |
| 11 | + /// <remarks> |
| 12 | + /// See also https://cs.chromium.org/chromium/src/content/public/common/screen_info.h?q=content::ScreenInfo&sq=package:chromium&g=0&l=19 |
| 13 | + /// </remarks> |
7 | 14 | public struct ScreenInfo |
8 | 15 | { |
9 | | - public float ScaleFactor { get; private set; } |
10 | | - |
11 | | - public ScreenInfo(float scaleFactor) : this() |
12 | | - { |
13 | | - ScaleFactor = scaleFactor; |
14 | | - } |
15 | | - |
16 | 16 | /// <summary> |
17 | | - /// Height of the monitor nearest to the window hosting the browser |
| 17 | + /// Device scale factor. Specifies the ratio between physical and logical pixels. |
18 | 18 | /// </summary> |
19 | | - public int Height { get; set; } |
20 | | - |
| 19 | + public float DeviceScaleFactor { get; set; } |
21 | 20 | /// <summary> |
22 | | - /// Width of the monitor nearest to the window hosting the browser |
| 21 | + /// The screen depth in bits per pixel. |
23 | 22 | /// </summary> |
24 | | - public int Width { get; set; } |
25 | | - |
| 23 | + public int Depth { get; set; } |
26 | 24 | /// <summary> |
27 | | - /// Available Left location of the monitor nearest to the window hosting the browser. iF toolbar is on the left - this would be a non-zero value |
| 25 | + /// The bits per color component. This assumes that the colors are balanced equally. |
28 | 26 | /// </summary> |
29 | | - public int AvailableLeft { get; set; } |
30 | | - |
| 27 | + public int DepthPerComponent { get; set; } |
31 | 28 | /// <summary> |
32 | | - /// Available Top location of the monitor nearest to the window hosting the browser. iF toolbar is on top - this would be a non-zero value |
| 29 | + /// This can be true for black and white printers. |
33 | 30 | /// </summary> |
34 | | - public int AvailableTop { get; set; } |
35 | | - |
| 31 | + public bool IsMonochrome { get; set; } |
36 | 32 | /// <summary> |
37 | | - /// Available Wdith of the monitor nearest to the window hosting the browser. iF toolbar is on the left or on the right - this would be different from the <see cref="Width">Width</see> property |
| 33 | + /// This is set from the rcMonitor member of MONITORINFOEX, to whit: |
| 34 | + /// "A RECT structure that specifies the display monitor rectangle, |
| 35 | + /// expressed in virtual-screen coordinates. Note that if the monitor |
| 36 | + /// is not the primary display monitor, some of the rectangle's |
| 37 | + /// coordinates may be negative values." |
| 38 | + /// The Rect and AvailableRect properties are used to determine the |
| 39 | + /// available surface for rendering popup views. |
38 | 40 | /// </summary> |
39 | | - public int AvailableWidth { get; set; } |
40 | | - |
| 41 | + public Rect? Rect { get; set; } |
41 | 42 | /// <summary> |
42 | | - /// Available Heiht of the monitor nearest to the window hosting the browser. iF toolbar is on top or on the bottom - this would be different from the <see cref="Height">Height</see> property |
| 43 | + /// This is set from the rcWork member of MONITORINFOEX, to whit: |
| 44 | + /// "A RECT structure that specifies the work area rectangle of the |
| 45 | + /// display monitor that can be used by applications, expressed in |
| 46 | + /// virtual-screen coordinates. Windows uses this rectangle to |
| 47 | + /// maximize an application on the monitor. The rest of the area in |
| 48 | + /// rcMonitor contains system windows such as the task bar and side |
| 49 | + /// bars. Note that if the monitor is not the primary display monitor, |
| 50 | + /// some of the rectangle's coordinates may be negative values". |
| 51 | + /// |
| 52 | + /// The Rect and AvailableRect properties are used to determine the |
| 53 | + /// available surface for rendering popup views. |
43 | 54 | /// </summary> |
44 | | - public int AvailableHeight { get; set; } |
| 55 | + public Rect? AvailableRect { get; set; } |
45 | 56 | } |
46 | 57 | } |
0 commit comments