forked from cefsharp/CefSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPopupFeatures.h
101 lines (82 loc) · 2.39 KB
/
PopupFeatures.h
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
// Copyright © 2010-2017 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.
#pragma once
#include "Stdafx.h"
namespace CefSharp
{
/// <summary>
/// Class representing popup window features.
/// </summary>
public ref class PopupFeatures : IPopupFeatures
{
private:
const CefPopupFeatures* _popupFeatures;
public:
PopupFeatures(const CefPopupFeatures* popupFeatures)
{
_popupFeatures = popupFeatures;
}
!PopupFeatures()
{
_popupFeatures = NULL;
}
~PopupFeatures()
{
this->!PopupFeatures();
}
virtual property int X
{
int get() { return _popupFeatures->x; }
}
virtual property int XSet
{
int get() { return _popupFeatures->xSet; }
}
virtual property int Y
{
int get() { return _popupFeatures->y; }
}
virtual property int YSet
{
int get() { return _popupFeatures->ySet; }
}
virtual property int Width
{
int get() { return _popupFeatures->width; }
}
virtual property int WidthSet
{
int get() { return _popupFeatures->width; }
}
virtual property int Height
{
int get() { return _popupFeatures->height; }
}
virtual property int HeightSet
{
int get() { return _popupFeatures->heightSet; }
}
virtual property bool MenuBarVisible
{
bool get() { return _popupFeatures->menuBarVisible == 1; }
}
virtual property bool StatusBarVisible
{
bool get() { return _popupFeatures->statusBarVisible == 1; }
}
virtual property bool ToolBarVisible
{
bool get() { return _popupFeatures->toolBarVisible == 1; }
}
virtual property bool ScrollbarsVisible
{
bool get() { return _popupFeatures->scrollbarsVisible == 1; }
}
/*property List<String^>^ AdditionalFeatures
{
List<String^>^ get() { return StringUtils::ToClr(_popupFeatures->additionalFeatures); }
void set(List<String^>^ value) { _popupFeatures->dialog = value; }
}*/
};
}