summaryrefslogtreecommitdiff
path: root/platform/winrt/mupdfwinrt/Links.h
blob: 39ebfc0b48f5dd40a95a7ea67dfb7ad82a00bfd1 (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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#pragma once

#include "utils.h"
#include "status.h"

using namespace Windows::Foundation;

namespace mupdfwinrt
{
	public ref class Links sealed
	{
	private:
		int type;
		Point upper_left;
		Point lower_right;
		Windows::Foundation::Uri ^uri;
		int page_num;
	public:
		Links(void);

		property int Type
		{
			int get()
			{
				return (type);
			}

			void set(int value)
			{
				if (value > NOT_SET)
					throw ref new Platform::InvalidArgumentException();
				type = value;
			}
		}

		property Point UpperLeft
		{
			Point get()
			{
				return upper_left;
			}

			void set(Point value)
			{
				upper_left = value;
			}
		}

		property Point LowerRight
		{
			Point get()
			{
				return lower_right;
			}

			void set(Point value)
			{
				lower_right = value;
			}
		}

		property int PageNum
		{
			int get()
			{
				return page_num;
			}

			void set(int value)
			{
				page_num = value;
			}
		}

		property Windows::Foundation::Uri^ Uri
		{
			Windows::Foundation::Uri^ get()
			{
				return uri;
			}

			void set(Windows::Foundation::Uri^ value)
			{
				uri = value;
			}
		}
	};
}