Merge "PreFocusChange disconnect error issue" into tizen
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / Degree.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     /// <summary>
15     /// An angle in degrees.
16     /// This reduces ambiguity when using methods which accept angles in degrees or radians.
17     /// </summary>
18     public class Degree : global::System.IDisposable
19     {
20         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
21         protected bool swigCMemOwn;
22
23         internal Degree(global::System.IntPtr cPtr, bool cMemoryOwn)
24         {
25             swigCMemOwn = cMemoryOwn;
26             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
27         }
28
29         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Degree obj)
30         {
31             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
32         }
33
34         ~Degree()
35         {
36             DisposeQueue.Instance.Add(this);
37         }
38
39         public virtual void Dispose()
40         {
41             if (!Stage.IsInstalled())
42             {
43                 DisposeQueue.Instance.Add(this);
44                 return;
45             }
46
47             lock (this)
48             {
49                 if (swigCPtr.Handle != global::System.IntPtr.Zero)
50                 {
51                     if (swigCMemOwn)
52                     {
53                         swigCMemOwn = false;
54                         NDalicPINVOKE.delete_Degree(swigCPtr);
55                     }
56                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
57                 }
58                 global::System.GC.SuppressFinalize(this);
59             }
60         }
61
62
63         /// <summary>
64         /// Constructor.
65         /// </summary>
66         public Degree() : this(NDalicPINVOKE.new_Degree__SWIG_0(), true)
67         {
68             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
69         }
70
71         /// <summary>
72         /// Creates an angle in degrees.
73         /// </summary>
74         /// <param name="value">The initial value in degrees</param>
75         public Degree(float value) : this(NDalicPINVOKE.new_Degree__SWIG_1(value), true)
76         {
77             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
78         }
79
80         /// <summary>
81         /// Creates an angle in degrees from a Radian.
82         /// </summary>
83         /// <param name="value">The initial value in Radians</param>
84         public Degree(Radian value) : this(NDalicPINVOKE.new_Degree__SWIG_2(Radian.getCPtr(value)), true)
85         {
86             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
87         }
88
89         public float degree
90         {
91             set
92             {
93                 NDalicPINVOKE.Degree_degree_set(swigCPtr, value);
94                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
95             }
96             get
97             {
98                 float ret = NDalicPINVOKE.Degree_degree_get(swigCPtr);
99                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
100                 return ret;
101             }
102         }
103
104     }
105
106 }