DALi C# Tizen GBS build:
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / automatic / csharp / Ruler.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 Ruler : RefObject {
14   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15
16   internal Ruler(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Ruler_SWIGUpcast(cPtr), cMemoryOwn) {
17     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
18   }
19
20   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Ruler obj) {
21     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
22   }
23
24   public override void Dispose() {
25     lock(this) {
26       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
27         if (swigCMemOwn) {
28           swigCMemOwn = false;
29           throw new global::System.MethodAccessException("C++ destructor does not have public access");
30         }
31         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
32       }
33       global::System.GC.SuppressFinalize(this);
34       base.Dispose();
35     }
36   }
37
38   public virtual float Snap(float x, float bias) {
39     float ret = NDalicPINVOKE.Ruler_Snap__SWIG_0(swigCPtr, x, bias);
40     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
41     return ret;
42   }
43
44   public virtual float Snap(float x) {
45     float ret = NDalicPINVOKE.Ruler_Snap__SWIG_1(swigCPtr, x);
46     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
47     return ret;
48   }
49
50   public virtual float GetPositionFromPage(uint page, out uint volume, bool wrap) {
51     float ret = NDalicPINVOKE.Ruler_GetPositionFromPage(swigCPtr, page, out volume, wrap);
52     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
53     return ret;
54   }
55
56   public virtual uint GetPageFromPosition(float position, bool wrap) {
57     uint ret = NDalicPINVOKE.Ruler_GetPageFromPosition(swigCPtr, position, wrap);
58     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
59     return ret;
60   }
61
62   public virtual uint GetTotalPages() {
63     uint ret = NDalicPINVOKE.Ruler_GetTotalPages(swigCPtr);
64     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
65     return ret;
66   }
67
68   public Ruler.RulerType GetType() {
69     Ruler.RulerType ret = (Ruler.RulerType)NDalicPINVOKE.Ruler_GetType(swigCPtr);
70     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
71     return ret;
72   }
73
74   public bool IsEnabled() {
75     bool ret = NDalicPINVOKE.Ruler_IsEnabled(swigCPtr);
76     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
77     return ret;
78   }
79
80   public void Enable() {
81     NDalicPINVOKE.Ruler_Enable(swigCPtr);
82     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
83   }
84
85   public void Disable() {
86     NDalicPINVOKE.Ruler_Disable(swigCPtr);
87     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
88   }
89
90   public void SetDomain(RulerDomain domain) {
91     NDalicPINVOKE.Ruler_SetDomain(swigCPtr, RulerDomain.getCPtr(domain));
92     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
93   }
94
95   public RulerDomain GetDomain() {
96     RulerDomain ret = new RulerDomain(NDalicPINVOKE.Ruler_GetDomain(swigCPtr), false);
97     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
98     return ret;
99   }
100
101   public void DisableDomain() {
102     NDalicPINVOKE.Ruler_DisableDomain(swigCPtr);
103     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
104   }
105
106   public float Clamp(float x, float length, float scale) {
107     float ret = NDalicPINVOKE.Ruler_Clamp__SWIG_0(swigCPtr, x, length, scale);
108     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
109     return ret;
110   }
111
112   public float Clamp(float x, float length) {
113     float ret = NDalicPINVOKE.Ruler_Clamp__SWIG_1(swigCPtr, x, length);
114     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
115     return ret;
116   }
117
118   public float Clamp(float x) {
119     float ret = NDalicPINVOKE.Ruler_Clamp__SWIG_2(swigCPtr, x);
120     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
121     return ret;
122   }
123
124   public float Clamp(float x, float length, float scale, SWIGTYPE_p_Dali__Toolkit__ClampState clamped) {
125     float ret = NDalicPINVOKE.Ruler_Clamp__SWIG_3(swigCPtr, x, length, scale, SWIGTYPE_p_Dali__Toolkit__ClampState.getCPtr(clamped));
126     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
127     return ret;
128   }
129
130   public float SnapAndClamp(float x, float bias, float length, float scale) {
131     float ret = NDalicPINVOKE.Ruler_SnapAndClamp__SWIG_0(swigCPtr, x, bias, length, scale);
132     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
133     return ret;
134   }
135
136   public float SnapAndClamp(float x, float bias, float length) {
137     float ret = NDalicPINVOKE.Ruler_SnapAndClamp__SWIG_1(swigCPtr, x, bias, length);
138     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
139     return ret;
140   }
141
142   public float SnapAndClamp(float x, float bias) {
143     float ret = NDalicPINVOKE.Ruler_SnapAndClamp__SWIG_2(swigCPtr, x, bias);
144     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
145     return ret;
146   }
147
148   public float SnapAndClamp(float x) {
149     float ret = NDalicPINVOKE.Ruler_SnapAndClamp__SWIG_3(swigCPtr, x);
150     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
151     return ret;
152   }
153
154   public float SnapAndClamp(float x, float bias, float length, float scale, SWIGTYPE_p_Dali__Toolkit__ClampState clamped) {
155     float ret = NDalicPINVOKE.Ruler_SnapAndClamp__SWIG_4(swigCPtr, x, bias, length, scale, SWIGTYPE_p_Dali__Toolkit__ClampState.getCPtr(clamped));
156     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
157     return ret;
158   }
159
160   public enum RulerType {
161     Fixed,
162     Free
163   }
164
165 }
166
167 }