Usage of CustomeView for ScrollContainer and code refactoring accordingly. Also added...
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / automatic / csharp / CustomActorImpl.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 CustomActorImpl : RefObject {
14   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15
16   internal CustomActorImpl(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.CustomActorImpl_SWIGUpcast(cPtr), cMemoryOwn) {
17     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
18   }
19
20   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(CustomActorImpl obj) {
21     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
22   }
23
24   ~CustomActorImpl() {
25     Dispose();
26   }
27
28   public override void Dispose() {
29     lock(this) {
30       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
31         if (swigCMemOwn) {
32           swigCMemOwn = false;
33           NDalicPINVOKE.delete_CustomActorImpl(swigCPtr);
34         }
35         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
36       }
37       global::System.GC.SuppressFinalize(this);
38       base.Dispose();
39     }
40   }
41
42   public CustomActor Self() {
43     CustomActor ret = new CustomActor(NDalicPINVOKE.CustomActorImpl_Self(swigCPtr), true);
44     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
45     return ret;
46   }
47
48   public virtual void OnStageConnection(int depth) {
49     NDalicPINVOKE.CustomActorImpl_OnStageConnection(swigCPtr, depth);
50     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
51   }
52
53   public virtual void OnStageDisconnection() {
54     NDalicPINVOKE.CustomActorImpl_OnStageDisconnection(swigCPtr);
55     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
56   }
57
58   public virtual void OnChildAdd(Actor child) {
59     NDalicPINVOKE.CustomActorImpl_OnChildAdd(swigCPtr, Actor.getCPtr(child));
60     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
61   }
62
63   public virtual void OnChildRemove(Actor child) {
64     NDalicPINVOKE.CustomActorImpl_OnChildRemove(swigCPtr, Actor.getCPtr(child));
65     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
66   }
67
68   public virtual void OnPropertySet(int index, Property.Value propertyValue) {
69     NDalicPINVOKE.CustomActorImpl_OnPropertySet(swigCPtr, index, Property.Value.getCPtr(propertyValue));
70     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
71   }
72
73   public virtual void OnSizeSet(Vector3 targetSize) {
74     NDalicPINVOKE.CustomActorImpl_OnSizeSet(swigCPtr, Vector3.getCPtr(targetSize));
75     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
76   }
77
78   public virtual void OnSizeAnimation(Animation animation, Vector3 targetSize) {
79     NDalicPINVOKE.CustomActorImpl_OnSizeAnimation(swigCPtr, Animation.getCPtr(animation), Vector3.getCPtr(targetSize));
80     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
81   }
82
83   public virtual bool OnTouchEvent(TouchEvent arg0) {
84     bool ret = NDalicPINVOKE.CustomActorImpl_OnTouchEvent(swigCPtr, TouchEvent.getCPtr(arg0));
85     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
86     return ret;
87   }
88
89   public virtual bool OnHoverEvent(HoverEvent arg0) {
90     bool ret = NDalicPINVOKE.CustomActorImpl_OnHoverEvent(swigCPtr, HoverEvent.getCPtr(arg0));
91     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
92     return ret;
93   }
94
95   public virtual bool OnKeyEvent(KeyEvent arg0) {
96     bool ret = NDalicPINVOKE.CustomActorImpl_OnKeyEvent(swigCPtr, KeyEvent.getCPtr(arg0));
97     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
98     return ret;
99   }
100
101   public virtual bool OnWheelEvent(WheelEvent arg0) {
102     bool ret = NDalicPINVOKE.CustomActorImpl_OnWheelEvent(swigCPtr, WheelEvent.getCPtr(arg0));
103     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
104     return ret;
105   }
106
107   public virtual void OnRelayout(Vector2 size, RelayoutContainer container) {
108     NDalicPINVOKE.CustomActorImpl_OnRelayout(swigCPtr, Vector2.getCPtr(size), RelayoutContainer.getCPtr(container));
109     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
110   }
111
112   public virtual void OnSetResizePolicy(ResizePolicyType policy, DimensionType dimension) {
113     NDalicPINVOKE.CustomActorImpl_OnSetResizePolicy(swigCPtr, (int)policy, (int)dimension);
114     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
115   }
116
117   public virtual Vector3 GetNaturalSize() {
118     Vector3 ret = new Vector3(NDalicPINVOKE.CustomActorImpl_GetNaturalSize(swigCPtr), true);
119     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
120     return ret;
121   }
122
123   public virtual float CalculateChildSize(Actor child, DimensionType dimension) {
124     float ret = NDalicPINVOKE.CustomActorImpl_CalculateChildSize(swigCPtr, Actor.getCPtr(child), (int)dimension);
125     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
126     return ret;
127   }
128
129   public virtual float GetHeightForWidth(float width) {
130     float ret = NDalicPINVOKE.CustomActorImpl_GetHeightForWidth(swigCPtr, width);
131     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
132     return ret;
133   }
134
135   public virtual float GetWidthForHeight(float height) {
136     float ret = NDalicPINVOKE.CustomActorImpl_GetWidthForHeight(swigCPtr, height);
137     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
138     return ret;
139   }
140
141   public virtual bool RelayoutDependentOnChildren(DimensionType dimension) {
142     bool ret = NDalicPINVOKE.CustomActorImpl_RelayoutDependentOnChildren__SWIG_0(swigCPtr, (int)dimension);
143     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
144     return ret;
145   }
146
147   public virtual bool RelayoutDependentOnChildren() {
148     bool ret = NDalicPINVOKE.CustomActorImpl_RelayoutDependentOnChildren__SWIG_1(swigCPtr);
149     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
150     return ret;
151   }
152
153   public virtual void OnCalculateRelayoutSize(DimensionType dimension) {
154     NDalicPINVOKE.CustomActorImpl_OnCalculateRelayoutSize(swigCPtr, (int)dimension);
155     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
156   }
157
158   public virtual void OnLayoutNegotiated(float size, DimensionType dimension) {
159     NDalicPINVOKE.CustomActorImpl_OnLayoutNegotiated(swigCPtr, size, (int)dimension);
160     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
161   }
162
163   public bool RequiresTouchEvents() {
164     bool ret = NDalicPINVOKE.CustomActorImpl_RequiresTouchEvents(swigCPtr);
165     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
166     return ret;
167   }
168
169   public bool RequiresHoverEvents() {
170     bool ret = NDalicPINVOKE.CustomActorImpl_RequiresHoverEvents(swigCPtr);
171     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
172     return ret;
173   }
174
175   public bool RequiresWheelEvents() {
176     bool ret = NDalicPINVOKE.CustomActorImpl_RequiresWheelEvents(swigCPtr);
177     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
178     return ret;
179   }
180
181   public bool IsRelayoutEnabled() {
182     bool ret = NDalicPINVOKE.CustomActorImpl_IsRelayoutEnabled(swigCPtr);
183     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
184     return ret;
185   }
186
187 }
188
189 }