[NUI-252] change string type of property to enum type of property
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / VisualBase.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 {
13
14     /// <summary>
15     /// Sets whether the actor should be focusable by keyboard navigation.<br>
16     /// Visuals reuse geometry, shader etc. across controls. They ensure that the renderer and texture sets exist only when control is on-stage.<br>
17     /// Each visual also responds to actor size and color change, and provides clipping at the renderer level.<br>
18     /// Note: The visual responds to the the Actor::COLOR by blending it with the 'Multiply' operator.<br>
19     /// </summary>
20     public class VisualBase : BaseHandle
21     {
22         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
23
24         internal VisualBase(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.VisualBase_SWIGUpcast(cPtr), cMemoryOwn)
25         {
26             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
27         }
28
29         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(VisualBase obj)
30         {
31             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
32         }
33
34         ~VisualBase()
35         {
36             DisposeQueue.Instance.Add(this);
37         }
38
39         public override void Dispose()
40         {
41             if (!Stage.IsInstalled())
42             {
43                 DisposeQueue.Instance.Add(this);
44                 return;
45             }
46             lock (this)
47             {
48                 if (swigCPtr.Handle != global::System.IntPtr.Zero)
49                 {
50                     if (swigCMemOwn)
51                     {
52                         swigCMemOwn = false;
53                         NDalicPINVOKE.delete_VisualBase(swigCPtr);
54                     }
55                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
56                 }
57                 global::System.GC.SuppressFinalize(this);
58                 base.Dispose();
59             }
60         }
61
62         /// <summary>
63         /// Create an empty Visual Handle
64         /// </summary>
65         public VisualBase() : this(NDalicPINVOKE.new_VisualBase__SWIG_0(), true)
66         {
67             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
68         }
69
70         internal VisualBase(VisualBase handle) : this(NDalicPINVOKE.new_VisualBase__SWIG_1(VisualBase.getCPtr(handle)), true)
71         {
72             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
73         }
74
75         internal VisualBase Assign(VisualBase handle)
76         {
77             VisualBase ret = new VisualBase(NDalicPINVOKE.VisualBase_Assign(swigCPtr, VisualBase.getCPtr(handle)), false);
78             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
79             return ret;
80         }
81
82         /// <summary>
83         /// name of the visual
84         /// </summary>
85         public string Name
86         {
87             set
88             {
89                 SetName(value);
90             }
91             get
92             {
93                 return GetName();
94             }
95         }
96
97         internal void SetName(string name)
98         {
99             NDalicPINVOKE.VisualBase_SetName(swigCPtr, name);
100             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
101         }
102
103         internal string GetName()
104         {
105             string ret = NDalicPINVOKE.VisualBase_GetName(swigCPtr);
106             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
107             return ret;
108         }
109
110         /// <summary>
111         /// Sets the transform and the control size
112         /// </summary>
113         /// <param name="transform">A property map describing the transform</param>
114         /// <param name="controlSize">The size of the parent control for visuals that need to scale internally.</param>
115         public void SetTransformAndSize(PropertyMap transform, Vector2 controlSize)
116         {
117             NDalicPINVOKE.VisualBase_SetTransformAndSize(swigCPtr, PropertyMap.getCPtr(transform), Vector2.getCPtr(controlSize));
118             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
119         }
120
121         /// <summary>
122         /// Returns the height for a given width.
123         /// </summary>
124         /// <param name="width">Width to use.</param>
125         /// <returns>The height based on the width.</returns>
126         public float GetHeightForWidth(float width)
127         {
128             float ret = NDalicPINVOKE.VisualBase_GetHeightForWidth(swigCPtr, width);
129             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
130             return ret;
131         }
132
133         /// <summary>
134         /// Returns the width for a given height.
135         /// </summary>
136         /// <param name="height">Height to use.</param>
137         /// <returns>The width based on the height.</returns>
138         public float GetWidthForHeight(float height)
139         {
140             float ret = NDalicPINVOKE.VisualBase_GetWidthForHeight(swigCPtr, height);
141             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
142             return ret;
143         }
144
145         /// <summary>
146         /// Return the natural size of the visual.<br>
147         /// Deriving classes stipulate the natural size and by default a visual has a ZERO natural size.<br>
148         /// A visual may not actually have a natural size until it has been placed on stage and acquired all it's resources.<br>
149         /// </summary>
150         /// <param name="naturalSize">The visual's natural size</param>
151         public void GetNaturalSize(Size2D naturalSize)
152         {
153             NDalicPINVOKE.VisualBase_GetNaturalSize(swigCPtr, Size2D.getCPtr(naturalSize));
154             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
155         }
156
157         /// <summary>
158         /// the depth index of this visual.
159         /// </summary>
160         public float DepthIndex
161         {
162             set
163             {
164                 SetDepthIndex(value);
165             }
166             get
167             {
168                 return GetDepthIndex();
169             }
170         }
171         internal void SetDepthIndex(float index)
172         {
173             NDalicPINVOKE.VisualBase_SetDepthIndex(swigCPtr, index);
174             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
175         }
176
177         internal float GetDepthIndex()
178         {
179             float ret = NDalicPINVOKE.VisualBase_GetDepthIndex(swigCPtr);
180             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
181             return ret;
182         }
183
184         /// <summary>
185         /// Create the property map representing this visual.
186         /// </summary>
187         public PropertyMap Creation
188         {
189             set
190             {
191                 CreatePropertyMap(value);
192             }
193         }
194         internal void CreatePropertyMap(PropertyMap map)
195         {
196             NDalicPINVOKE.VisualBase_CreatePropertyMap(swigCPtr, PropertyMap.getCPtr(map));
197             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
198         }
199
200         internal VisualBase(SWIGTYPE_p_Dali__Toolkit__Internal__Visual__Base impl) : this(NDalicPINVOKE.new_VisualBase__SWIG_2(SWIGTYPE_p_Dali__Toolkit__Internal__Visual__Base.getCPtr(impl)), true)
201         {
202             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
203         }
204
205     }
206
207 }