summaryrefslogtreecommitdiff
path: root/platform/windows/gsview/RectList.cs
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2014-09-09 16:31:31 -0700
committerMichael Vrhel <michael.vrhel@artifex.com>2014-09-09 16:39:41 -0700
commit7ea99e3a8951e265d1437a77dcfee069de0edf76 (patch)
tree8e113fea67931064e2a9338d67b26aaabab27512 /platform/windows/gsview/RectList.cs
parent8a9519f2183b64fe220bcb1f6acedbe6acc190cd (diff)
downloadmupdf-7ea99e3a8951e265d1437a77dcfee069de0edf76.tar.xz
Rename of winrt to windows due to presence on gsview in this folder.
The contents of this folder will contain both winrt and gsview projects which are shared in a common visual studio 2013 solution.
Diffstat (limited to 'platform/windows/gsview/RectList.cs')
-rw-r--r--platform/windows/gsview/RectList.cs99
1 files changed, 99 insertions, 0 deletions
diff --git a/platform/windows/gsview/RectList.cs b/platform/windows/gsview/RectList.cs
new file mode 100644
index 00000000..ecbc013a
--- /dev/null
+++ b/platform/windows/gsview/RectList.cs
@@ -0,0 +1,99 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.ComponentModel;
+
+namespace gsview
+{
+ public enum Link_t
+ {
+ LINK_GOTO,
+ LINK_URI,
+ TEXTBOX,
+ NOT_SET
+ };
+
+ public class RectList : INotifyPropertyChanged
+ {
+ public String Character
+ {
+ get;
+ set;
+ }
+
+ public String Index
+ {
+ get;
+ set;
+ }
+
+ public String Color
+ {
+ get;
+ set;
+ }
+
+ public double Height
+ {
+ get;
+ set;
+ }
+
+ public double Width
+ {
+ get;
+ set;
+ }
+
+ public double X
+ {
+ get;
+ set;
+ }
+
+ public double Y
+ {
+ get;
+ set;
+ }
+
+ public double Scale
+ {
+ get;
+ set;
+ }
+
+ public Link_t Type
+ {
+ get;
+ set;
+ }
+
+ public int PageNum
+ {
+ get;
+ set;
+ }
+
+ public Uri Urilink
+ {
+ get;
+ set;
+ }
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ public void PageRefresh()
+ {
+ if (PropertyChanged != null)
+ {
+ PropertyChanged(this, new PropertyChangedEventArgs("X"));
+ PropertyChanged(this, new PropertyChangedEventArgs("Height"));
+ PropertyChanged(this, new PropertyChangedEventArgs("Width"));
+ PropertyChanged(this, new PropertyChangedEventArgs("Y"));
+ PropertyChanged(this, new PropertyChangedEventArgs("Color"));
+ }
+ }
+ }
+}