summaryrefslogtreecommitdiff
path: root/winrt/mupdf_cpp/RectList.h
blob: eb4532aa2d8c2de8d1ba468e41b18784260b7854 (plain)
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
#pragma once


/* Used for binding to the xaml in the scroll view. */
using namespace Windows::UI::Xaml::Media::Imaging;
using namespace Windows::UI::Xaml::Controls;


        
namespace mupdf_cpp
{
    [Windows::UI::Xaml::Data::Bindable] // in c++, adding this attribute to ref classes enables data binding for more info search for 'Bindable' on the page http://go.microsoft.com/fwlink/?LinkId=254639 

    public ref class RectList sealed
    {
    private:
        int heightr;
        int widthr;
        int x;
        int y; 
    public:
        RectList(void);

        property int HeightR
        {
            int get() { return ((int) heightr); }
            void set(int value)
            {
                if (value < 0)
                { 
                    throw ref new Platform::InvalidArgumentException(); 
                }
                heightr = value;
            }
        }

        property int WidthR
        {
            int get() { return widthr; }
            void set(int value)
            {
                if (value < 0) 
                { 
                    throw ref new Platform::InvalidArgumentException(); 
                }
                widthr = value;
            }
        }

        property int X
        {
            int get() { return x; }
            void set(int value)
            {
                x = value;
            }
        }

        property int Y
        {
            int get() { return y; }
            void set(int value)
            {
                y = value;
            }
        }
    };
}