summaryrefslogtreecommitdiff
path: root/winrt/mupdf_cpp/RectList.h
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2013-05-08 16:59:01 -0700
committerRobin Watts <robin.watts@artifex.com>2013-05-16 19:25:53 +0100
commit165a3528f5a48ba9c4f30d18330875b6070ddf96 (patch)
tree1abceb81e34769b2523701622d24923d7350fd9b /winrt/mupdf_cpp/RectList.h
parent3824bf32f8595c2f037db14e133b798bfae65027 (diff)
downloadmupdf-165a3528f5a48ba9c4f30d18330875b6070ddf96.tar.xz
Support for going to the links.
Used tag attribute in rectangle object to store the index value into the collection of rectangles to get back the page number or uri.
Diffstat (limited to 'winrt/mupdf_cpp/RectList.h')
-rw-r--r--winrt/mupdf_cpp/RectList.h26
1 files changed, 18 insertions, 8 deletions
diff --git a/winrt/mupdf_cpp/RectList.h b/winrt/mupdf_cpp/RectList.h
index d138397a..d3f0527f 100644
--- a/winrt/mupdf_cpp/RectList.h
+++ b/winrt/mupdf_cpp/RectList.h
@@ -21,19 +21,16 @@ namespace mupdf_cpp
int type;
int pagenum;
Windows::Foundation::Uri ^uri;
+ String^ index; // For identify which rectangle was tapped
public:
RectList(void);
- property int Height
+ property String^ Index
{
- int get() { return ((int) height); }
- void set(int value)
+ String^ get() { return ((String^) index); }
+ void set(String^ value)
{
- if (value < 0)
- {
- throw ref new Platform::InvalidArgumentException();
- }
- height = value;
+ index = value;
}
}
@@ -46,6 +43,19 @@ namespace mupdf_cpp
}
}
+ property int Height
+ {
+ int get() { return ((int) height); }
+ void set(int value)
+ {
+ if (value < 0)
+ {
+ throw ref new Platform::InvalidArgumentException();
+ }
+ height = value;
+ }
+ }
+
property int Width
{
int get() { return width; }