View proposedView = View.DownCast<View>(proposed);
return _customFocusAlgorithm.GetNextFocusableView(currentView, proposedView, direction);
}
- }
-
-
- /*********************************************************************************/
- /*** will be removed/deprecated ***/
- /*********************************************************************************/
-
- ///<summary>
- ///Event arguments that passed via FocusedViewEnterKey signal
- /// </summary>
- public class FocusedViewEnterKeyEventArgs : EventArgs
- {
- private View _view;
-
- public View View
- {
- get
- {
- return _view;
- }
- set
- {
- _view = value;
- }
- }
- }
-
+ }\r
+\r
+\r
+ /*********************************************************************************/\r
+ /*** will be removed/deprecated ***/\r
+ /*********************************************************************************/\r
+\r
+ ///<summary>\r
+ ///Event arguments that passed via FocusedViewEnterKey signal\r
+ /// </summary>\r
+ public class FocusedViewEnterKeyEventArgs : EventArgs\r
+ {\r
+ private View _view;\r
+\r
+ public View View\r
+ {\r
+ get\r
+ {\r
+ return _view;\r
+ }\r
+ set\r
+ {\r
+ _view = value;\r
+ }\r
+ }\r
+ }\r
+\r
private EventHandler<FocusedViewEnterKeyEventArgs> _focusedViewEnterKeyEventHandler2;
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void FocusedViewEnterKeyEventCallback2(IntPtr view);
private FocusedViewEnterKeyEventCallback2 _focusedViewEnterKeyEventCallback2;
-
- /// <summary>
- /// FocusedViewActivated will be triggered when the current focused view has the enter key pressed on it.
- /// </summary>
- public event EventHandler<FocusedViewEnterKeyEventArgs> FocusedViewEnterKeyPressed
- {
- add
- {
- if (_focusedViewEnterKeyEventCallback2 == null)
- {
- _focusedViewEnterKeyEventCallback2 = OnFocusedViewEnterKey2;
- FocusedViewEnterKeySignal().Connect(_focusedViewEnterKeyEventCallback2);
- }
- _focusedViewEnterKeyEventHandler2 += value;
- }
- remove
- {
- _focusedViewEnterKeyEventHandler2 -= value;
-
- if (_focusedViewEnterKeyEventCallback2 == null && FocusedViewEnterKeySignal().Empty() == false)
- {
- FocusedViewEnterKeySignal().Disconnect(_focusedViewEnterKeyEventCallback2);
- }
- }
- }
-
- private void OnFocusedViewEnterKey2(IntPtr view)
- {
- FocusedViewEnterKeyEventArgs e = new FocusedViewEnterKeyEventArgs();
-
- e.View = View.GetViewFromPtr(view);
-
- if (_focusedViewEnterKeyEventHandler2 != null)
- {
- _focusedViewEnterKeyEventHandler2(this, e);
- }
- }
+\r
+ /// <summary>\r
+ /// FocusedViewActivated will be triggered when the current focused view has the enter key pressed on it.\r
+ /// </summary>\r
+ public event EventHandler<FocusedViewEnterKeyEventArgs> FocusedViewEnterKeyPressed\r
+ {\r
+ add\r
+ {\r
+ if (_focusedViewEnterKeyEventCallback2 == null)\r
+ {\r
+ _focusedViewEnterKeyEventCallback2 = OnFocusedViewEnterKey2;\r
+ FocusedViewEnterKeySignal().Connect(_focusedViewEnterKeyEventCallback2);\r
+ }\r
+ _focusedViewEnterKeyEventHandler2 += value;\r
+ }\r
+ remove\r
+ {\r
+ _focusedViewEnterKeyEventHandler2 -= value;\r
+\r
+ if (_focusedViewEnterKeyEventCallback2 == null && FocusedViewEnterKeySignal().Empty() == false)\r
+ {\r
+ FocusedViewEnterKeySignal().Disconnect(_focusedViewEnterKeyEventCallback2);\r
+ }\r
+ }\r
+ }\r
+\r
+ private void OnFocusedViewEnterKey2(IntPtr view)\r
+ {\r
+ FocusedViewEnterKeyEventArgs e = new FocusedViewEnterKeyEventArgs();\r
+\r
+ e.View = View.GetViewFromPtr(view);\r
+\r
+ if (_focusedViewEnterKeyEventHandler2 != null)\r
+ {\r
+ _focusedViewEnterKeyEventHandler2(this, e);\r
+ }\r
+ }\r
}
-/** 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.
-*
-*/
-
-namespace Tizen.NUI
-{
- using Tizen.NUI.BaseComponents;
-
- /// <summary>
- /// Layers provide a mechanism for overlaying groups of actors on top of each other.
- /// </summary>
- public class Layer : Animatable
- {
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
-
- internal Layer(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Layer_SWIGUpcast(cPtr), cMemoryOwn)
- {
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- }
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Layer obj)
- {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
- protected override void Dispose(DisposeTypes type)
- {
- if (disposed)
- {
- return;
- }
-
- if (type == DisposeTypes.Explicit)
- {
- //Called by User
- //Release your own managed resources here.
- //You should release all of your own disposable objects here.
- }
-
- //Release your own unmanaged resources here.
- //You should not access any managed member here except static instance.
- //because the execution order of Finalizes is non-deterministic.
-
- if (swigCPtr.Handle != global::System.IntPtr.Zero)
- {
- if (swigCMemOwn)
- {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_Layer(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
-
- base.Dispose(type);
- }
-
-
- internal class Property
- {
- internal static readonly int BEHAVIOR = NDalicPINVOKE.Layer_Property_BEHAVIOR_get();
- }
-
- /// <summary>
- /// Creates a Layer object.
- /// </summary>
- public Layer() : this(NDalicPINVOKE.Layer_New(), true)
- {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-
- }
+/** 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
+\r
+namespace Tizen.NUI\r
+{\r
+ using Tizen.NUI.BaseComponents;\r
+\r
+ /// <summary>\r
+ /// Layers provide a mechanism for overlaying groups of actors on top of each other.\r
+ /// </summary>\r
+ public class Layer : Animatable\r
+ {\r
+ private global::System.Runtime.InteropServices.HandleRef swigCPtr;\r
+\r
+ internal Layer(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Layer_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(Layer obj)\r
+ {\r
+ return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;\r
+ }\r
+\r
+ protected override void Dispose(DisposeTypes type)\r
+ {\r
+ if (disposed)\r
+ {\r
+ return;\r
+ }\r
+\r
+ if (type == DisposeTypes.Explicit)\r
+ {\r
+ //Called by User\r
+ //Release your own managed resources here.\r
+ //You should release all of your own disposable objects here.\r
+ }\r
+\r
+ //Release your own unmanaged resources here.\r
+ //You should not access any managed member here except static instance.\r
+ //because the execution order of Finalizes is non-deterministic.\r
+\r
+ if (swigCPtr.Handle != global::System.IntPtr.Zero)\r
+ {\r
+ if (swigCMemOwn)\r
+ {\r
+ swigCMemOwn = false;\r
+ NDalicPINVOKE.delete_Layer(swigCPtr);\r
+ }\r
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);\r
+ }\r
+\r
+ base.Dispose(type);\r
+ }\r
+\r
+\r
+ internal class Property\r
+ {\r
+ internal static readonly int BEHAVIOR = NDalicPINVOKE.Layer_Property_BEHAVIOR_get();\r
+ }\r
+\r
+ /// <summary>\r
+ /// Creates a Layer object.\r
+ /// </summary>\r
+ public Layer() : this(NDalicPINVOKE.Layer_New(), true)\r
+ {\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+\r
+ }\r
/// <summary>
/// this method will be changed as internal method on later release
/// </summary>
- public new static Layer DownCast(BaseHandle handle)
- {
- Layer ret = new Layer(NDalicPINVOKE.Layer_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Search through this layer's hierarchy for an view with the given unique ID.
- /// </summary>
- /// <pre>This layer(the parent) has been initialized.</pre>
- /// <remarks>The actor itself is also considered in the search.</remarks>
- /// <param name="child">The id of the child to find</param>
- /// <returns> A handle to the view if found, or an empty handle if not. </returns>
- public View FindChildById(uint id)
- {
- View ret = new View(NDalicPINVOKE.Actor_FindChildById(swigCPtr, id), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending)
- throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Adds a child view to this layer.
- /// </summary>
- /// <pre>This layer(the parent) has been initialized. The child view has been initialized. The child view is not the same as the parent layer.</pre>
- /// <post>The child will be referenced by its parent. This means that the child will be kept alive, even if the handle passed into this method is reset or destroyed.</post>
- /// <remarks>If the child already has a parent, it will be removed from old parent and reparented to this layer. This may change child's position, color, scale etc as it now inherits them from this layer.</remarks>
- /// <param name="child">The child</param>
- public void Add(View child)
- {
- NDalicPINVOKE.Actor_Add(swigCPtr, View.getCPtr(child));
- if (NDalicPINVOKE.SWIGPendingException.Pending)
- throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Removes a child View from this layer. If the view was not a child of this layer, this is a no-op.
- /// </summary>
- /// <pre>This layer(the parent) has been initialized. The child view is not the same as the parent view.</pre>
- /// <param name="child">The child</param>
- public void Remove(View child)
- {
- NDalicPINVOKE.Actor_Remove(swigCPtr, View.getCPtr(child));
- if (NDalicPINVOKE.SWIGPendingException.Pending)
- throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Queries the depth of the layer.<br>
- /// 0 is the bottom most layer, higher number is on top.<br>
- /// </summary>
- public uint Depth
- {
- get
- {
- return GetDepth();
- }
- }
-
- internal uint GetDepth()
- {
- uint ret = NDalicPINVOKE.Layer_GetDepth(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Increments the depth of the layer.
- /// </summary>
- public void Raise()
- {
- NDalicPINVOKE.Layer_Raise(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Decrements the depth of the layer.
- /// </summary>
- public void Lower()
- {
- NDalicPINVOKE.Layer_Lower(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- internal void RaiseAbove(Layer target)
- {
- NDalicPINVOKE.Layer_RaiseAbove(swigCPtr, Layer.getCPtr(target));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- internal void LowerBelow(Layer target)
- {
- NDalicPINVOKE.Layer_LowerBelow(swigCPtr, Layer.getCPtr(target));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Raises the layer to the top.
- /// </summary>
- public void RaiseToTop()
- {
- NDalicPINVOKE.Layer_RaiseToTop(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Lowers the layer to the bottom.
- /// </summary>
- public void LowerToBottom()
- {
- NDalicPINVOKE.Layer_LowerToBottom(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Moves the layer directly above the given layer.<br>
- /// After the call, this layers depth will be immediately above target.<br>
- /// </summary>
- /// <param name="target">Layer to get on top of</param>
- public void MoveAbove(Layer target)
- {
- NDalicPINVOKE.Layer_MoveAbove(swigCPtr, Layer.getCPtr(target));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Moves the layer directly below the given layer.<br>
- /// After the call, this layers depth will be immediately below target.<br>
- /// </summary>
- /// <param name="target">Layer to get below of</param>
- public void MoveBelow(Layer target)
- {
- NDalicPINVOKE.Layer_MoveBelow(swigCPtr, Layer.getCPtr(target));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- private void SetBehavior(LayerBehavior behavior)
- {
- NDalicPINVOKE.Layer_SetBehavior(swigCPtr, (int)behavior);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- private LayerBehavior GetBehavior()
- {
- Layer.LayerBehavior ret = (Layer.LayerBehavior)NDalicPINVOKE.Layer_GetBehavior(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal void SetSortFunction(SWIGTYPE_p_f_r_q_const__Dali__Vector3__float function)
- {
- NDalicPINVOKE.Layer_SetSortFunction(swigCPtr, SWIGTYPE_p_f_r_q_const__Dali__Vector3__float.getCPtr(function));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- internal void SetTouchConsumed(bool consume)
- {
- NDalicPINVOKE.Layer_SetTouchConsumed(swigCPtr, consume);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- internal bool IsTouchConsumed()
- {
- bool ret = NDalicPINVOKE.Layer_IsTouchConsumed(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal void SetHoverConsumed(bool consume)
- {
- NDalicPINVOKE.Layer_SetHoverConsumed(swigCPtr, consume);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- internal bool IsHoverConsumed()
- {
- bool ret = NDalicPINVOKE.Layer_IsHoverConsumed(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Retrieves child view by index.
- /// </summary>
- /// <pre>The View has been initialized.</pre>
- /// <param name="index">The index of the child to retrieve</param>
- /// <returns>The view for the given index or empty handle if children not initialized</returns>
- public View GetChildAt(uint index)
- {
- System.IntPtr cPtr = NDalicPINVOKE.Actor_GetChildAt(swigCPtr, index);
- cPtr = NDalicPINVOKE.View_SWIGUpcast(cPtr);
- cPtr = NDalicPINVOKE.Handle_SWIGUpcast(cPtr);
-
- BaseHandle ret = new BaseHandle(cPtr, false);
-
- View temp = ViewRegistry.GetViewFromBaseHandle(ret);
-
- if (NDalicPINVOKE.SWIGPendingException.Pending)
- throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-
- return temp ?? null;
- }
-
- /// <summary>
- /// Enumeration for the behavior of the layer.
- /// </summary>
- public enum LayerBehavior
- {
- Layer2D,
- LayerUI = Layer2D,
- Layer3D
- }
-
- internal enum TreeDepthMultiplier
- {
- TREE_DEPTH_MULTIPLIER = 10000
- }
-
- /// <summary>
- /// Layer Behavior, type String(Layer.LayerBehavior)
- /// </summary>
- public Layer.LayerBehavior Behavior
- {
- get
- {
- return GetBehavior();
- }
- set
- {
- SetBehavior(value);
- }
- }
-
- /// <summary>
- /// Retrieves and sets the Layer's opacity.<br>
- /// </summary>
- public float Opacity
- {
- get
- {
- float temp = 0.0f;
- GetProperty(View.Property.OPACITY).Get(out temp);
- return temp;
- }
- set
- {
- SetProperty(View.Property.OPACITY, new Tizen.NUI.PropertyValue(value));
- }
- }
-
- /// <summary>
- /// Retrieves and sets the Layer's visibility.
- /// </summary>
- public bool Visibility
- {
- get
- {
- bool temp = false;
- GetProperty(View.Property.VISIBLE).Get(out temp);
- return temp;
- }
- set
- {
- SetProperty(View.Property.VISIBLE, new Tizen.NUI.PropertyValue(value));
- }
- }
-
- /// <summary>
- /// Get the number of children held by the layer.
- /// </summary>
- public uint ChildCount
- {
- get
- {
- uint ret = NDalicPINVOKE.Actor_GetChildCount(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending)
- throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- /// <summary>
- /// Gets/Sets the Layer's name.
- /// </summary>
- public string Name
- {
- get
- {
- return GetName();
- }
- set
- {
- SetName(value);
- }
- }
-
- internal string GetName()
- {
- string ret = NDalicPINVOKE.Actor_GetName(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending)
- throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal void SetName(string name)
- {
- NDalicPINVOKE.Actor_SetName(swigCPtr, name);
- if (NDalicPINVOKE.SWIGPendingException.Pending)
- throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- }
-}
+ public new static Layer DownCast(BaseHandle handle)\r
+ {\r
+ Layer ret = new Layer(NDalicPINVOKE.Layer_DownCast(BaseHandle.getCPtr(handle)), true);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ /// <summary>\r
+ /// Search through this layer's hierarchy for an view with the given unique ID.\r
+ /// </summary>\r
+ /// <pre>This layer(the parent) has been initialized.</pre>\r
+ /// <remarks>The actor itself is also considered in the search.</remarks>\r
+ /// <param name="child">The id of the child to find</param>\r
+ /// <returns> A handle to the view if found, or an empty handle if not. </returns>\r
+ public View FindChildById(uint id)\r
+ {\r
+ View ret = new View(NDalicPINVOKE.Actor_FindChildById(swigCPtr, id), true);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending)\r
+ throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ /// <summary>\r
+ /// Adds a child view to this layer.\r
+ /// </summary>\r
+ /// <pre>This layer(the parent) has been initialized. The child view has been initialized. The child view is not the same as the parent layer.</pre>\r
+ /// <post>The child will be referenced by its parent. This means that the child will be kept alive, even if the handle passed into this method is reset or destroyed.</post>\r
+ /// <remarks>If the child already has a parent, it will be removed from old parent and reparented to this layer. This may change child's position, color, scale etc as it now inherits them from this layer.</remarks>\r
+ /// <param name="child">The child</param>\r
+ public void Add(View child)\r
+ {\r
+ NDalicPINVOKE.Actor_Add(swigCPtr, View.getCPtr(child));\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending)\r
+ throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
+ /// <summary>\r
+ /// Removes a child View from this layer. If the view was not a child of this layer, this is a no-op.\r
+ /// </summary>\r
+ /// <pre>This layer(the parent) has been initialized. The child view is not the same as the parent view.</pre>\r
+ /// <param name="child">The child</param>\r
+ public void Remove(View child)\r
+ {\r
+ NDalicPINVOKE.Actor_Remove(swigCPtr, View.getCPtr(child));\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending)\r
+ throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
+ /// <summary>\r
+ /// Queries the depth of the layer.<br>\r
+ /// 0 is the bottom most layer, higher number is on top.<br>\r
+ /// </summary>\r
+ public uint Depth\r
+ {\r
+ get\r
+ {\r
+ return GetDepth();\r
+ }\r
+ }\r
+\r
+ internal uint GetDepth()\r
+ {\r
+ uint ret = NDalicPINVOKE.Layer_GetDepth(swigCPtr);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ /// <summary>\r
+ /// Increments the depth of the layer.\r
+ /// </summary>\r
+ public void Raise()\r
+ {\r
+ NDalicPINVOKE.Layer_Raise(swigCPtr);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
+ /// <summary>\r
+ /// Decrements the depth of the layer.\r
+ /// </summary>\r
+ public void Lower()\r
+ {\r
+ NDalicPINVOKE.Layer_Lower(swigCPtr);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
+ internal void RaiseAbove(Layer target)\r
+ {\r
+ NDalicPINVOKE.Layer_RaiseAbove(swigCPtr, Layer.getCPtr(target));\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
+ internal void LowerBelow(Layer target)\r
+ {\r
+ NDalicPINVOKE.Layer_LowerBelow(swigCPtr, Layer.getCPtr(target));\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
+ /// <summary>\r
+ /// Raises the layer to the top.\r
+ /// </summary>\r
+ public void RaiseToTop()\r
+ {\r
+ NDalicPINVOKE.Layer_RaiseToTop(swigCPtr);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
+ /// <summary>\r
+ /// Lowers the layer to the bottom.\r
+ /// </summary>\r
+ public void LowerToBottom()\r
+ {\r
+ NDalicPINVOKE.Layer_LowerToBottom(swigCPtr);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
+ /// <summary>\r
+ /// Moves the layer directly above the given layer.<br>\r
+ /// After the call, this layers depth will be immediately above target.<br>\r
+ /// </summary>\r
+ /// <param name="target">Layer to get on top of</param>\r
+ public void MoveAbove(Layer target)\r
+ {\r
+ NDalicPINVOKE.Layer_MoveAbove(swigCPtr, Layer.getCPtr(target));\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
+ /// <summary>\r
+ /// Moves the layer directly below the given layer.<br>\r
+ /// After the call, this layers depth will be immediately below target.<br>\r
+ /// </summary>\r
+ /// <param name="target">Layer to get below of</param>\r
+ public void MoveBelow(Layer target)\r
+ {\r
+ NDalicPINVOKE.Layer_MoveBelow(swigCPtr, Layer.getCPtr(target));\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
+ private void SetBehavior(LayerBehavior behavior)\r
+ {\r
+ NDalicPINVOKE.Layer_SetBehavior(swigCPtr, (int)behavior);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
+ private LayerBehavior GetBehavior()\r
+ {\r
+ Layer.LayerBehavior ret = (Layer.LayerBehavior)NDalicPINVOKE.Layer_GetBehavior(swigCPtr);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ internal void SetSortFunction(SWIGTYPE_p_f_r_q_const__Dali__Vector3__float function)\r
+ {\r
+ NDalicPINVOKE.Layer_SetSortFunction(swigCPtr, SWIGTYPE_p_f_r_q_const__Dali__Vector3__float.getCPtr(function));\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
+ internal void SetTouchConsumed(bool consume)\r
+ {\r
+ NDalicPINVOKE.Layer_SetTouchConsumed(swigCPtr, consume);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
+ internal bool IsTouchConsumed()\r
+ {\r
+ bool ret = NDalicPINVOKE.Layer_IsTouchConsumed(swigCPtr);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ internal void SetHoverConsumed(bool consume)\r
+ {\r
+ NDalicPINVOKE.Layer_SetHoverConsumed(swigCPtr, consume);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
+ internal bool IsHoverConsumed()\r
+ {\r
+ bool ret = NDalicPINVOKE.Layer_IsHoverConsumed(swigCPtr);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ /// <summary>\r
+ /// Retrieves child view by index.\r
+ /// </summary>\r
+ /// <pre>The View has been initialized.</pre>\r
+ /// <param name="index">The index of the child to retrieve</param>\r
+ /// <returns>The view for the given index or empty handle if children not initialized</returns>\r
+ public View GetChildAt(uint index)\r
+ {\r
+ System.IntPtr cPtr = NDalicPINVOKE.Actor_GetChildAt(swigCPtr, index);\r
+ cPtr = NDalicPINVOKE.View_SWIGUpcast(cPtr);\r
+ cPtr = NDalicPINVOKE.Handle_SWIGUpcast(cPtr);\r
+\r
+ BaseHandle ret = new BaseHandle(cPtr, false);\r
+\r
+ View temp = ViewRegistry.GetViewFromBaseHandle(ret);\r
+\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending)\r
+ throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+\r
+ return temp ?? null;\r
+ }\r
+\r
+ /// <summary>\r
+ /// Enumeration for the behavior of the layer.\r
+ /// </summary>\r
+ public enum LayerBehavior\r
+ {\r
+ Layer2D,\r
+ LayerUI = Layer2D,\r
+ Layer3D\r
+ }\r
+\r
+ internal enum TreeDepthMultiplier\r
+ {\r
+ TREE_DEPTH_MULTIPLIER = 10000\r
+ }\r
+\r
+ /// <summary>\r
+ /// Layer Behavior, type String(Layer.LayerBehavior)\r
+ /// </summary>\r
+ public Layer.LayerBehavior Behavior\r
+ {\r
+ get\r
+ {\r
+ return GetBehavior();\r
+ }\r
+ set\r
+ {\r
+ SetBehavior(value);\r
+ }\r
+ }\r
+\r
+ /// <summary>\r
+ /// Retrieves and sets the Layer's opacity.<br>\r
+ /// </summary>\r
+ public float Opacity\r
+ {\r
+ get\r
+ {\r
+ float temp = 0.0f;\r
+ GetProperty(View.Property.OPACITY).Get(out temp);\r
+ return temp;\r
+ }\r
+ set\r
+ {\r
+ SetProperty(View.Property.OPACITY, new Tizen.NUI.PropertyValue(value));\r
+ }\r
+ }\r
+\r
+ /// <summary>\r
+ /// Retrieves and sets the Layer's visibility.\r
+ /// </summary>\r
+ public bool Visibility\r
+ {\r
+ get\r
+ {\r
+ bool temp = false;\r
+ GetProperty(View.Property.VISIBLE).Get(out temp);\r
+ return temp;\r
+ }\r
+ set\r
+ {\r
+ SetProperty(View.Property.VISIBLE, new Tizen.NUI.PropertyValue(value));\r
+ }\r
+ }\r
+\r
+ /// <summary>\r
+ /// Get the number of children held by the layer.\r
+ /// </summary>\r
+ public uint ChildCount\r
+ {\r
+ get\r
+ {\r
+ uint ret = NDalicPINVOKE.Actor_GetChildCount(swigCPtr);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending)\r
+ throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+ }\r
+\r
+ /// <summary>\r
+ /// Gets/Sets the Layer's name.\r
+ /// </summary>\r
+ public string Name\r
+ {\r
+ get\r
+ {\r
+ return GetName();\r
+ }\r
+ set\r
+ {\r
+ SetName(value);\r
+ }\r
+ }\r
+\r
+ internal string GetName()\r
+ {\r
+ string ret = NDalicPINVOKE.Actor_GetName(swigCPtr);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending)\r
+ throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ internal void SetName(string name)\r
+ {\r
+ NDalicPINVOKE.Actor_SetName(swigCPtr, name);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending)\r
+ throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+ }\r
+}\r
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
+ }\r
+\r
/// <summary>
/// this method will be changed as internal method on later release
/// </summary>
- public new static Path DownCast(BaseHandle handle)
- {
- Path ret = new Path(NDalicPINVOKE.Path_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
+ public new static Path DownCast(BaseHandle handle)\r
+ {\r
+ Path ret = new Path(NDalicPINVOKE.Path_DownCast(BaseHandle.getCPtr(handle)), true);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
/// <summary>
/// Adds an interpolation point.
*
*/
-namespace Tizen.NUI
-{
-
+namespace Tizen.NUI\r
+{\r
+\r
/// <summary>
/// Position2D is a two dimensional vector.
/// </summary>
- public class Position2D : global::System.IDisposable
- {
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- protected bool swigCMemOwn;
-
- internal Position2D(global::System.IntPtr cPtr, bool cMemoryOwn)
- {
- swigCMemOwn = cMemoryOwn;
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- }
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Position2D obj)
- {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
- //A Flag to check who called Dispose(). (By User or DisposeQueue)
- private bool isDisposeQueued = false;
- //A Flat to check if it is already disposed.
- protected bool disposed = false;
-
- ~Position2D()
- {
- if (!isDisposeQueued)
- {
- isDisposeQueued = true;
- DisposeQueue.Instance.Add(this);
- }
- }
-
- public void Dispose()
- {
- //Throw excpetion if Dispose() is called in separate thread.
- if (!Window.IsInstalled())
- {
- throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
- }
-
- if (isDisposeQueued)
- {
- Dispose(DisposeTypes.Implicit);
- }
- else
- {
- Dispose(DisposeTypes.Explicit);
- System.GC.SuppressFinalize(this);
- }
- }
-
- protected virtual void Dispose(DisposeTypes type)
- {
- if (disposed)
- {
- return;
- }
-
- if (type == DisposeTypes.Explicit)
- {
- //Called by User
- //Release your own managed resources here.
- //You should release all of your own disposable objects here.
- }
-
- //Release your own unmanaged resources here.
- //You should not access any managed member here except static instance.
- //because the execution order of Finalizes is non-deterministic.
-
- if (swigCPtr.Handle != global::System.IntPtr.Zero)
- {
- if (swigCMemOwn)
- {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_Vector2(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- disposed = true;
- }
-
+ public class Position2D : global::System.IDisposable\r
+ {\r
+ private global::System.Runtime.InteropServices.HandleRef swigCPtr;\r
+ protected bool swigCMemOwn;\r
+\r
+ internal Position2D(global::System.IntPtr cPtr, bool cMemoryOwn)\r
+ {\r
+ swigCMemOwn = cMemoryOwn;\r
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);\r
+ }\r
+\r
+ internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Position2D obj)\r
+ {\r
+ return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;\r
+ }\r
+\r
+ //A Flag to check who called Dispose(). (By User or DisposeQueue)\r
+ private bool isDisposeQueued = false;\r
+ //A Flat to check if it is already disposed.\r
+ protected bool disposed = false;\r
+\r
+ ~Position2D()\r
+ {\r
+ if (!isDisposeQueued)\r
+ {\r
+ isDisposeQueued = true;\r
+ DisposeQueue.Instance.Add(this);\r
+ }\r
+ }\r
+\r
+ public void Dispose()\r
+ {\r
+ //Throw excpetion if Dispose() is called in separate thread.\r
+ if (!Window.IsInstalled())\r
+ {\r
+ throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");\r
+ }\r
+\r
+ if (isDisposeQueued)\r
+ {\r
+ Dispose(DisposeTypes.Implicit);\r
+ }\r
+ else\r
+ {\r
+ Dispose(DisposeTypes.Explicit);\r
+ System.GC.SuppressFinalize(this);\r
+ }\r
+ }\r
+\r
+ protected virtual void Dispose(DisposeTypes type)\r
+ {\r
+ if (disposed)\r
+ {\r
+ return;\r
+ }\r
+\r
+ if (type == DisposeTypes.Explicit)\r
+ {\r
+ //Called by User\r
+ //Release your own managed resources here.\r
+ //You should release all of your own disposable objects here.\r
+ }\r
+\r
+ //Release your own unmanaged resources here.\r
+ //You should not access any managed member here except static instance.\r
+ //because the execution order of Finalizes is non-deterministic.\r
+\r
+ if (swigCPtr.Handle != global::System.IntPtr.Zero)\r
+ {\r
+ if (swigCMemOwn)\r
+ {\r
+ swigCMemOwn = false;\r
+ NDalicPINVOKE.delete_Vector2(swigCPtr);\r
+ }\r
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);\r
+ }\r
+ disposed = true;\r
+ }\r
+\r
/// <summary>
/// Addition operator.
/// </summary>
/// <param name="arg1">Vector to add</param>
/// <param name="arg2">Vector to add</param>
/// <returns>A vector containing the result of the addition</returns>
- public static Position2D operator +(Position2D arg1, Position2D arg2)
- {
- return arg1.Add(arg2);
- }
-
+ public static Position2D operator +(Position2D arg1, Position2D arg2)\r
+ {\r
+ return arg1.Add(arg2);\r
+ }\r
+\r
/// <summary>
/// Subtraction operator.
/// </summary>
/// <param name="arg1">Vector to subtract</param>
/// <param name="arg2">Vector to subtract</param>
/// <returns>A vector containing the result of the subtraction</returns>
- public static Position2D operator -(Position2D arg1, Position2D arg2)
- {
- return arg1.Subtract(arg2);
- }
-
+ public static Position2D operator -(Position2D arg1, Position2D arg2)\r
+ {\r
+ return arg1.Subtract(arg2);\r
+ }\r
+\r
/// <summary>
/// Unary negation operator.
/// </summary>
/// <param name="arg1">Vector to netate</param>
/// <returns>A vector containing the negation</returns>
- public static Position2D operator -(Position2D arg1)
- {
- return arg1.Subtract();
- }
-
+ public static Position2D operator -(Position2D arg1)\r
+ {\r
+ return arg1.Subtract();\r
+ }\r
+\r
/// <summary>
/// Multiplication operator.
/// </summary>
/// <param name="arg1">Vector to multiply</param>
/// <param name="arg2">Vector to multiply</param>
/// <returns>A vector containing the result of the multiplication</returns>
- public static Position2D operator *(Position2D arg1, Position2D arg2)
- {
- return arg1.Multiply(arg2);
- }
-
+ public static Position2D operator *(Position2D arg1, Position2D arg2)\r
+ {\r
+ return arg1.Multiply(arg2);\r
+ }\r
+\r
/// <summary>
/// Multiplication operator.
/// </summary>
/// <param name="arg1">Vector to multiply</param>
/// <param name="arg2">The int value to scale the vector</param>
/// <returns>A vector containing the result of the multiplication</returns>
- public static Position2D operator *(Position2D arg1, int arg2)
- {
- return arg1.Multiply(arg2);
- }
-
+ public static Position2D operator *(Position2D arg1, int arg2)\r
+ {\r
+ return arg1.Multiply(arg2);\r
+ }\r
+\r
/// <summary>
/// Division operator.
/// </summary>
/// <param name="arg1">Vector to divide</param>
/// <param name="arg2">Vector to divide</param>
/// <returns>A vector containing the result of the division</returns>
- public static Position2D operator /(Position2D arg1, Position2D arg2)
- {
- return arg1.Divide(arg2);
- }
-
+ public static Position2D operator /(Position2D arg1, Position2D arg2)\r
+ {\r
+ return arg1.Divide(arg2);\r
+ }\r
+\r
/// <summary>
/// Division operator.
/// </summary>
/// <param name="arg1">Vector to divide</param>
/// <param name="arg2">The int value to scale the vector by</param>
/// <returns>A vector containing the result of the division</returns>
- public static Position2D operator /(Position2D arg1, int arg2)
- {
- return arg1.Divide(arg2);
- }
-
+ public static Position2D operator /(Position2D arg1, int arg2)\r
+ {\r
+ return arg1.Divide(arg2);\r
+ }\r
+\r
/// <summary>
/// Const array subscript operator overload. Should be 0, or 1.
/// </summary>
/// <param name="index">Subscript index</param>
/// <returns>The float at the given index</returns>
- public float this[uint index]
- {
- get
- {
- return ValueOfIndex(index);
- }
- }
-
- internal static Position2D GetPosition2DFromPtr(global::System.IntPtr cPtr)
- {
- Position2D ret = new Position2D(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
+ public float this[uint index]\r
+ {\r
+ get\r
+ {\r
+ return ValueOfIndex(index);\r
+ }\r
+ }\r
+\r
+ internal static Position2D GetPosition2DFromPtr(global::System.IntPtr cPtr)\r
+ {\r
+ Position2D ret = new Position2D(cPtr, false);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
/// <summary>
/// Constructor
/// </summary>
- public Position2D() : this(NDalicPINVOKE.new_Vector2__SWIG_0(), true)
- {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
+ public Position2D() : this(NDalicPINVOKE.new_Vector2__SWIG_0(), true)\r
+ {\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
/// <summary>
/// Constructor
/// </summary>
/// <param name="x">x component</param>
/// <param name="y">y component</param>
- public Position2D(int x, int y) : this(NDalicPINVOKE.new_Vector2__SWIG_1((float)x, (float)y), true)
- {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
+ public Position2D(int x, int y) : this(NDalicPINVOKE.new_Vector2__SWIG_1((float)x, (float)y), true)\r
+ {\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
/// <summary>
/// Constructor
/// </summary>
/// <param name="position">Position to create this vector from</param>
- public Position2D(Position position) : this(NDalicPINVOKE.new_Vector2__SWIG_3(Position.getCPtr(position)), true)
- {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- private Position2D Add(Position2D rhs)
- {
- Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Add(swigCPtr, Position2D.getCPtr(rhs)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Position2D Subtract(Position2D rhs)
- {
- Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Subtract__SWIG_0(swigCPtr, Position2D.getCPtr(rhs)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-
- private Position2D Multiply(Position2D rhs)
- {
- Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Multiply__SWIG_0(swigCPtr, Position2D.getCPtr(rhs)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Position2D Multiply(int rhs)
- {
- Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Multiply__SWIG_1(swigCPtr, (float)rhs), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-
- private Position2D Divide(Position2D rhs)
- {
- Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Divide__SWIG_0(swigCPtr, Position2D.getCPtr(rhs)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Position2D Divide(int rhs)
- {
- Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Divide__SWIG_1(swigCPtr, (float)rhs), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Position2D Subtract()
- {
- Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Subtract__SWIG_1(swigCPtr), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
+ public Position2D(Position position) : this(NDalicPINVOKE.new_Vector2__SWIG_3(Position.getCPtr(position)), true)\r
+ {\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
+ private Position2D Add(Position2D rhs)\r
+ {\r
+ Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Add(swigCPtr, Position2D.getCPtr(rhs)), true);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ private Position2D Subtract(Position2D rhs)\r
+ {\r
+ Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Subtract__SWIG_0(swigCPtr, Position2D.getCPtr(rhs)), true);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+\r
+ private Position2D Multiply(Position2D rhs)\r
+ {\r
+ Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Multiply__SWIG_0(swigCPtr, Position2D.getCPtr(rhs)), true);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ private Position2D Multiply(int rhs)\r
+ {\r
+ Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Multiply__SWIG_1(swigCPtr, (float)rhs), true);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+\r
+ private Position2D Divide(Position2D rhs)\r
+ {\r
+ Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Divide__SWIG_0(swigCPtr, Position2D.getCPtr(rhs)), true);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ private Position2D Divide(int rhs)\r
+ {\r
+ Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Divide__SWIG_1(swigCPtr, (float)rhs), true);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ private Position2D Subtract()\r
+ {\r
+ Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Subtract__SWIG_1(swigCPtr), true);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
/// <summary>
/// Compare if rhs is equal to.
/// </summary>
/// <param name="rhs">The vector to compare</param>
/// <returns>Returns true if the two vectors are equal, otherwise false</returns>
- public bool EqualTo(Position2D rhs)
- {
- bool ret = NDalicPINVOKE.Vector2_EqualTo(swigCPtr, Position2D.getCPtr(rhs));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
+ public bool EqualTo(Position2D rhs)\r
+ {\r
+ bool ret = NDalicPINVOKE.Vector2_EqualTo(swigCPtr, Position2D.getCPtr(rhs));\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
/// <summary>
/// Compare if rhs is not equal to.
/// </summary>
/// <param name="rhs">The vector to compare</param>
/// <returns>Returns true if the two vectors are not equal, otherwise false</returns>
- public bool NotEqualTo(Position2D rhs)
- {
- bool ret = NDalicPINVOKE.Vector2_NotEqualTo(swigCPtr, Position2D.getCPtr(rhs));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private int ValueOfIndex(uint index)
- {
- int ret = (int)NDalicPINVOKE.Vector2_ValueOfIndex__SWIG_0(swigCPtr, index);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
+ public bool NotEqualTo(Position2D rhs)\r
+ {\r
+ bool ret = NDalicPINVOKE.Vector2_NotEqualTo(swigCPtr, Position2D.getCPtr(rhs));\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ private int ValueOfIndex(uint index)\r
+ {\r
+ int ret = (int)NDalicPINVOKE.Vector2_ValueOfIndex__SWIG_0(swigCPtr, index);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
/// <summary>
/// x component.
/// </summary>
- public int X
- {
- set
- {
- NDalicPINVOKE.Vector2_X_set(swigCPtr, (float)value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get
- {
- float ret = NDalicPINVOKE.Vector2_X_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return (int)ret;
- }
- }
-
+ public int X\r
+ {\r
+ set\r
+ {\r
+ NDalicPINVOKE.Vector2_X_set(swigCPtr, (float)value);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+ get\r
+ {\r
+ float ret = NDalicPINVOKE.Vector2_X_get(swigCPtr);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return (int)ret;\r
+ }\r
+ }\r
+\r
/// <summary>
/// y component.
/// </summary>
- public int Y
- {
- set
- {
- NDalicPINVOKE.Vector2_Y_set(swigCPtr, (float)value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get
- {
- float ret = NDalicPINVOKE.Vector2_Y_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return (int)ret;
- }
- }
-
+ public int Y\r
+ {\r
+ set\r
+ {\r
+ NDalicPINVOKE.Vector2_Y_set(swigCPtr, (float)value);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+ get\r
+ {\r
+ float ret = NDalicPINVOKE.Vector2_Y_get(swigCPtr);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return (int)ret;\r
+ }\r
+ }\r
+\r
/// <summary>
/// Convert a position2D instance to a vector2 instance.
/// </summary>
- public static implicit operator Vector2(Position2D position2d)
- {
- return new Vector2((float)position2d.X, (float)position2d.Y);
- }
-
+ public static implicit operator Vector2(Position2D position2d)\r
+ {\r
+ return new Vector2((float)position2d.X, (float)position2d.Y);\r
+ }\r
+\r
/// <summary>
/// Convert a vector2 instance to a position2D instance.
/// </summary>
- public static implicit operator Position2D(Vector2 vec)
- {
- return new Position2D((int)vec.X, (int)vec.Y);
- }
-
+ public static implicit operator Position2D(Vector2 vec)\r
+ {\r
+ return new Position2D((int)vec.X, (int)vec.Y);\r
+ }\r
+\r
}
}
Window ret = new Window(NDalicPINVOKE.Stage_GetCurrent(), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
- }
-
- internal static bool IsInstalled()
+ }\r
+\r
+ internal static bool IsInstalled()\r
{
bool ret = NDalicPINVOKE.Stage_IsInstalled();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
+ return ret;\r
}
/*********************************************************************************/
/// Gets the count of supported auxiliary hints of the window.
/// </summary>
/// <returns>The number of supported auxiliary hints.</returns>
- public uint GetSupportedAuxiliaryHintCount()
+ public uint GetSupportedAuxiliaryHintCount()\r
{
uint ret = NDalicPINVOKE.GetSupportedAuxiliaryHintCount(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// </summary>
/// <param name="index">The index of the supported auxiliary hint lists.</param>
/// <returns>The auxiliary hint string of the index.</returns>
- public string GetSupportedAuxiliaryHint(uint index)
+ public string GetSupportedAuxiliaryHint(uint index)\r
{
string ret = NDalicPINVOKE.GetSupportedAuxiliaryHint(swigCPtr, index);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// <param name="hint">The auxiliary hint string.</param>
/// <param name="value">The value string.</param>
/// <returns>The ID of created auxiliary hint, or 0 on failure.</returns>
- public uint AddAuxiliaryHint(string hint, string value)
+ public uint AddAuxiliaryHint(string hint, string value)\r
{
uint ret = NDalicPINVOKE.AddAuxiliaryHint(swigCPtr, hint, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// </summary>
/// <param name="id">The ID of the auxiliary hint.</param>
/// <returns>True if no error occurred, false otherwise.</returns>
- public bool RemoveAuxiliaryHint(uint id)
+ public bool RemoveAuxiliaryHint(uint id)\r
{
bool ret = NDalicPINVOKE.RemoveAuxiliaryHint(swigCPtr, id);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// <param name="id">The auxiliary hint ID.</param>
/// <param name="value">The value string to be set.</param>
/// <returns>True if no error occurred, false otherwise.</returns>
- public bool SetAuxiliaryHintValue(uint id, string value)
+ public bool SetAuxiliaryHintValue(uint id, string value)\r
{
bool ret = NDalicPINVOKE.SetAuxiliaryHintValue(swigCPtr, id, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// </summary>
/// <param name="id">The auxiliary hint ID.</param>
/// <returns>The string value of the auxiliary hint ID, or an empty string if none exists.</returns>
- public string GetAuxiliaryHintValue(uint id)
+ public string GetAuxiliaryHintValue(uint id)\r
{
string ret = NDalicPINVOKE.GetAuxiliaryHintValue(swigCPtr, id);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// </summary>
/// <param name="hint">The auxiliary hint string.</param>
/// <returns>The ID of auxiliary hint string, or 0 on failure.</returns>
- public uint GetAuxiliaryHintId(string hint)
+ public uint GetAuxiliaryHintId(string hint)\r
{
uint ret = NDalicPINVOKE.GetAuxiliaryHintId(swigCPtr, hint);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// Sets a region to accept input events.
/// </summary>
/// <param name="inputRegion">The region to accept input events.</param>
- public void SetInputRegion(Rectangle inputRegion)
+ public void SetInputRegion(Rectangle inputRegion)\r
{
NDalicPINVOKE.SetInputRegion(swigCPtr, Rectangle.getCPtr(inputRegion));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// </summary>
/// <param name="level">The notification window level.</param>
/// <returns>True if no error occurred, false otherwise.</returns>
- public bool SetNotificationLevel(NotificationLevel level)
+ public bool SetNotificationLevel(NotificationLevel level)\r
{
bool ret = NDalicPINVOKE.SetNotificationLevel(swigCPtr, (int)level);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// Gets a priority level for the specified notification window.
/// </summary>
/// <returns>The notification window level.</returns>
- public NotificationLevel GetNotificationLevel()
+ public NotificationLevel GetNotificationLevel()\r
{
NotificationLevel ret = (NotificationLevel)NDalicPINVOKE.GetNotificationLevel(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// Sets a transparent window's visual state to opaque.
/// </summary>
/// <param name="opaque">Whether the window's visual state is opaque.</param>
- public void SetOpaqueState(bool opaque)
+ public void SetOpaqueState(bool opaque)\r
{
NDalicPINVOKE.SetOpaqueState(swigCPtr, opaque);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// Returns whether a transparent window's visual state is opaque or not.
/// </summary>
/// <returns>True if the window's visual state is opaque, false otherwise.</returns>
- public bool IsOpaqueState()
+ public bool IsOpaqueState()\r
{
bool ret = NDalicPINVOKE.IsOpaqueState(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// </summary>
/// <param name="screenMode">The screen mode.</param>
/// <returns>True if no error occurred, false otherwise.</returns>
- public bool SetScreenMode(ScreenMode screenMode)
+ public bool SetScreenMode(ScreenMode screenMode)\r
{
bool ret = NDalicPINVOKE.SetScreenMode(swigCPtr, (int)screenMode);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// Gets a screen mode of the window.
/// </summary>
/// <returns>The screen mode.</returns>
- public ScreenMode GetScreenMode()
+ public ScreenMode GetScreenMode()\r
{
ScreenMode ret = (ScreenMode)NDalicPINVOKE.GetScreenMode(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// </summary>
/// <param name="brightness">The preferred brightness (0 to 100).</param>
/// <returns>True if no error occurred, false otherwise.</returns>
- public bool SetBrightness(int brightness)
+ public bool SetBrightness(int brightness)\r
{
bool ret = NDalicPINVOKE.SetBrightness(swigCPtr, brightness);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// Gets preffered brightness of the window.
/// </summary>
/// <returns>The preffered brightness.</returns>
- public int GetBrightness()
+ public int GetBrightness()\r
{
int ret = NDalicPINVOKE.GetBrightness(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
{
return GetLayerCount();
}
- }
-
-
- /*********************************************************************************/
- /*** will be removed/deprecated ***/
- /*********************************************************************************/
- /// <summary>
- /// will be deprecated at nui_0.2.50
- /// </summary>
+ }\r
+\r
+\r
+ /*********************************************************************************/\r
+ /*** will be removed/deprecated ***/\r
+ /*********************************************************************************/\r
+ /// <summary>\r
+ /// will be deprecated at nui_0.2.50\r
+ /// </summary>\r
public event EventHandler<TouchEventArgs> TouchEvent
{
add
_stageTouchHandler -= value;
}
}
- }
- /// <summary>
- /// will be deprecated at nui_0.2.50
- /// </summary>
+ }\r
+ /// <summary>\r
+ /// will be deprecated at nui_0.2.50\r
+ /// </summary>\r
public event EventHandler<WheelEventArgs> WheelEvent
{
add
WheelEventSignal().Disconnect(_stageWheelCallbackDelegate);
}
}
- }
- /// <summary>
- /// will be deprecated at nui_0.2.50
+ }\r
+ /// <summary>\r
+ /// will be deprecated at nui_0.2.50\r
/// </summary>
public event EventHandler<KeyEventArgs> KeyEvent
{
KeyEventSignal().Disconnect(_stageKeyCallbackDelegate);
}
}
- }
- /// <summary>
- /// will be deprecated at nui_0.2.50
- /// </summary>
- public void AddLayer(Layer layer)
- {
- NDalicPINVOKE.Stage_Add(stageCPtr, Layer.getCPtr(layer));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- /// <summary>
- /// will be deprecated at nui_0.2.50
- /// </summary>
- public void RemoveLayer(Layer layer)
- {
- NDalicPINVOKE.Stage_Remove(stageCPtr, Layer.getCPtr(layer));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// will be deprecated at nui_0.2.50
- /// </summary>
- public class WindowFocusChangedEventArgs : EventArgs
- {
- public bool FocusGained
- {
- get;
- set;
- }
- }
-
- private WindowFocusChangedEventCallbackType _windowFocusChangedEventCallback2;
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void WindowFocusChangedEventCallbackType2(bool focusGained);
- private event EventHandler<WindowFocusChangedEventArgs> _windowFocusChangedEventHandler2;
-
- /// <summary>
- /// will be deprecated at nui_0.2.50
- /// </summary>
- public event EventHandler<WindowFocusChangedEventArgs> WindowFocusChanged
- {
- add
- {
- if (_windowFocusChangedEventHandler2 == null)
- {
- _windowFocusChangedEventCallback2 = OnWindowFocusedChanged2;
- WindowFocusChangedSignal().Connect(_windowFocusChangedEventCallback2);
- }
-
- _windowFocusChangedEventHandler2 += value;
- }
- remove
- {
- _windowFocusChangedEventHandler2 -= value;
-
- if (_windowFocusChangedEventHandler2 == null && WindowFocusChangedSignal().Empty() == false && _windowFocusChangedEventCallback2 != null)
- {
- WindowFocusChangedSignal().Disconnect(_windowFocusChangedEventCallback2);
- }
- }
- }
-
- private void OnWindowFocusedChanged2(bool focusGained)
- {
- WindowFocusChangedEventArgs e = new WindowFocusChangedEventArgs();
-
- e.FocusGained = focusGained;
-
- if (_windowFocusChangedEventHandler2 != null)
- {
- _windowFocusChangedEventHandler2(this, e);
- }
- }
-
- /*********************************************************************************/
- /*** will be removed/deprecated ***/
- /*********************************************************************************/
-
-
+ }\r
+ /// <summary>\r
+ /// will be deprecated at nui_0.2.50\r
+ /// </summary>\r
+ public void AddLayer(Layer layer)\r
+ {\r
+ NDalicPINVOKE.Stage_Add(stageCPtr, Layer.getCPtr(layer));\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+ /// <summary>\r
+ /// will be deprecated at nui_0.2.50\r
+ /// </summary>\r
+ public void RemoveLayer(Layer layer)\r
+ {\r
+ NDalicPINVOKE.Stage_Remove(stageCPtr, Layer.getCPtr(layer));\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
+ /*********************************************************************************/\r
+ /*** will be removed/deprecated ***/\r
+ /*********************************************************************************/\r
+\r
+\r
}
}