summaryrefslogtreecommitdiff
path: root/winrt/mupdf_cpp/RectList.h
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2013-06-19 15:29:44 +0200
committerTor Andersson <tor.andersson@artifex.com>2013-06-20 16:45:35 +0200
commit0a927854a10e1e6b9770a81e2e1d9f3093631757 (patch)
tree3d65d820d9fdba2d0d394d99c36290c851b78ca0 /winrt/mupdf_cpp/RectList.h
parent1ae8f19179c5f0f8c6352b3c7855465325d5449a (diff)
downloadmupdf-0a927854a10e1e6b9770a81e2e1d9f3093631757.tar.xz
Rearrange source files.
Diffstat (limited to 'winrt/mupdf_cpp/RectList.h')
-rw-r--r--winrt/mupdf_cpp/RectList.h153
1 files changed, 0 insertions, 153 deletions
diff --git a/winrt/mupdf_cpp/RectList.h b/winrt/mupdf_cpp/RectList.h
deleted file mode 100644
index 999fe3d2..00000000
--- a/winrt/mupdf_cpp/RectList.h
+++ /dev/null
@@ -1,153 +0,0 @@
-#pragma once
-
-/* WinRT RectList class for binding a collection of rects to the xaml ui */
-using namespace Windows::UI::Xaml::Media::Imaging;
-using namespace Windows::UI::Xaml::Controls;
-using namespace Platform; /* For String */
-
-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 height;
- int width;
- int x;
- int y;
- String^ color;
- /* These are used to store the link infomation */
- int type;
- int pagenum;
- Windows::Foundation::Uri ^uri;
- String^ index; // For identify which rectangle was tapped
- public:
- RectList(void);
-
- property String^ Index
- {
- String^ get()
- {
- return ((String^) index);
- }
-
- void set(String^ value)
- {
- index = value;
- }
- }
-
- property String^ Color
- {
- String^ get()
- {
- return (color);
- }
-
- void set(String^ value)
- {
- color = value;
- }
- }
-
- 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;
- }
-
- void set(int value)
- {
- if (value < 0)
- {
- throw ref new Platform::InvalidArgumentException();
- }
- width = 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;
- }
- }
-
- property int Type
- {
- int get()
- {
- return type;
- }
-
- void set(int value)
- {
- type = value;
- }
- }
-
- property int PageNum
- {
- int get()
- {
- return pagenum;
- }
-
- void set(int value)
- {
- pagenum = value;
- }
- }
-
- property Windows::Foundation::Uri^ Urilink
- {
- Windows::Foundation::Uri^ get()
- {
- return uri;
- }
-
- void set(Windows::Foundation::Uri^ value)
- {
- uri = value;
- }
- }
- };
-}