summaryrefslogtreecommitdiff
path: root/winrt/mupdf_cpp/RectList.h
diff options
context:
space:
mode:
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; }