况洋洋
2025-07-04 0d247bd2a17e0f99f3609774a1ce54ae00857997
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
// Copyright © 2016 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
{
    namespace Core
    {
        /// <summary>
        /// Class representing popup window features.
        /// </summary>
        /// <exclude />
        [System::ComponentModel::EditorBrowsableAttribute(System::ComponentModel::EditorBrowsableState::Never)]
        public ref class PopupFeatures : IPopupFeatures
        {
        private:
            const CefPopupFeatures* _popupFeatures;
 
        internal:
            /// <summary>
            /// Constructor.
            /// </summary>
            /// <param name="popupFeatures">The popup features.</param>
            PopupFeatures(const CefPopupFeatures* popupFeatures)
            {
                _popupFeatures = popupFeatures;
            }
 
        public:
            !PopupFeatures()
            {
                _popupFeatures = nullptr;
            }
 
            ~PopupFeatures()
            {
                this->!PopupFeatures();
            }
 
            virtual property System::Nullable<int> X
            {
                System::Nullable<int> get() { return _popupFeatures->xSet ? _popupFeatures->x : Nullable<int>(); }
            }
 
            virtual property System::Nullable<int> Y
            {
                System::Nullable<int> get() { return _popupFeatures->ySet ? _popupFeatures->y : Nullable<int>(); }
            }
 
            virtual property System::Nullable<int> Width
            {
                System::Nullable<int> get() { return _popupFeatures->widthSet ? _popupFeatures->width : Nullable<int>(); }
            }
 
            virtual property System::Nullable<int> Height
            {
                System::Nullable<int> get() { return _popupFeatures->heightSet ? _popupFeatures->height : Nullable<int>(); }
            }
 
            virtual property bool IsPopup
            {
                bool get() { return _popupFeatures->isPopup == 1; }
            }
        };
    }
}