manual nui merge 0.2.38
[platform/core/csapi/nui.git] / Tizen.NUI / src / internal / 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 Tizen.NUI {
12     using Tizen.NUI.BaseComponents;
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   public override void Dispose() {
25
26     lock(this) {
27       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
28         if (swigCMemOwn) {
29           swigCMemOwn = false;
30           throw new global::System.MethodAccessException("C++ destructor does not have public access");
31         }
32         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
33       }
34       global::System.GC.SuppressFinalize(this);
35       base.Dispose();
36     }
37   }
38
39   internal CustomActor Self() {
40     CustomActor ret = new CustomActor(NDalicPINVOKE.CustomActorImpl_Self(swigCPtr), true);
41     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
42     return ret;
43   }
44
45   public virtual void OnStageConnection(int depth) {
46     NDalicPINVOKE.CustomActorImpl_OnStageConnection(swigCPtr, depth);
47     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
48   }
49
50   public virtual void OnStageDisconnection() {
51     NDalicPINVOKE.CustomActorImpl_OnStageDisconnection(swigCPtr);
52     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
53   }
54
55   public virtual void OnChildAdd(View child) {
56     NDalicPINVOKE.CustomActorImpl_OnChildAdd(swigCPtr, View.getCPtr(child));
57     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
58   }
59
60   public virtual void OnChildRemove(View child) {
61     NDalicPINVOKE.CustomActorImpl_OnChildRemove(swigCPtr, View.getCPtr(child));
62     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
63   }
64
65   public virtual void OnPropertySet(int index, PropertyValue propertyValue) {
66     NDalicPINVOKE.CustomActorImpl_OnPropertySet(swigCPtr, index, PropertyValue.getCPtr(propertyValue));
67     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
68   }
69
70   public virtual void OnSizeSet(Vector3 targetSize) {
71     NDalicPINVOKE.CustomActorImpl_OnSizeSet(swigCPtr, Vector3.getCPtr(targetSize));
72     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
73   }
74
75   public virtual void OnSizeAnimation(Animation animation, Vector3 targetSize) {
76     NDalicPINVOKE.CustomActorImpl_OnSizeAnimation(swigCPtr, Animation.getCPtr(animation), Vector3.getCPtr(targetSize));
77     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
78   }
79
80   internal virtual bool OnTouchEvent(SWIGTYPE_p_Dali__TouchEvent arg0) {
81     bool ret = NDalicPINVOKE.CustomActorImpl_OnTouchEvent(swigCPtr, SWIGTYPE_p_Dali__TouchEvent.getCPtr(arg0));
82     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
83     return ret;
84   }
85
86   public virtual bool OnHoverEvent(Hover arg0) {
87     bool ret = NDalicPINVOKE.CustomActorImpl_OnHoverEvent(swigCPtr, Hover.getCPtr(arg0));
88     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
89     return ret;
90   }
91
92   public virtual bool OnKeyEvent(Key arg0) {
93     bool ret = NDalicPINVOKE.CustomActorImpl_OnKeyEvent(swigCPtr, Key.getCPtr(arg0));
94     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
95     return ret;
96   }
97
98   public virtual bool OnWheelEvent(Wheel arg0) {
99     bool ret = NDalicPINVOKE.CustomActorImpl_OnWheelEvent(swigCPtr, Wheel.getCPtr(arg0));
100     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
101     return ret;
102   }
103
104   public virtual void OnRelayout(Vector2 size, RelayoutContainer container) {
105     NDalicPINVOKE.CustomActorImpl_OnRelayout(swigCPtr, Vector2.getCPtr(size), RelayoutContainer.getCPtr(container));
106     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
107   }
108
109   public virtual void OnSetResizePolicy(ResizePolicyType policy, DimensionType dimension) {
110     NDalicPINVOKE.CustomActorImpl_OnSetResizePolicy(swigCPtr, (int)policy, (int)dimension);
111     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
112   }
113
114   public virtual Vector3 GetNaturalSize() {
115     Vector3 ret = new Vector3(NDalicPINVOKE.CustomActorImpl_GetNaturalSize(swigCPtr), true);
116     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
117     return ret;
118   }
119
120   public virtual float CalculateChildSize(View child, DimensionType dimension) {
121     float ret = NDalicPINVOKE.CustomActorImpl_CalculateChildSize(swigCPtr, View.getCPtr(child), (int)dimension);
122     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
123     return ret;
124   }
125
126   public virtual float GetHeightForWidth(float width) {
127     float ret = NDalicPINVOKE.CustomActorImpl_GetHeightForWidth(swigCPtr, width);
128     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
129     return ret;
130   }
131
132   public virtual float GetWidthForHeight(float height) {
133     float ret = NDalicPINVOKE.CustomActorImpl_GetWidthForHeight(swigCPtr, height);
134     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
135     return ret;
136   }
137
138   public virtual bool RelayoutDependentOnChildren(DimensionType dimension) {
139     bool ret = NDalicPINVOKE.CustomActorImpl_RelayoutDependentOnChildren__SWIG_0(swigCPtr, (int)dimension);
140     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
141     return ret;
142   }
143
144   public virtual bool RelayoutDependentOnChildren() {
145     bool ret = NDalicPINVOKE.CustomActorImpl_RelayoutDependentOnChildren__SWIG_1(swigCPtr);
146     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
147     return ret;
148   }
149
150   public virtual void OnCalculateRelayoutSize(DimensionType dimension) {
151     NDalicPINVOKE.CustomActorImpl_OnCalculateRelayoutSize(swigCPtr, (int)dimension);
152     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
153   }
154
155   public virtual void OnLayoutNegotiated(float size, DimensionType dimension) {
156     NDalicPINVOKE.CustomActorImpl_OnLayoutNegotiated(swigCPtr, size, (int)dimension);
157     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
158   }
159
160   public bool RequiresTouchEvents() {
161     bool ret = NDalicPINVOKE.CustomActorImpl_RequiresTouchEvents(swigCPtr);
162     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
163     return ret;
164   }
165
166   public bool RequiresHoverEvents() {
167     bool ret = NDalicPINVOKE.CustomActorImpl_RequiresHoverEvents(swigCPtr);
168     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
169     return ret;
170   }
171
172   public bool RequiresWheelEvents() {
173     bool ret = NDalicPINVOKE.CustomActorImpl_RequiresWheelEvents(swigCPtr);
174     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
175     return ret;
176   }
177
178   public bool IsRelayoutEnabled() {
179     bool ret = NDalicPINVOKE.CustomActorImpl_IsRelayoutEnabled(swigCPtr);
180     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
181     return ret;
182   }
183
184 }
185
186 }