nui 1.0.2 release
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / Radian.cs
1 //------------------------------------------------------------------------------\r
2 // <auto-generated />\r
3 //\r
4 // This file was automatically generated by SWIG (http://www.swig.org).\r
5 // Version 3.0.9\r
6 //\r
7 // Do not make changes to this file unless you know what you are doing--modify\r
8 // the SWIG interface file instead.\r
9 //------------------------------------------------------------------------------\r
10 \r
11 namespace Tizen.NUI\r
12 {\r
13 \r
14     public class Radian : global::System.IDisposable\r
15     {\r
16         private global::System.Runtime.InteropServices.HandleRef swigCPtr;\r
17         protected bool swigCMemOwn;\r
18 \r
19         internal Radian(global::System.IntPtr cPtr, bool cMemoryOwn)\r
20         {\r
21             swigCMemOwn = cMemoryOwn;\r
22             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);\r
23         }\r
24 \r
25         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Radian obj)\r
26         {\r
27             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;\r
28         }\r
29 \r
30         ~Radian()\r
31         {\r
32             DisposeQueue.Instance.Add(this);\r
33         }\r
34 \r
35         public virtual void Dispose()\r
36         {\r
37             if (!Stage.IsInstalled())\r
38             {\r
39                 DisposeQueue.Instance.Add(this);\r
40                 return;\r
41             }\r
42 \r
43             lock (this)\r
44             {\r
45                 if (swigCPtr.Handle != global::System.IntPtr.Zero)\r
46                 {\r
47                     if (swigCMemOwn)\r
48                     {\r
49                         swigCMemOwn = false;\r
50                         NDalicPINVOKE.delete_Radian(swigCPtr);\r
51                     }\r
52                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);\r
53                 }\r
54                 global::System.GC.SuppressFinalize(this);\r
55             }\r
56         }\r
57 \r
58 \r
59         public Radian() : this(NDalicPINVOKE.new_Radian__SWIG_0(), true)\r
60         {\r
61             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
62         }\r
63 \r
64         public Radian(float value) : this(NDalicPINVOKE.new_Radian__SWIG_1(value), true)\r
65         {\r
66             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
67         }\r
68 \r
69         public Radian(Degree degree) : this(NDalicPINVOKE.new_Radian__SWIG_2(Degree.getCPtr(degree)), true)\r
70         {\r
71             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
72         }\r
73 \r
74         public Radian Assign(float value)\r
75         {\r
76             Radian ret = new Radian(NDalicPINVOKE.Radian_Assign__SWIG_0(swigCPtr, value), false);\r
77             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
78             return ret;\r
79         }\r
80 \r
81         public Radian Assign(Degree degree)\r
82         {\r
83             Radian ret = new Radian(NDalicPINVOKE.Radian_Assign__SWIG_1(swigCPtr, Degree.getCPtr(degree)), false);\r
84             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
85             return ret;\r
86         }\r
87 \r
88         public float ConvertToFloat()\r
89         {\r
90             float ret = NDalicPINVOKE.Radian_ConvertToFloat(swigCPtr);\r
91             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
92             return ret;\r
93         }\r
94 \r
95         public float radian\r
96         {\r
97             set\r
98             {\r
99                 NDalicPINVOKE.Radian_radian_set(swigCPtr, value);\r
100                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
101             }\r
102             get\r
103             {\r
104                 float ret = NDalicPINVOKE.Radian_radian_get(swigCPtr);\r
105                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
106                 return ret;\r
107             }\r
108         }\r
109 \r
110     }\r
111 \r
112 }\r