summaryrefslogtreecommitdiff
path: root/winrt/mupdfwinrt/Links.h
diff options
context:
space:
mode:
Diffstat (limited to 'winrt/mupdfwinrt/Links.h')
-rw-r--r--winrt/mupdfwinrt/Links.h127
1 files changed, 71 insertions, 56 deletions
diff --git a/winrt/mupdfwinrt/Links.h b/winrt/mupdfwinrt/Links.h
index 64072e35..00a08f73 100644
--- a/winrt/mupdfwinrt/Links.h
+++ b/winrt/mupdfwinrt/Links.h
@@ -6,67 +6,82 @@ 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);
+ 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 int Type
+ {
+ int get()
+ {
+ return (type);
+ }
- property Point UpperLeft
- {
- Point get() { return upper_left; }
- void set(Point value)
- {
- upper_left = value;
- }
- }
+ void set(int value)
+ {
+ if (value > NOT_SET)
+ throw ref new Platform::InvalidArgumentException();
+ type = value;
+ }
+ }
- property Point LowerRight
- {
- Point get() { return lower_right; }
- void set(Point value)
- {
- lower_right = value;
- }
- }
+ property Point UpperLeft
+ {
+ Point get()
+ {
+ return upper_left;
+ }
- property int PageNum
- {
- int get() { return page_num; }
- void set(int value)
- {
- page_num = value;
- }
- }
+ void set(Point value)
+ {
+ upper_left = value;
+ }
+ }
- property Windows::Foundation::Uri^ Uri
- {
- Windows::Foundation::Uri^ get() { return uri; }
- void set(Windows::Foundation::Uri^ value)
- {
- uri = 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;
+ }
+ }
+ };
+}