nui 1.0.2 release
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / RelayoutContainer.cs
1 //------------------------------------------------------------------------------\r
2 // <auto-generated />\r
3 //\r
4 // This file was automatically generated by SWIG (http://www.swig.org).\r
5 // Version 3.0.9\r
6 //\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
10 \r
11 namespace Tizen.NUI\r
12 {\r
13 \r
14     public class RelayoutContainer : global::System.IDisposable\r
15     {\r
16         private global::System.Runtime.InteropServices.HandleRef swigCPtr;\r
17         protected bool swigCMemOwn;\r
18 \r
19         internal RelayoutContainer(global::System.IntPtr cPtr, bool cMemoryOwn)\r
20         {\r
21             swigCMemOwn = cMemoryOwn;\r
22             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);\r
23         }\r
24 \r
25         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(RelayoutContainer obj)\r
26         {\r
27             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;\r
28         }\r
29 \r
30         ~RelayoutContainer()\r
31         {\r
32             DisposeQueue.Instance.Add(this);\r
33         }\r
34 \r
35         public virtual void Dispose()\r
36         {\r
37             if (!Stage.IsInstalled())\r
38             {\r
39                 DisposeQueue.Instance.Add(this);\r
40                 return;\r
41             }\r
42 \r
43             lock (this)\r
44             {\r
45                 if (swigCPtr.Handle != global::System.IntPtr.Zero)\r
46                 {\r
47                     if (swigCMemOwn)\r
48                     {\r
49                         swigCMemOwn = false;\r
50                         NDalicPINVOKE.delete_RelayoutContainer(swigCPtr);\r
51                     }\r
52                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);\r
53                 }\r
54                 global::System.GC.SuppressFinalize(this);\r
55             }\r
56         }\r
57 \r
58 \r
59         public virtual void Add(Actor actor, Size2D size)\r
60         {\r
61             NDalicPINVOKE.RelayoutContainer_Add(swigCPtr, Actor.getCPtr(actor), Size2D.getCPtr(size));\r
62             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
63         }\r
64 \r
65     }\r
66 \r
67 }\r