-// Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved\r
-// PROPRIETARY/CONFIDENTIAL \r
-// This software is the confidential and proprietary\r
-// information of SAMSUNG ELECTRONICS ("Confidential Information"). You shall\r
-// not disclose such Confidential Information and shall use it only in\r
-// accordance with the terms of the license agreement you entered into with\r
-// SAMSUNG ELECTRONICS. SAMSUNG make no representations or warranties about the\r
-// suitability of the software, either express or implied, including but not\r
-// limited to the implied warranties of merchantability, fitness for a\r
-// particular purpose, or non-infringement. SAMSUNG shall not be liable for any\r
-// damages suffered by licensee as a result of using, modifying or distributing\r
-// this software or its derivatives.\r
-\r
-// Copyright (c) 2017 Samsung Electronics Co., Ltd.\r
-//\r
-// Licensed under the Apache License, Version 2.0 (the "License");\r
-// you may not use this file except in compliance with the License.\r
-// You may obtain a copy of the License at\r
-//\r
-// http://www.apache.org/licenses/LICENSE-2.0\r
-//\r
-// Unless required by applicable law or agreed to in writing, software\r
-// distributed under the License is distributed on an "AS IS" BASIS,\r
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-// See the License for the specific language governing permissions and\r
-// limitations under the License.\r
-//\r
-\r
-// This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts\r
-// Some have been manually changed\r
-\r
-\r
-namespace Tizen.NUI\r
-{\r
-\r
- public class VisualBase : BaseHandle\r
- {\r
-\r
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;\r
-\r
- internal VisualBase(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.VisualBase_SWIGUpcast(cPtr), cMemoryOwn)\r
- {\r
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);\r
- }\r
-\r
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(VisualBase obj)\r
- {\r
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;\r
- }\r
-\r
- ~VisualBase()\r
- {\r
- Dispose();\r
- }\r
-\r
- public override void Dispose()\r
- {\r
- lock (this)\r
- {\r
- if (swigCPtr.Handle != global::System.IntPtr.Zero)\r
- {\r
- if (swigCMemOwn)\r
- {\r
- swigCMemOwn = false;\r
- NDalicPINVOKE.delete_VisualBase(swigCPtr);\r
- }\r
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);\r
- }\r
- global::System.GC.SuppressFinalize(this);\r
- base.Dispose();\r
- }\r
- }\r
-\r
- public VisualBase() : this(NDalicPINVOKE.new_VisualBase__SWIG_0(), true)\r
- {\r
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
- }\r
-\r
- internal VisualBase(VisualBase handle) : this(NDalicPINVOKE.new_VisualBase__SWIG_1(VisualBase.getCPtr(handle)), true)\r
- {\r
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
- }\r
-\r
- internal VisualBase Assign(VisualBase handle)\r
- {\r
- VisualBase ret = new VisualBase(NDalicPINVOKE.VisualBase_Assign(swigCPtr, VisualBase.getCPtr(handle)), false);\r
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
- return ret;\r
- }\r
-\r
- public string Name\r
- {\r
- set\r
- {\r
- SetName(value);\r
- }\r
- get\r
- {\r
- return GetName();\r
- }\r
- }\r
-\r
- internal void SetName(string name)\r
- {\r
- NDalicPINVOKE.VisualBase_SetName(swigCPtr, name);\r
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
- }\r
-\r
- internal string GetName()\r
- {\r
- string ret = NDalicPINVOKE.VisualBase_GetName(swigCPtr);\r
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
- return ret;\r
- }\r
-\r
- public void SetTransformAndSize(PropertyMap transform, Vector2 controlSize)\r
- {\r
- NDalicPINVOKE.VisualBase_SetTransformAndSize(swigCPtr, PropertyMap.getCPtr(transform), Vector2.getCPtr(controlSize));\r
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
- }\r
-\r
- public float GetHeightForWidth(float width)\r
- {\r
- float ret = NDalicPINVOKE.VisualBase_GetHeightForWidth(swigCPtr, width);\r
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
- return ret;\r
- }\r
-\r
- public float GetWidthForHeight(float height)\r
- {\r
- float ret = NDalicPINVOKE.VisualBase_GetWidthForHeight(swigCPtr, height);\r
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
- return ret;\r
- }\r
-\r
- public void GetNaturalSize(Size2D naturalSize)\r
- {\r
- NDalicPINVOKE.VisualBase_GetNaturalSize(swigCPtr, Size2D.getCPtr(naturalSize));\r
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
- }\r
-\r
- public float DepthIndex\r
- {\r
- set\r
- {\r
- SetDepthIndex(value);\r
- }\r
- get\r
- {\r
- return GetDepthIndex();\r
- }\r
- }\r
- internal void SetDepthIndex(float index)\r
- {\r
- NDalicPINVOKE.VisualBase_SetDepthIndex(swigCPtr, index);\r
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
- }\r
-\r
- internal float GetDepthIndex()\r
- {\r
- float ret = NDalicPINVOKE.VisualBase_GetDepthIndex(swigCPtr);\r
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
- return ret;\r
- }\r
-\r
- public PropertyMap Creation\r
- {\r
- set\r
- {\r
- CreatePropertyMap(value);\r
- }\r
- }\r
- internal void CreatePropertyMap(PropertyMap map)\r
- {\r
- NDalicPINVOKE.VisualBase_CreatePropertyMap(swigCPtr, PropertyMap.getCPtr(map));\r
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
- }\r
-\r
- 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)\r
- {\r
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
- }\r
-\r
- }\r
-\r
-}\r
+// Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+// PROPRIETARY/CONFIDENTIAL
+// This software is the confidential and proprietary
+// information of SAMSUNG ELECTRONICS ("Confidential Information"). You shall
+// not disclose such Confidential Information and shall use it only in
+// accordance with the terms of the license agreement you entered into with
+// SAMSUNG ELECTRONICS. SAMSUNG make no representations or warranties about the
+// suitability of the software, either express or implied, including but not
+// limited to the implied warranties of merchantability, fitness for a
+// particular purpose, or non-infringement. SAMSUNG shall not be liable for any
+// damages suffered by licensee as a result of using, modifying or distributing
+// this software or its derivatives.
+
+// Copyright (c) 2017 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
+// Some have been manually changed
+
+
+namespace Tizen.NUI
+{
+
+ public class VisualBase : BaseHandle
+ {
+
+ private global::System.Runtime.InteropServices.HandleRef swigCPtr;
+
+ internal VisualBase(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.VisualBase_SWIGUpcast(cPtr), cMemoryOwn)
+ {
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ }
+
+ internal static global::System.Runtime.InteropServices.HandleRef getCPtr(VisualBase obj)
+ {
+ return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
+ }
+
+ ~VisualBase()
+ {
+ Dispose();
+ }
+
+ public override void Dispose()
+ {
+ lock (this)
+ {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero)
+ {
+ if (swigCMemOwn)
+ {
+ swigCMemOwn = false;
+ NDalicPINVOKE.delete_VisualBase(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ base.Dispose();
+ }
+ }
+
+ public VisualBase() : this(NDalicPINVOKE.new_VisualBase__SWIG_0(), true)
+ {
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ internal VisualBase(VisualBase handle) : this(NDalicPINVOKE.new_VisualBase__SWIG_1(VisualBase.getCPtr(handle)), true)
+ {
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ internal VisualBase Assign(VisualBase handle)
+ {
+ VisualBase ret = new VisualBase(NDalicPINVOKE.VisualBase_Assign(swigCPtr, VisualBase.getCPtr(handle)), false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string Name
+ {
+ set
+ {
+ SetName(value);
+ }
+ get
+ {
+ return GetName();
+ }
+ }
+
+ internal void SetName(string name)
+ {
+ NDalicPINVOKE.VisualBase_SetName(swigCPtr, name);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ internal string GetName()
+ {
+ string ret = NDalicPINVOKE.VisualBase_GetName(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetTransformAndSize(PropertyMap transform, Vector2 controlSize)
+ {
+ NDalicPINVOKE.VisualBase_SetTransformAndSize(swigCPtr, PropertyMap.getCPtr(transform), Vector2.getCPtr(controlSize));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public float GetHeightForWidth(float width)
+ {
+ float ret = NDalicPINVOKE.VisualBase_GetHeightForWidth(swigCPtr, width);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public float GetWidthForHeight(float height)
+ {
+ float ret = NDalicPINVOKE.VisualBase_GetWidthForHeight(swigCPtr, height);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void GetNaturalSize(Size2D naturalSize)
+ {
+ NDalicPINVOKE.VisualBase_GetNaturalSize(swigCPtr, Size2D.getCPtr(naturalSize));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public float DepthIndex
+ {
+ set
+ {
+ SetDepthIndex(value);
+ }
+ get
+ {
+ return GetDepthIndex();
+ }
+ }
+ internal void SetDepthIndex(float index)
+ {
+ NDalicPINVOKE.VisualBase_SetDepthIndex(swigCPtr, index);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ internal float GetDepthIndex()
+ {
+ float ret = NDalicPINVOKE.VisualBase_GetDepthIndex(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public PropertyMap Creation
+ {
+ set
+ {
+ CreatePropertyMap(value);
+ }
+ }
+ internal void CreatePropertyMap(PropertyMap map)
+ {
+ NDalicPINVOKE.VisualBase_CreatePropertyMap(swigCPtr, PropertyMap.getCPtr(map));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ 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)
+ {
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ }
+
+}