Merge "C# CustomView Implementation (C++ wrappers, manual bindings, C# wrappers)...
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / automatic / csharp / Uint16Pair.cs
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.9
6 //
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
10
11 namespace Dali {
12
13 public class Uint16Pair : global::System.IDisposable {
14   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15   protected bool swigCMemOwn;
16
17   internal Uint16Pair(global::System.IntPtr cPtr, bool cMemoryOwn) {
18     swigCMemOwn = cMemoryOwn;
19     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
20   }
21
22   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Uint16Pair obj) {
23     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24   }
25
26   ~Uint16Pair() {
27     Dispose();
28   }
29
30   public virtual void Dispose() {
31     lock(this) {
32       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33         if (swigCMemOwn) {
34           swigCMemOwn = false;
35           NDalicPINVOKE.delete_Uint16Pair(swigCPtr);
36         }
37         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38       }
39       global::System.GC.SuppressFinalize(this);
40     }
41   }
42
43   public static bool operator<(Uint16Pair arg1, Uint16Pair arg2) {
44     return arg1.LessThan(arg2);
45   }
46
47   public static bool operator>(Uint16Pair arg1, Uint16Pair arg2) {
48     return arg1.GreaterThan(arg2);
49   }
50
51   public Uint16Pair() : this(NDalicPINVOKE.new_Uint16Pair__SWIG_0(), true) {
52     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
53   }
54
55   public Uint16Pair(uint width, uint height) : this(NDalicPINVOKE.new_Uint16Pair__SWIG_1(width, height), true) {
56     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
57   }
58
59   public Uint16Pair(Uint16Pair rhs) : this(NDalicPINVOKE.new_Uint16Pair__SWIG_2(Uint16Pair.getCPtr(rhs)), true) {
60     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
61   }
62
63   public void SetWidth(ushort width) {
64     NDalicPINVOKE.Uint16Pair_SetWidth(swigCPtr, width);
65     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
66   }
67
68   public ushort GetWidth() {
69     ushort ret = NDalicPINVOKE.Uint16Pair_GetWidth(swigCPtr);
70     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
71     return ret;
72   }
73
74   public void SetHeight(ushort height) {
75     NDalicPINVOKE.Uint16Pair_SetHeight(swigCPtr, height);
76     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
77   }
78
79   public ushort GetHeight() {
80     ushort ret = NDalicPINVOKE.Uint16Pair_GetHeight(swigCPtr);
81     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
82     return ret;
83   }
84
85   public void SetX(ushort x) {
86     NDalicPINVOKE.Uint16Pair_SetX(swigCPtr, x);
87     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
88   }
89
90   public ushort GetX() {
91     ushort ret = NDalicPINVOKE.Uint16Pair_GetX(swigCPtr);
92     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
93     return ret;
94   }
95
96   public void SetY(ushort y) {
97     NDalicPINVOKE.Uint16Pair_SetY(swigCPtr, y);
98     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
99   }
100
101   public ushort GetY() {
102     ushort ret = NDalicPINVOKE.Uint16Pair_GetY(swigCPtr);
103     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
104     return ret;
105   }
106
107   public Uint16Pair Assign(Uint16Pair rhs) {
108     Uint16Pair ret = new Uint16Pair(NDalicPINVOKE.Uint16Pair_Assign(swigCPtr, Uint16Pair.getCPtr(rhs)), false);
109     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
110     return ret;
111   }
112
113   public bool EqualTo(Uint16Pair rhs) {
114     bool ret = NDalicPINVOKE.Uint16Pair_EqualTo(swigCPtr, Uint16Pair.getCPtr(rhs));
115     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
116     return ret;
117   }
118
119   public bool NotEqualTo(Uint16Pair rhs) {
120     bool ret = NDalicPINVOKE.Uint16Pair_NotEqualTo(swigCPtr, Uint16Pair.getCPtr(rhs));
121     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
122     return ret;
123   }
124
125   public bool LessThan(Uint16Pair rhs) {
126     bool ret = NDalicPINVOKE.Uint16Pair_LessThan(swigCPtr, Uint16Pair.getCPtr(rhs));
127     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
128     return ret;
129   }
130
131   public bool GreaterThan(Uint16Pair rhs) {
132     bool ret = NDalicPINVOKE.Uint16Pair_GreaterThan(swigCPtr, Uint16Pair.getCPtr(rhs));
133     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
134     return ret;
135   }
136
137 }
138
139 }