1 //------------------------------------------------------------------------------
\r
2 // <auto-generated />
\r
4 // This file was automatically generated by SWIG (http://www.swig.org).
\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
14 public class Radian : global::System.IDisposable
\r
16 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
\r
17 protected bool swigCMemOwn;
\r
19 internal Radian(global::System.IntPtr cPtr, bool cMemoryOwn)
\r
21 swigCMemOwn = cMemoryOwn;
\r
22 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
\r
25 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Radian obj)
\r
27 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
\r
32 DisposeQueue.Instance.Add(this);
\r
35 public virtual void Dispose()
\r
37 if (!Stage.IsInstalled())
\r
39 DisposeQueue.Instance.Add(this);
\r
45 if (swigCPtr.Handle != global::System.IntPtr.Zero)
\r
49 swigCMemOwn = false;
\r
50 NDalicPINVOKE.delete_Radian(swigCPtr);
\r
52 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
\r
54 global::System.GC.SuppressFinalize(this);
\r
59 public Radian() : this(NDalicPINVOKE.new_Radian__SWIG_0(), true)
\r
61 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
64 public Radian(float value) : this(NDalicPINVOKE.new_Radian__SWIG_1(value), true)
\r
66 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
69 public Radian(Degree degree) : this(NDalicPINVOKE.new_Radian__SWIG_2(Degree.getCPtr(degree)), true)
\r
71 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
74 public Radian Assign(float value)
\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
81 public Radian Assign(Degree degree)
\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
88 public float ConvertToFloat()
\r
90 float ret = NDalicPINVOKE.Radian_ConvertToFloat(swigCPtr);
\r
91 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
99 NDalicPINVOKE.Radian_radian_set(swigCPtr, value);
\r
100 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
104 float ret = NDalicPINVOKE.Radian_radian_get(swigCPtr);
\r
105 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r