-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
/
WindowInfo.cs
160 lines (136 loc) · 4.27 KB
/
WindowInfo.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
// Copyright © 2020 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
//NOTE:Classes in the CefSharp.Core namespace have been hidden from intellisnse so users don't use them directly
using System;
using CefSharp.Enums;
using CefSharp.Structs;
namespace CefSharp
{
/// <inheritdoc/>
public class WindowInfo : IWindowInfo
{
private CefSharp.Core.WindowInfo windowInfo = new CefSharp.Core.WindowInfo();
/// <inheritdoc/>
public int X
{
get { return windowInfo.X; }
set { windowInfo.X = value; }
}
/// <inheritdoc/>
public int Y
{
get { return windowInfo.Y; }
set { windowInfo.Y = value; }
}
/// <inheritdoc/>
public int Width
{
get { return windowInfo.Width; }
set { windowInfo.Width = value; }
}
/// <inheritdoc/>
public int Height
{
get { return windowInfo.Height; }
set { windowInfo.Height = value; }
}
/// <inheritdoc/>
public uint Style
{
get { return windowInfo.Style; }
set { windowInfo.Style = value; }
}
/// <inheritdoc/>
public uint ExStyle
{
get { return windowInfo.ExStyle; }
set { windowInfo.ExStyle = value; }
}
/// <inheritdoc/>
public IntPtr ParentWindowHandle
{
get { return windowInfo.ParentWindowHandle; }
set { windowInfo.ParentWindowHandle = value; }
}
/// <inheritdoc/>
public bool WindowlessRenderingEnabled
{
get { return windowInfo.WindowlessRenderingEnabled; }
set { windowInfo.WindowlessRenderingEnabled = value; }
}
/// <inheritdoc/>
public bool SharedTextureEnabled
{
get { return windowInfo.SharedTextureEnabled; }
set { windowInfo.SharedTextureEnabled = value; }
}
/// <inheritdoc/>
public bool ExternalBeginFrameEnabled
{
get { return windowInfo.ExternalBeginFrameEnabled; }
set { windowInfo.ExternalBeginFrameEnabled = value; }
}
/// <inheritdoc/>
public IntPtr WindowHandle
{
get { return windowInfo.WindowHandle; }
set { windowInfo.WindowHandle = value; }
}
/// <inheritdoc/>
public string WindowName
{
get { return windowInfo.WindowName; }
set { windowInfo.WindowName = value; }
}
/// <inheritdoc/>
public CefRuntimeStyle RuntimeStyle
{
get { return windowInfo.RuntimeStyle; }
set { windowInfo.RuntimeStyle = value; }
}
/// <inheritdoc/>
public void Dispose()
{
windowInfo.Dispose();
}
/// <inheritdoc/>
public void SetAsChild(IntPtr parentHandle)
{
windowInfo.SetAsChild(parentHandle);
}
/// <inheritdoc/>
public void SetAsChild(IntPtr parentHandle, Rect windowBounds)
{
windowInfo.SetAsChild(parentHandle, windowBounds);
}
/// <inheritdoc/>
public void SetAsChild(IntPtr parentHandle, int left, int top, int right, int bottom)
{
windowInfo.SetAsChild(parentHandle, left, top, right, bottom);
}
/// <inheritdoc/>
public void SetAsPopup(IntPtr parentHandle, string windowName)
{
windowInfo.SetAsPopup(parentHandle, windowName);
}
/// <inheritdoc/>
public void SetAsWindowless(IntPtr parentHandle)
{
windowInfo.SetAsWindowless(parentHandle);
}
/// <summary>
/// Create a new <see cref="IWindowInfo"/> instance
/// </summary>
/// <returns>WindowInfo</returns>
public static IWindowInfo Create()
{
return new CefSharp.Core.WindowInfo();
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public IWindowInfo UnWrap()
{
return windowInfo;
}
}
}