nui 0.2.30 release
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / Radian.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 Tizen.NUI
12 {
13
14     public class Radian : global::System.IDisposable
15     {
16         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
17         protected bool swigCMemOwn;
18
19         internal Radian(global::System.IntPtr cPtr, bool cMemoryOwn)
20         {
21             swigCMemOwn = cMemoryOwn;
22             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
23         }
24
25         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Radian obj)
26         {
27             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
28         }
29
30         ~Radian()
31         {
32             DisposeQueue.Instance.Add(this);
33         }
34
35         public virtual void Dispose()
36         {
37             if (!Stage.IsInstalled())
38             {
39                 DisposeQueue.Instance.Add(this);
40                 return;
41             }
42
43             lock (this)
44             {
45                 if (swigCPtr.Handle != global::System.IntPtr.Zero)
46                 {
47                     if (swigCMemOwn)
48                     {
49                         swigCMemOwn = false;
50                         NDalicPINVOKE.delete_Radian(swigCPtr);
51                     }
52                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
53                 }
54                 global::System.GC.SuppressFinalize(this);
55             }
56         }
57
58
59         public Radian() : this(NDalicPINVOKE.new_Radian__SWIG_0(), true)
60         {
61             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
62         }
63
64         public Radian(float value) : this(NDalicPINVOKE.new_Radian__SWIG_1(value), true)
65         {
66             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
67         }
68
69         public Radian(Degree degree) : this(NDalicPINVOKE.new_Radian__SWIG_2(Degree.getCPtr(degree)), true)
70         {
71             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
72         }
73
74         public Radian Assign(float value)
75         {
76             Radian ret = new Radian(NDalicPINVOKE.Radian_Assign__SWIG_0(swigCPtr, value), false);
77             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
78             return ret;
79         }
80
81         public Radian Assign(Degree degree)
82         {
83             Radian ret = new Radian(NDalicPINVOKE.Radian_Assign__SWIG_1(swigCPtr, Degree.getCPtr(degree)), false);
84             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
85             return ret;
86         }
87
88         public float ConvertToFloat()
89         {
90             float ret = NDalicPINVOKE.Radian_ConvertToFloat(swigCPtr);
91             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
92             return ret;
93         }
94
95         public float radian
96         {
97             set
98             {
99                 NDalicPINVOKE.Radian_radian_set(swigCPtr, value);
100                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
101             }
102             get
103             {
104                 float ret = NDalicPINVOKE.Radian_radian_get(swigCPtr);
105                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
106                 return ret;
107             }
108         }
109
110     }
111
112 }