1 // Copyright (c) 2017 Samsung Electronics Co., Ltd.
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
16 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
17 // Some have been manually changed
24 using System.Runtime.InteropServices;
27 /// Actor is the primary object with which Dali applications interact.
28 /// UI controls can be built by combining multiple actors.
30 public class Actor : Handle
32 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
34 internal Actor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Actor_SWIGUpcast(cPtr), cMemoryOwn)
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
39 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Actor obj)
41 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
46 DisposeQueue.Instance.Add(this);
50 /// To make Actor instance be disposed.
52 public override void Dispose()
54 if (!Stage.IsInstalled())
56 DisposeQueue.Instance.Add(this);
62 if (swigCPtr.Handle != global::System.IntPtr.Zero)
67 NDalicPINVOKE.delete_Actor(swigCPtr);
69 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
71 global::System.GC.SuppressFinalize(this);
78 internal static Actor GetActorFromPtr(global::System.IntPtr cPtr)
80 Actor ret = new Actor(cPtr, false);
81 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
85 internal IntPtr GetPtrfromActor()
87 return (IntPtr)swigCPtr;
91 /// Retrieve the position of the Actor.
92 /// The coordinates are relative to the Actor's parent.
94 public Position CurrentPosition
98 return GetCurrentPosition();
103 /// Retrieve the size of the Actor.
104 /// The coordinates are relative to the Actor's parent.
106 public Size CurrentSize
110 return GetCurrentSize();
115 /// Retrieves the actor's parent.
126 /// Retrieves and sets the actor's opacity.
133 GetProperty(Actor.Property.COLOR_ALPHA).Get(ref temp);
138 SetProperty(Actor.Property.COLOR_ALPHA, new Tizen.NUI.PropertyValue(value));
143 /// Retrieves screen postion of actor's
145 public Vector2 ScreenPosition
149 Vector2 temp = new Vector2(0.0f, 0.0f);
150 GetProperty(Actor.Property.SCREEN_POSITION).Get(temp);
156 /// Determines whether the anchor point should be used to determine the position of the actor.
157 /// This is true by default.
158 /// Note: If false, then the top-left of the actor is used for the position.
159 /// Setting this to false will allow scaling or rotation around the anchor-point without affecting the actor's position.
161 public bool PositionUsesAnchorPoint
166 GetProperty(Actor.Property.POSITION_USES_ANCHOR_POINT).Get(ref temp);
171 SetProperty(Actor.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
176 /// Queries whether the actor is connected to the Stage.
177 /// When an actor is connected, it will be directly or indirectly parented to the root Actor.
179 public bool IsOnStage
188 /// Gets depth in the hierarchy for the actor.
190 public int HierarchyDepth
194 return GetHierarchyDepth();
199 /// Sets the sibling order of the actor so depth position can be defined within the same parent.
200 /// Note The initial value is 0.
201 /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove and LowerBelow will override the sibling order.
202 /// The values set by this Property will likely change.
204 public int SiblingOrder
209 GetProperty(Actor.Property.SIBLING_ORDER).Get(ref temp);
214 SetProperty(Actor.Property.SIBLING_ORDER, new Tizen.NUI.PropertyValue(value));
219 /// Sets the size of an actor for Width and Height.
220 /// Geometry can be scaled to fit within this area.
221 /// This does not interfere with the actors scale factor.
222 /// The actors default depth is the minimum of Width & Height.
228 Size temp = new Size(0.0f, 0.0f, 0.0f);
229 GetProperty(Actor.Property.SIZE).Get(temp);
230 return new Size2D(temp);
234 SetProperty(Actor.Property.SIZE, new PropertyValue(new Size(value)));
239 /// Sets the position of the Actor for X and Y.
240 /// By default, sets the position vector between the parent origin and anchor point(default).
241 /// If Position inheritance if disabled, sets the world position.
243 public Position2D Position2D
247 Position temp = new Position(0.0f, 0.0f, 0.0f);
248 GetProperty(Actor.Property.POSITION).Get(temp);
249 return new Position2D(temp);
253 SetProperty(Actor.Property.POSITION, new PropertyValue(new Position(value)));
258 /// Sets the visibility flag of an actor as true to be shown.
259 /// Note This is an asynchronous method; the value written may not match a value subsequently read with Visible.
260 /// If an actor's visibility flag is set to false, then the actor and its children will not be rendered.
261 /// This is regardless of the individual visibility values of the children i.e.an actor will only be rendered if all of its parents have visibility set to true.
269 /// Sets the visibility flag of an actor as false to be hidden.
277 /// Raise actor above the next highest level of actor(s).
278 /// Note Sibling order of actors within the parent will be updated automatically.
279 /// Initially actors added to a parent will have the same sibling order and shown in relation to insertion order.
280 /// Raising this actor above actors with the same sibling order as each other will raise this actor above them.
281 /// Once a raise or lower API is used that actor will then have an exclusive sibling order independent of insertion.
285 NDalicPINVOKE.Raise(swigCPtr);
286 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
290 /// Lower the actor to underneath the level below actor(s).
291 /// Note Sibling order of actors within the parent will be updated automatically.
292 /// Lowering this actor below actors with the same sibling order as each other will lower this actor above them.
293 /// Once a raise or lower API is used that actor will then have an exclusive sibling order independent of insertion.
297 NDalicPINVOKE.Lower(swigCPtr);
298 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
302 /// Raise actor above all other actors.
303 /// Note Sibling order of actors within the parent will be updated automatically.
304 /// Once a raise or lower API is used that actor will then have an exclusive sibling order independent of insertion.
306 public void RaiseToTop()
308 NDalicPINVOKE.RaiseToTop(swigCPtr);
309 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
313 /// Lower actor to the bottom of all actors.
314 /// Note Sibling order of actors within the parent will be updated automatically.
315 /// Once a raise or lower API is used that actor will then have an exclusive sibling order independent of insertion.
317 public void LowerToBottom()
319 NDalicPINVOKE.LowerToBottom(swigCPtr);
320 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
324 /// Raise the actor to above the target actor.
325 /// Note Sibling order of actors within the parent will be updated automatically.
326 /// Actors on the level above the target actor will still be shown above this actor.
327 /// Raising this actor above actors with the same sibling order as each other will raise this actor above them.
328 /// Once a raise or lower API is used that actor will then have an exclusive sibling order independent of insertion.
330 /// <param name="target">Will be raised above this actor</param>
331 public void RaiseAbove(Actor target)
333 NDalicPINVOKE.RaiseAbove(swigCPtr, Actor.getCPtr(target));
334 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
338 /// Lower the actor to below the target actor.
339 /// Note Sibling order of actors within the parent will be updated automatically.
340 /// Lowering this actor below actors with the same sibling order as each other will lower this actor above them.
341 /// Once a raise or lower API is used that actor will then have an exclusive sibling order independent of insertion.
343 /// <param name="target">Will be lowered below this actor</param>
344 public void LowerBelow(Actor target)
346 NDalicPINVOKE.RaiseAbove(swigCPtr, Actor.getCPtr(target));
347 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
351 internal class Property : global::System.IDisposable
353 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
354 protected bool swigCMemOwn;
356 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
358 swigCMemOwn = cMemoryOwn;
359 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
362 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
364 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
372 public virtual void Dispose()
376 if (swigCPtr.Handle != global::System.IntPtr.Zero)
381 NDalicPINVOKE.delete_Actor_Property(swigCPtr);
383 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
385 global::System.GC.SuppressFinalize(this);
389 internal static readonly int SIBLING_ORDER = NDalicManualPINVOKE.Actor_Property_SIBLING_ORDER_get();
390 internal static readonly int OPACITY = NDalicManualPINVOKE.Actor_Property_OPACITY_get();
391 internal static readonly int SCREEN_POSITION = NDalicManualPINVOKE.Actor_Property_SCREEN_POSITION_get();
392 internal static readonly int POSITION_USES_ANCHOR_POINT = NDalicManualPINVOKE.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
394 internal Property() : this(NDalicPINVOKE.new_Actor_Property(), true)
396 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
399 internal static readonly int PARENT_ORIGIN = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_get();
400 internal static readonly int PARENT_ORIGIN_X = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_X_get();
401 internal static readonly int PARENT_ORIGIN_Y = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Y_get();
402 internal static readonly int PARENT_ORIGIN_Z = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Z_get();
403 internal static readonly int ANCHOR_POINT = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_get();
404 internal static readonly int ANCHOR_POINT_X = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_X_get();
405 internal static readonly int ANCHOR_POINT_Y = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Y_get();
406 internal static readonly int ANCHOR_POINT_Z = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Z_get();
407 internal static readonly int SIZE = NDalicPINVOKE.Actor_Property_SIZE_get();
408 internal static readonly int SIZE_WIDTH = NDalicPINVOKE.Actor_Property_SIZE_WIDTH_get();
409 internal static readonly int SIZE_HEIGHT = NDalicPINVOKE.Actor_Property_SIZE_HEIGHT_get();
410 internal static readonly int SIZE_DEPTH = NDalicPINVOKE.Actor_Property_SIZE_DEPTH_get();
411 internal static readonly int POSITION = NDalicPINVOKE.Actor_Property_POSITION_get();
412 internal static readonly int POSITION_X = NDalicPINVOKE.Actor_Property_POSITION_X_get();
413 internal static readonly int POSITION_Y = NDalicPINVOKE.Actor_Property_POSITION_Y_get();
414 internal static readonly int POSITION_Z = NDalicPINVOKE.Actor_Property_POSITION_Z_get();
415 internal static readonly int WORLD_POSITION = NDalicPINVOKE.Actor_Property_WORLD_POSITION_get();
416 internal static readonly int WORLD_POSITION_X = NDalicPINVOKE.Actor_Property_WORLD_POSITION_X_get();
417 internal static readonly int WORLD_POSITION_Y = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Y_get();
418 internal static readonly int WORLD_POSITION_Z = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Z_get();
419 internal static readonly int ORIENTATION = NDalicPINVOKE.Actor_Property_ORIENTATION_get();
420 internal static readonly int WORLD_ORIENTATION = NDalicPINVOKE.Actor_Property_WORLD_ORIENTATION_get();
421 internal static readonly int SCALE = NDalicPINVOKE.Actor_Property_SCALE_get();
422 internal static readonly int SCALE_X = NDalicPINVOKE.Actor_Property_SCALE_X_get();
423 internal static readonly int SCALE_Y = NDalicPINVOKE.Actor_Property_SCALE_Y_get();
424 internal static readonly int SCALE_Z = NDalicPINVOKE.Actor_Property_SCALE_Z_get();
425 internal static readonly int WORLD_SCALE = NDalicPINVOKE.Actor_Property_WORLD_SCALE_get();
426 internal static readonly int VISIBLE = NDalicPINVOKE.Actor_Property_VISIBLE_get();
427 internal static readonly int COLOR = NDalicPINVOKE.Actor_Property_COLOR_get();
428 internal static readonly int COLOR_RED = NDalicPINVOKE.Actor_Property_COLOR_RED_get();
429 internal static readonly int COLOR_GREEN = NDalicPINVOKE.Actor_Property_COLOR_GREEN_get();
430 internal static readonly int COLOR_BLUE = NDalicPINVOKE.Actor_Property_COLOR_BLUE_get();
431 internal static readonly int COLOR_ALPHA = NDalicPINVOKE.Actor_Property_COLOR_ALPHA_get();
432 internal static readonly int WORLD_COLOR = NDalicPINVOKE.Actor_Property_WORLD_COLOR_get();
433 internal static readonly int WORLD_MATRIX = NDalicPINVOKE.Actor_Property_WORLD_MATRIX_get();
434 internal static readonly int NAME = NDalicPINVOKE.Actor_Property_NAME_get();
435 internal static readonly int SENSITIVE = NDalicPINVOKE.Actor_Property_SENSITIVE_get();
436 internal static readonly int LEAVE_REQUIRED = NDalicPINVOKE.Actor_Property_LEAVE_REQUIRED_get();
437 internal static readonly int INHERIT_ORIENTATION = NDalicPINVOKE.Actor_Property_INHERIT_ORIENTATION_get();
438 internal static readonly int INHERIT_SCALE = NDalicPINVOKE.Actor_Property_INHERIT_SCALE_get();
439 internal static readonly int COLOR_MODE = NDalicPINVOKE.Actor_Property_COLOR_MODE_get();
440 internal static readonly int POSITION_INHERITANCE = NDalicPINVOKE.Actor_Property_POSITION_INHERITANCE_get();
441 internal static readonly int DRAW_MODE = NDalicPINVOKE.Actor_Property_DRAW_MODE_get();
442 internal static readonly int SIZE_MODE_FACTOR = NDalicPINVOKE.Actor_Property_SIZE_MODE_FACTOR_get();
443 internal static readonly int WIDTH_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_WIDTH_RESIZE_POLICY_get();
444 internal static readonly int HEIGHT_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_HEIGHT_RESIZE_POLICY_get();
445 internal static readonly int SIZE_SCALE_POLICY = NDalicPINVOKE.Actor_Property_SIZE_SCALE_POLICY_get();
446 internal static readonly int WIDTH_FOR_HEIGHT = NDalicPINVOKE.Actor_Property_WIDTH_FOR_HEIGHT_get();
447 internal static readonly int HEIGHT_FOR_WIDTH = NDalicPINVOKE.Actor_Property_HEIGHT_FOR_WIDTH_get();
448 internal static readonly int PADDING = NDalicPINVOKE.Actor_Property_PADDING_get();
449 internal static readonly int MINIMUM_SIZE = NDalicPINVOKE.Actor_Property_MINIMUM_SIZE_get();
450 internal static readonly int MAXIMUM_SIZE = NDalicPINVOKE.Actor_Property_MAXIMUM_SIZE_get();
451 internal static readonly int INHERIT_POSITION = NDalicPINVOKE.Actor_Property_INHERIT_POSITION_get();
452 internal static readonly int CLIPPING_MODE = NDalicPINVOKE.Actor_Property_CLIPPING_MODE_get();
457 /// Creates an initialized Actor.
459 public Actor() : this(NDalicPINVOKE.Actor_New(), true)
461 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
466 /// Downcasts a handle to Actor handle.
467 /// If handle points to an Actor object, the downcast produces valid handle.
468 /// If not, the returned handle is left uninitialized. *
470 /// <param name="handle">handle to An object</param>
471 /// <returns>handle to a Actor object or an uninitialized handle</returns>
472 public new static Actor DownCast(BaseHandle handle)
474 Actor ret = new Actor(NDalicPINVOKE.Actor_DownCast(BaseHandle.getCPtr(handle)), true);
475 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
479 internal Actor(Actor copy) : this(NDalicPINVOKE.new_Actor__SWIG_1(Actor.getCPtr(copy)), true)
481 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
484 internal Actor Assign(Actor rhs)
486 Actor ret = new Actor(NDalicPINVOKE.Actor_Assign(swigCPtr, Actor.getCPtr(rhs)), false);
487 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
491 internal string GetName()
493 string ret = NDalicPINVOKE.Actor_GetName(swigCPtr);
494 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
498 internal void SetName(string name)
500 NDalicPINVOKE.Actor_SetName(swigCPtr, name);
501 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
504 internal uint GetId()
506 uint ret = NDalicPINVOKE.Actor_GetId(swigCPtr);
507 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
511 internal bool IsRoot()
513 bool ret = NDalicPINVOKE.Actor_IsRoot(swigCPtr);
514 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
518 internal bool OnStage()
520 bool ret = NDalicPINVOKE.Actor_OnStage(swigCPtr);
521 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
525 internal bool IsLayer()
527 bool ret = NDalicPINVOKE.Actor_IsLayer(swigCPtr);
528 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
532 internal Layer GetLayer()
534 Layer ret = new Layer(NDalicPINVOKE.Actor_GetLayer(swigCPtr), true);
535 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
540 /// Adds a child Actor to this Actor.
541 /// Precondition : This Actor(the parent) has been initialized. The child actor has been initialized. The child actor is not the same as the parent actor.
542 /// PostCondition : 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.
543 /// Note : If the child already has a parent, it will be removed from old parent and reparented to this actor. This may change child's position, color, scale etc as it now inherits them from this actor.
545 /// <param name="child">The child</param>
546 public void Add(Actor child)
548 NDalicPINVOKE.Actor_Add(swigCPtr, Actor.getCPtr(child));
549 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
553 /// Removes a child Actor from this Actor. If the actor was not a child of this actor, this is a no-op.
554 /// Precondition : This Actor(the parent) has been initialized. The child actor is not the same as the parent actor.
556 /// <param name="child">The child</param>
557 public void Remove(Actor child)
559 NDalicPINVOKE.Actor_Remove(swigCPtr, Actor.getCPtr(child));
560 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
563 internal void Unparent()
565 NDalicPINVOKE.Actor_Unparent(swigCPtr);
566 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
570 /// Retrieves the number of children held by the actor.
571 /// Precondition : The Actor has been initialized.
573 /// <returns>The number of children</returns>
574 public uint GetChildCount()
576 uint ret = NDalicPINVOKE.Actor_GetChildCount(swigCPtr);
577 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
582 /// Retrieve and child actor by index.
583 /// Precondition : The Actor has been initialized.
585 /// <param name="index">The index of the child to retrieve</param>
586 /// <returns>The actor for the given index or empty handle if children not initialized</returns>
587 public Actor GetChildAt(uint index)
589 Actor ret = new Actor(NDalicPINVOKE.Actor_GetChildAt(swigCPtr, index), true);
590 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
595 /// Search through this actor's hierarchy for an actor with the given name.
596 /// The actor itself is also considered in the search.
597 ///Precondition : The Actor has been initialized.
599 /// <param name="actorName">The name of the actor to find</param>
600 /// <returns>A handle to the actor if found, or an empty handle if not</returns>
601 public Actor FindChildByName(string actorName)
603 Actor ret = new Actor(NDalicPINVOKE.Actor_FindChildByName(swigCPtr, actorName), true);
604 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
608 internal Actor FindChildById(uint id)
610 Actor ret = new Actor(NDalicPINVOKE.Actor_FindChildById(swigCPtr, id), true);
611 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
615 internal Actor GetParent()
617 Actor ret = new Actor(NDalicPINVOKE.Actor_GetParent(swigCPtr), true);
618 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
622 internal void SetParentOrigin(Vector3 origin)
624 NDalicPINVOKE.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
625 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
628 internal Vector3 GetCurrentParentOrigin()
630 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentParentOrigin(swigCPtr), true);
631 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
635 internal void SetAnchorPoint(Vector3 anchorPoint)
637 NDalicPINVOKE.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
638 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
641 internal Vector3 GetCurrentAnchorPoint()
643 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentAnchorPoint(swigCPtr), true);
644 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
648 internal void SetSize(float width, float height)
650 NDalicPINVOKE.Actor_SetSize__SWIG_0(swigCPtr, width, height);
651 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
654 internal void SetSize(float width, float height, float depth)
656 NDalicPINVOKE.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
657 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
660 internal void SetSize(Vector2 size)
662 NDalicPINVOKE.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
663 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
666 internal void SetSize(Vector3 size)
668 NDalicPINVOKE.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
669 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
672 internal Vector3 GetTargetSize()
674 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetTargetSize(swigCPtr), true);
675 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
679 internal Size GetCurrentSize()
681 Size ret = new Size(NDalicPINVOKE.Actor_GetCurrentSize(swigCPtr), true);
682 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
687 /// Returns the natural size of the actor.
688 /// Deriving classes stipulate the natural size and by default an actor has a ZERO natural size.
690 /// <returns>The actor's natural size</returns>
691 public Vector3 GetNaturalSize()
693 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
694 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
698 internal void SetPosition(float x, float y)
700 NDalicPINVOKE.Actor_SetPosition__SWIG_0(swigCPtr, x, y);
701 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
704 internal void SetPosition(float x, float y, float z)
706 NDalicPINVOKE.Actor_SetPosition__SWIG_1(swigCPtr, x, y, z);
707 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
710 internal void SetPosition(Vector3 position)
712 NDalicPINVOKE.Actor_SetPosition__SWIG_2(swigCPtr, Vector3.getCPtr(position));
713 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
716 internal void SetX(float x)
718 NDalicPINVOKE.Actor_SetX(swigCPtr, x);
719 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
722 internal void SetY(float y)
724 NDalicPINVOKE.Actor_SetY(swigCPtr, y);
725 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
728 internal void SetZ(float z)
730 NDalicPINVOKE.Actor_SetZ(swigCPtr, z);
731 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
734 internal void TranslateBy(Vector3 distance)
736 NDalicPINVOKE.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
737 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
740 internal Position GetCurrentPosition()
742 Position ret = new Position(NDalicPINVOKE.Actor_GetCurrentPosition(swigCPtr), true);
743 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
747 internal Vector3 GetCurrentWorldPosition()
749 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldPosition(swigCPtr), true);
750 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
754 internal void SetInheritPosition(bool inherit)
756 NDalicPINVOKE.Actor_SetInheritPosition(swigCPtr, inherit);
757 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
760 internal PositionInheritanceMode GetPositionInheritanceMode()
762 PositionInheritanceMode ret = (PositionInheritanceMode)NDalicPINVOKE.Actor_GetPositionInheritanceMode(swigCPtr);
763 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
767 internal bool IsPositionInherited()
769 bool ret = NDalicPINVOKE.Actor_IsPositionInherited(swigCPtr);
770 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
774 internal void SetOrientation(Degree angle, Vector3 axis)
776 NDalicPINVOKE.Actor_SetOrientation__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
777 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
780 internal void SetOrientation(Radian angle, Vector3 axis)
782 NDalicPINVOKE.Actor_SetOrientation__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
783 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
786 internal void SetOrientation(Rotation orientation)
788 NDalicPINVOKE.Actor_SetOrientation__SWIG_2(swigCPtr, Rotation.getCPtr(orientation));
789 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
792 internal void RotateBy(Degree angle, Vector3 axis)
794 NDalicPINVOKE.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
795 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
798 internal void RotateBy(Radian angle, Vector3 axis)
800 NDalicPINVOKE.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
801 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
804 internal void RotateBy(Rotation relativeRotation)
806 NDalicPINVOKE.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
807 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
810 internal Rotation GetCurrentOrientation()
812 Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentOrientation(swigCPtr), true);
813 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
817 internal void SetInheritOrientation(bool inherit)
819 NDalicPINVOKE.Actor_SetInheritOrientation(swigCPtr, inherit);
820 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
823 internal bool IsOrientationInherited()
825 bool ret = NDalicPINVOKE.Actor_IsOrientationInherited(swigCPtr);
826 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
830 internal Rotation GetCurrentWorldOrientation()
832 Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentWorldOrientation(swigCPtr), true);
833 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
837 internal void SetScale(float scale)
839 NDalicPINVOKE.Actor_SetScale__SWIG_0(swigCPtr, scale);
840 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
843 internal void SetScale(float scaleX, float scaleY, float scaleZ)
845 NDalicPINVOKE.Actor_SetScale__SWIG_1(swigCPtr, scaleX, scaleY, scaleZ);
846 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
849 internal void SetScale(Vector3 scale)
851 NDalicPINVOKE.Actor_SetScale__SWIG_2(swigCPtr, Vector3.getCPtr(scale));
852 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
855 internal void ScaleBy(Vector3 relativeScale)
857 NDalicPINVOKE.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
858 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
861 internal Vector3 GetCurrentScale()
863 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentScale(swigCPtr), true);
864 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
868 internal Vector3 GetCurrentWorldScale()
870 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldScale(swigCPtr), true);
871 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
875 internal void SetInheritScale(bool inherit)
877 NDalicPINVOKE.Actor_SetInheritScale(swigCPtr, inherit);
878 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
881 internal bool IsScaleInherited()
883 bool ret = NDalicPINVOKE.Actor_IsScaleInherited(swigCPtr);
884 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
888 internal Matrix GetCurrentWorldMatrix()
890 Matrix ret = new Matrix(NDalicPINVOKE.Actor_GetCurrentWorldMatrix(swigCPtr), true);
891 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
895 internal void SetVisible(bool visible)
897 NDalicPINVOKE.Actor_SetVisible(swigCPtr, visible);
898 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
901 internal bool IsVisible()
903 bool ret = NDalicPINVOKE.Actor_IsVisible(swigCPtr);
904 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
908 internal void SetOpacity(float opacity)
910 NDalicPINVOKE.Actor_SetOpacity(swigCPtr, opacity);
911 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
914 internal float GetCurrentOpacity()
916 float ret = NDalicPINVOKE.Actor_GetCurrentOpacity(swigCPtr);
917 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
921 internal void SetColor(Vector4 color)
923 NDalicPINVOKE.Actor_SetColor(swigCPtr, Vector4.getCPtr(color));
924 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
927 internal Vector4 GetCurrentColor()
929 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentColor(swigCPtr), true);
930 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
934 internal void SetColorMode(ColorMode colorMode)
936 NDalicPINVOKE.Actor_SetColorMode(swigCPtr, (int)colorMode);
937 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
940 internal ColorMode GetColorMode()
942 ColorMode ret = (ColorMode)NDalicPINVOKE.Actor_GetColorMode(swigCPtr);
943 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
947 internal Vector4 GetCurrentWorldColor()
949 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentWorldColor(swigCPtr), true);
950 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
954 internal void SetDrawMode(DrawModeType drawMode)
956 NDalicPINVOKE.Actor_SetDrawMode(swigCPtr, (int)drawMode);
957 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
960 internal DrawModeType GetDrawMode()
962 DrawModeType ret = (DrawModeType)NDalicPINVOKE.Actor_GetDrawMode(swigCPtr);
963 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
967 internal void SetSensitive(bool sensitive)
969 NDalicPINVOKE.Actor_SetSensitive(swigCPtr, sensitive);
970 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
973 internal bool IsSensitive()
975 bool ret = NDalicPINVOKE.Actor_IsSensitive(swigCPtr);
976 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
981 /// Converts screen coordinates into the actor's coordinate system using the default camera.
982 /// Precondition : The Actor has been initialized.
983 /// Note : The actor coordinates are relative to the top-left(0.0, 0.0, 0.5)
985 /// <param name="localX">On return, the X-coordinate relative to the actor</param>
986 /// <param name="localY">On return, the Y-coordinate relative to the actor</param>
987 /// <param name="screenX">The screen X-coordinate</param>
988 /// <param name="screenY">The screen Y-coordinate</param>
989 /// <returns>True if the conversion succeeded</returns>
990 public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
992 bool ret = NDalicPINVOKE.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
993 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
997 internal void SetLeaveRequired(bool required)
999 NDalicPINVOKE.Actor_SetLeaveRequired(swigCPtr, required);
1000 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1003 internal bool GetLeaveRequired()
1005 bool ret = NDalicPINVOKE.Actor_GetLeaveRequired(swigCPtr);
1006 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1010 internal void SetKeyboardFocusable(bool focusable)
1012 NDalicPINVOKE.Actor_SetKeyboardFocusable(swigCPtr, focusable);
1013 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1016 internal bool IsKeyboardFocusable()
1018 bool ret = NDalicPINVOKE.Actor_IsKeyboardFocusable(swigCPtr);
1019 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1023 internal void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
1025 NDalicPINVOKE.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
1026 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1029 internal ResizePolicyType GetResizePolicy(DimensionType dimension)
1031 ResizePolicyType ret = (ResizePolicyType)NDalicPINVOKE.Actor_GetResizePolicy(swigCPtr, (int)dimension);
1032 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1036 internal void SetSizeScalePolicy(SizeScalePolicyType policy)
1038 NDalicPINVOKE.Actor_SetSizeScalePolicy(swigCPtr, (int)policy);
1039 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1042 internal SizeScalePolicyType GetSizeScalePolicy()
1044 SizeScalePolicyType ret = (SizeScalePolicyType)NDalicPINVOKE.Actor_GetSizeScalePolicy(swigCPtr);
1045 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1050 /// Sets the relative to parent size factor of the actor.
1051 /// This factor is only used when ResizePolicy is set to either
1052 /// This actor's size is set to the actor's size multiplied by or added to this factor, depending on ResizePolicy
1053 /// Precondition : The Actor has been initialized.
1055 /// <param name="factor">A Vector3 representing the relative factor to be applied to each axis</param>
1056 public void SetSizeModeFactor(Vector3 factor)
1058 NDalicPINVOKE.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
1059 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1062 internal Vector3 GetSizeModeFactor()
1064 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetSizeModeFactor(swigCPtr), true);
1065 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1070 /// Calculates the height of the actor given a width.
1071 /// The natural size is used for default calculation.
1072 /// size 0 is treated as aspect ratio 1:1.
1074 /// <param name="width">Width to use</param>
1075 /// <returns>the height based on the width</returns>
1076 public float GetHeightForWidth(float width)
1078 float ret = NDalicPINVOKE.Actor_GetHeightForWidth(swigCPtr, width);
1079 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1084 /// Calculates the width of the actor given a height.
1085 /// The natural size is used for default calculation.
1086 /// size 0 is treated as aspect ratio 1:1.
1088 /// <param name="height">Height to use</param>
1089 /// <returns>the width based on the height</returns>
1090 public float GetWidthForHeight(float height)
1092 float ret = NDalicPINVOKE.Actor_GetWidthForHeight(swigCPtr, height);
1093 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1097 public float GetRelayoutSize(DimensionType dimension)
1099 float ret = NDalicPINVOKE.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
1100 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1105 /// Sets the padding for use in layout.
1107 /// <param name="padding">padding Padding for the actor</param>
1108 public void SetPadding(PaddingType padding)
1110 NDalicPINVOKE.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
1111 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1115 /// Returns the value of the padding.
1117 /// <param name="paddingOut">The returned padding data</param>
1118 public void GetPadding(PaddingType paddingOut)
1120 NDalicPINVOKE.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
1121 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1124 internal void SetMinimumSize(Vector2 size)
1126 NDalicPINVOKE.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
1127 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1130 internal Vector2 GetMinimumSize()
1132 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMinimumSize(swigCPtr), true);
1133 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1137 internal void SetMaximumSize(Vector2 size)
1139 NDalicPINVOKE.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
1140 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1143 internal Vector2 GetMaximumSize()
1145 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMaximumSize(swigCPtr), true);
1146 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1150 internal int GetHierarchyDepth()
1152 int ret = NDalicPINVOKE.Actor_GetHierarchyDepth(swigCPtr);
1153 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1157 internal uint AddRenderer(Renderer renderer)
1159 uint ret = NDalicPINVOKE.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
1160 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1164 internal uint GetRendererCount()
1166 uint ret = NDalicPINVOKE.Actor_GetRendererCount(swigCPtr);
1167 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1171 internal Renderer GetRendererAt(uint index)
1173 Renderer ret = new Renderer(NDalicPINVOKE.Actor_GetRendererAt(swigCPtr, index), true);
1174 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1178 internal void RemoveRenderer(Renderer renderer)
1180 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
1181 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1184 internal void RemoveRenderer(uint index)
1186 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
1187 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1190 internal SWIGTYPE_p_Dali__SignalT_bool_fDali__Actor_Dali__TouchEvent_const_RF_t TouchedSignal()
1192 SWIGTYPE_p_Dali__SignalT_bool_fDali__Actor_Dali__TouchEvent_const_RF_t ret = new SWIGTYPE_p_Dali__SignalT_bool_fDali__Actor_Dali__TouchEvent_const_RF_t(NDalicPINVOKE.Actor_TouchedSignal(swigCPtr), false);
1193 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1197 internal ActorTouchDataSignal TouchSignal()
1199 ActorTouchDataSignal ret = new ActorTouchDataSignal(NDalicPINVOKE.Actor_TouchSignal(swigCPtr), false);
1200 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1204 internal ActorHoverSignal HoveredSignal()
1206 ActorHoverSignal ret = new ActorHoverSignal(NDalicPINVOKE.Actor_HoveredSignal(swigCPtr), false);
1207 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1211 internal ActorWheelSignal WheelEventSignal()
1213 ActorWheelSignal ret = new ActorWheelSignal(NDalicPINVOKE.Actor_WheelEventSignal(swigCPtr), false);
1214 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1218 internal ActorSignal OnStageSignal()
1220 ActorSignal ret = new ActorSignal(NDalicPINVOKE.Actor_OnStageSignal(swigCPtr), false);
1221 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1225 internal ActorSignal OffStageSignal()
1227 ActorSignal ret = new ActorSignal(NDalicPINVOKE.Actor_OffStageSignal(swigCPtr), false);
1228 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1232 internal ActorSignal OnRelayoutSignal()
1234 ActorSignal ret = new ActorSignal(NDalicPINVOKE.Actor_OnRelayoutSignal(swigCPtr), false);
1235 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1240 /// Gets/Sets the origin of an actor, within its parent's area.
1241 /// This is expressed in unit coordinates, such that(0.0, 0.0, 0.5) is the top-left corner of the parent, and(1.0, 1.0, 0.5) is the bottom-right corner.
1242 /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).
1243 /// An actor's position is the distance between this origin, and the actor's anchor-point.
1244 /// Precondition : The Actor has been initialized.
1246 public Position ParentOrigin
1250 Position temp = new Position(0.0f, 0.0f, 0.0f);
1251 GetProperty(Actor.Property.PARENT_ORIGIN).Get(temp);
1256 SetProperty(Actor.Property.PARENT_ORIGIN, new Tizen.NUI.PropertyValue(value));
1261 /// Gets/Sets the anchor-point of an actor.
1262 /// This is expressed in unit coordinates, such that (0.0, 0.0, 0.5) is the top-left corner of the actor, and(1.0, 1.0, 0.5) is the bottom-right corner.
1263 /// The default anchor point is AnchorPoint.Center (0.5, 0.5, 0.5).
1264 /// An actor position is the distance between its parent-origin and this anchor-point.
1265 /// An actor's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.
1266 /// Precondition : The Actor has been initialized.
1268 public Position AnchorPoint
1272 Position temp = new Position(0.0f, 0.0f, 0.0f);
1273 GetProperty(Actor.Property.ANCHOR_POINT).Get(temp);
1278 SetProperty(Actor.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
1284 /// Gets/Sets the size of an actor.
1285 /// Geometry can be scaled to fit within this area.
1286 /// This does not interfere with the actors scale factor.
1292 Size temp = new Size(0.0f, 0.0f, 0.0f);
1293 GetProperty(Actor.Property.SIZE).Get(temp);
1298 SetProperty(Actor.Property.SIZE, new Tizen.NUI.PropertyValue(value));
1303 /// Gets/Sets the size width of an actor.
1305 public float SizeWidth
1310 GetProperty(Actor.Property.SIZE_WIDTH).Get(ref temp);
1315 SetProperty(Actor.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue(value));
1320 /// Gets/Sets the size height of an actor.
1322 public float SizeHeight
1327 GetProperty(Actor.Property.SIZE_HEIGHT).Get(ref temp);
1332 SetProperty(Actor.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue(value));
1337 /// Gets/Sets the size depth of an actor.
1339 public float SizeDepth
1344 GetProperty(Actor.Property.SIZE_DEPTH).Get(ref temp);
1349 SetProperty(Actor.Property.SIZE_DEPTH, new Tizen.NUI.PropertyValue(value));
1354 /// Gets/Sets the position of the Actor.
1355 /// By default, sets the position vector between the parent origin and anchor point(default).
1356 /// If Position inheritance if disabled, sets the world position.
1358 public Position Position
1362 Position temp = new Position(0.0f, 0.0f, 0.0f);
1363 GetProperty(Actor.Property.POSITION).Get(temp);
1368 SetProperty(Actor.Property.POSITION, new Tizen.NUI.PropertyValue(value));
1374 /// Gets/Sets the position x of the Actor.
1376 public float PositionX
1381 GetProperty(Actor.Property.POSITION_X).Get(ref temp);
1386 SetProperty(Actor.Property.POSITION_X, new Tizen.NUI.PropertyValue(value));
1391 /// Gets/Sets the position y of the Actor.
1393 public float PositionY
1398 GetProperty(Actor.Property.POSITION_Y).Get(ref temp);
1403 SetProperty(Actor.Property.POSITION_Y, new Tizen.NUI.PropertyValue(value));
1408 /// Gets/Sets the position z of the Actor.
1410 public float PositionZ
1415 GetProperty(Actor.Property.POSITION_Z).Get(ref temp);
1420 SetProperty(Actor.Property.POSITION_Z, new Tizen.NUI.PropertyValue(value));
1425 /// Gets/Sets the world position of the Actor.
1427 public Vector3 WorldPosition
1431 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
1432 GetProperty(Actor.Property.WORLD_POSITION).Get(temp);
1438 /// Gets/Sets the orientation of the Actor.
1439 /// An actor's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.
1440 /// Note: This is an asynchronous method.
1442 public Rotation Orientation
1446 Rotation temp = new Rotation();
1447 GetProperty(Actor.Property.ORIENTATION).Get(temp);
1452 SetProperty(Actor.Property.ORIENTATION, new Tizen.NUI.PropertyValue(value));
1457 /// Gets/Sets the world orientation of the Actor.
1459 public Rotation WorldOrientation
1463 Rotation temp = new Rotation();
1464 GetProperty(Actor.Property.WORLD_ORIENTATION).Get(temp);
1470 /// Gets/Sets the scale factor applied to an actor.
1471 /// Note : This is an asynchronous method.
1473 public Vector3 Scale
1477 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
1478 GetProperty(Actor.Property.SCALE).Get(temp);
1483 SetProperty(Actor.Property.SCALE, new Tizen.NUI.PropertyValue(value));
1488 /// Gets/Sets the scale x factor applied to an actor.
1495 GetProperty(Actor.Property.SCALE_X).Get(ref temp);
1500 SetProperty(Actor.Property.SCALE_X, new Tizen.NUI.PropertyValue(value));
1505 /// Gets/Sets the scale y factor applied to an actor.
1512 GetProperty(Actor.Property.SCALE_Y).Get(ref temp);
1517 SetProperty(Actor.Property.SCALE_Y, new Tizen.NUI.PropertyValue(value));
1522 /// Gets/Sets the scale z factor applied to an actor.
1529 GetProperty(Actor.Property.SCALE_Z).Get(ref temp);
1534 SetProperty(Actor.Property.SCALE_Z, new Tizen.NUI.PropertyValue(value));
1539 /// Gets the world scale of Actor.
1541 public Vector3 WorldScale
1545 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
1546 GetProperty(Actor.Property.WORLD_SCALE).Get(temp);
1552 /// Retrieves the visibility flag of an actor.
1553 /// Note : If an actor is not visible, then the actor and its children will not be rendered.
1554 /// This is regardless of the individual visibility values of the children i.e.an actor will only be rendered if all of its parents have visibility set to true.
1561 GetProperty(Actor.Property.VISIBLE).Get(ref temp);
1564 /* only get is required : removed
1567 SetProperty(Actor.Property.VISIBLE, new Tizen.NUI.PropertyValue(value));
1573 /// Gets/Sets the actor's mix color; this is an RGBA value.
1574 /// The final color of the actor depends on its color mode.
1575 /// Note : This is an asynchronous method.
1577 public Color MixColor
1581 Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
1582 GetProperty(Actor.Property.COLOR).Get(temp);
1587 SetProperty(Actor.Property.COLOR, new Tizen.NUI.PropertyValue(value));
1592 /// Gets/Sets the actor's mix color red.
1594 public float ColorRed
1599 GetProperty(Actor.Property.COLOR_RED).Get(ref temp);
1604 SetProperty(Actor.Property.COLOR_RED, new Tizen.NUI.PropertyValue(value));
1609 /// Gets/Sets the actor's mix color green.
1611 public float ColorGreen
1616 GetProperty(Actor.Property.COLOR_GREEN).Get(ref temp);
1621 SetProperty(Actor.Property.COLOR_GREEN, new Tizen.NUI.PropertyValue(value));
1626 /// Gets/Sets the actor's mix color blue
1628 public float ColorBlue
1633 GetProperty(Actor.Property.COLOR_BLUE).Get(ref temp);
1638 SetProperty(Actor.Property.COLOR_BLUE, new Tizen.NUI.PropertyValue(value));
1643 /// Gets/Sets the actor's mix color alpha.
1645 public float ColorAlpha
1650 GetProperty(Actor.Property.COLOR_ALPHA).Get(ref temp);
1655 SetProperty(Actor.Property.COLOR_ALPHA, new Tizen.NUI.PropertyValue(value));
1660 /// Gets the actor's world color.
1662 public Color WorldColor
1666 Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
1667 GetProperty(Actor.Property.WORLD_COLOR).Get(temp);
1673 /// Gets/Sets the Actor's name.
1680 GetProperty(Actor.Property.NAME).Get(out temp);
1685 SetProperty(Actor.Property.NAME, new Tizen.NUI.PropertyValue(value));
1690 /// Gets/Sets the status of whether an actor should emit touch or hover signals.
1692 public bool Sensitive
1697 GetProperty(Actor.Property.SENSITIVE).Get(ref temp);
1702 SetProperty(Actor.Property.SENSITIVE, new Tizen.NUI.PropertyValue(value));
1707 /// Gets/Sets the status of whether the actor should receive a notification when touch or hover motion events leave the boundary of the actor.
1709 public bool LeaveRequired
1714 GetProperty(Actor.Property.LEAVE_REQUIRED).Get(ref temp);
1719 SetProperty(Actor.Property.LEAVE_REQUIRED, new Tizen.NUI.PropertyValue(value));
1724 /// Gets/Sets the status of whether a child actor inherits it's parent's orientation.
1726 public bool InheritOrientation
1731 GetProperty(Actor.Property.INHERIT_ORIENTATION).Get(ref temp);
1736 SetProperty(Actor.Property.INHERIT_ORIENTATION, new Tizen.NUI.PropertyValue(value));
1741 /// Gets/Sets the status of whether a child actor inherits it's parent's scale.
1743 public bool InheritScale
1748 GetProperty(Actor.Property.INHERIT_SCALE).Get(ref temp);
1753 SetProperty(Actor.Property.INHERIT_SCALE, new Tizen.NUI.PropertyValue(value));
1758 /// Gets/Sets the actor's color mode.
1759 /// This specifies whether the Actor uses its own color, or inherits its parent color.
1760 /// The default is UseOwnMultiplyParentAlpha.
1762 public ColorMode ColorMode
1767 if (GetProperty(Actor.Property.COLOR_MODE).Get(out temp) == false)
1769 //Tizen.Log.Error("NUI", "ColorMode get error!");
1773 case "USE_OWN_COLOR":
1774 return ColorMode.UseOwnColor;
1775 case "USE_PARENT_COLOR":
1776 return ColorMode.UseParentColor;
1777 case "USE_OWN_MULTIPLY_PARENT_COLOR":
1778 return ColorMode.UseOwnMultiplyParentColor;
1779 case "USE_OWN_MULTIPLY_PARENT_ALPHA":
1780 return ColorMode.UseOwnMultiplyParentAlpha;
1782 return ColorMode.UseOwnMultiplyParentAlpha;
1787 SetProperty(Actor.Property.COLOR_MODE, new Tizen.NUI.PropertyValue((int)value));
1793 /// Gets/Sets the status of how the actor and its children should be drawn.
1794 /// Not all actors are renderable, but DrawMode can be inherited from any actor.
1795 /// If an object is in a 3D layer, it will be depth-tested against other objects in the world i.e. it may be obscured if other objects are in front.
1796 /// If DrawMode.Overlay2D is used, the actor and its children will be drawn as a 2D overlay.
1797 /// Overlay actors are drawn in a separate pass, after all non-overlay actors within the Layer.
1798 /// For overlay actors, the drawing order is with respect to tree levels of Actors, and depth-testing will not be used.
1800 public DrawModeType DrawMode
1805 if (GetProperty(Actor.Property.DRAW_MODE).Get(out temp) == false)
1807 //Tizen.Log.Error("NUI", "DrawMode get error!");
1812 return DrawModeType.Normal;
1814 return DrawModeType.Overlay2D;
1816 return DrawModeType.Stencil;
1818 return DrawModeType.Normal;
1823 SetProperty(Actor.Property.DRAW_MODE, new Tizen.NUI.PropertyValue((int)value));
1828 /// Gets/Sets the relative to parent size factor of the actor.
1829 /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.
1830 /// This actor's size is set to the actor's size multiplied by or added to this factor, depending on ResizePolicyType.
1832 public Vector3 SizeModeFactor
1836 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
1837 GetProperty(Actor.Property.SIZE_MODE_FACTOR).Get(temp);
1842 SetProperty(Actor.Property.SIZE_MODE_FACTOR, new Tizen.NUI.PropertyValue(value));
1847 /// Gets/Sets the width resize policy to be used for the given dimension(s).
1849 public ResizePolicyType WidthResizePolicy
1854 if (GetProperty(Actor.Property.WIDTH_RESIZE_POLICY).Get(out temp) == false)
1856 //Tizen.Log.Error("NUI", "WidthResizePolicy get error!");
1861 return ResizePolicyType.Fixed;
1862 case "USE_NATURAL_SIZE":
1863 return ResizePolicyType.UseNaturalSize;
1864 case "FILL_TO_PARENT":
1865 return ResizePolicyType.FillToParent;
1866 case "SIZE_RELATIVE_TO_PARENT":
1867 return ResizePolicyType.SizeRelativeToParent;
1868 case "SIZE_FIXED_OFFSET_FROM_PARENT":
1869 return ResizePolicyType.SizeFixedOffsetFromParent;
1870 case "FIT_TO_CHILDREN":
1871 return ResizePolicyType.FitToChildren;
1872 case "DIMENSION_DEPENDENCY":
1873 return ResizePolicyType.DimensionDependency;
1874 case "USE_ASSIGNED_SIZE":
1875 return ResizePolicyType.UseAssignedSize;
1877 return ResizePolicyType.Fixed;
1882 SetProperty(Actor.Property.WIDTH_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
1887 /// Gets/Sets the height resize policy to be used for the given dimension(s).
1889 public ResizePolicyType HeightResizePolicy
1894 if (GetProperty(Actor.Property.HEIGHT_RESIZE_POLICY).Get(out temp) == false)
1896 //Tizen.Log.Error("NUI", "HeightResizePolicy get error!");
1901 return ResizePolicyType.Fixed;
1902 case "USE_NATURAL_SIZE":
1903 return ResizePolicyType.UseNaturalSize;
1904 case "FILL_TO_PARENT":
1905 return ResizePolicyType.FillToParent;
1906 case "SIZE_RELATIVE_TO_PARENT":
1907 return ResizePolicyType.SizeRelativeToParent;
1908 case "SIZE_FIXED_OFFSET_FROM_PARENT":
1909 return ResizePolicyType.SizeFixedOffsetFromParent;
1910 case "FIT_TO_CHILDREN":
1911 return ResizePolicyType.FitToChildren;
1912 case "DIMENSION_DEPENDENCY":
1913 return ResizePolicyType.DimensionDependency;
1914 case "USE_ASSIGNED_SIZE":
1915 return ResizePolicyType.UseAssignedSize;
1917 return ResizePolicyType.Fixed;
1922 SetProperty(Actor.Property.HEIGHT_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
1927 /// Gets/Sets the policy to use when setting size with size negotiation.
1928 /// Defaults to SizeScalePolicyType.UseSizeSet.
1930 public SizeScalePolicyType SizeScalePolicy
1935 if (GetProperty(Actor.Property.SIZE_SCALE_POLICY).Get(out temp) == false)
1937 //Tizen.Log.Error("NUI", "SizeScalePolicy get error!");
1941 case "USE_SIZE_SET":
1942 return SizeScalePolicyType.UseSizeSet;
1943 case "FIT_WITH_ASPECT_RATIO":
1944 return SizeScalePolicyType.FitWithAspectRatio;
1945 case "FILL_WITH_ASPECT_RATIO":
1946 return SizeScalePolicyType.FillWithAspectRatio;
1948 return SizeScalePolicyType.UseSizeSet;
1953 string valueToString = "";
1956 case SizeScalePolicyType.UseSizeSet:
1958 valueToString = "USE_SIZE_SET";
1961 case SizeScalePolicyType.FitWithAspectRatio:
1963 valueToString = "FIT_WITH_ASPECT_RATIO";
1966 case SizeScalePolicyType.FillWithAspectRatio:
1968 valueToString = "FILL_WITH_ASPECT_RATIO";
1973 valueToString = "USE_SIZE_SET";
1977 SetProperty(Actor.Property.SIZE_SCALE_POLICY, new Tizen.NUI.PropertyValue(valueToString));
1982 /// Gets/Sets the status of whether the width size is dependent on height size.
1984 public bool WidthDependentOnHeight
1989 GetProperty(Actor.Property.WIDTH_FOR_HEIGHT).Get(ref temp);
1994 SetProperty(Actor.Property.WIDTH_FOR_HEIGHT, new Tizen.NUI.PropertyValue(value));
1999 /// Gets/Sets the status of whether the height size is dependent on width size.
2001 public bool HeightDependentOnWidth
2006 GetProperty(Actor.Property.HEIGHT_FOR_WIDTH).Get(ref temp);
2011 SetProperty(Actor.Property.HEIGHT_FOR_WIDTH, new Tizen.NUI.PropertyValue(value));
2016 /// Gets/Sets the padding for use in layout.
2018 public Vector4 Padding
2022 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
2023 GetProperty(Actor.Property.PADDING).Get(temp);
2028 SetProperty(Actor.Property.PADDING, new Tizen.NUI.PropertyValue(value));
2034 /// Gets/Sets the minimum size an actor can be assigned in size negotiation.
2036 public Size2D MinimumSize
2040 Size2D temp = new Size2D(0, 0);
2041 GetProperty(Actor.Property.MINIMUM_SIZE).Get(temp);
2046 SetProperty(Actor.Property.MINIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
2052 /// Gets/Sets the maximum size an actor can be assigned in size negotiation.
2054 public Size2D MaximumSize
2058 Size2D temp = new Size2D(0, 0);
2059 GetProperty(Actor.Property.MAXIMUM_SIZE).Get(temp);
2064 SetProperty(Actor.Property.MAXIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
2069 /// Gets/Sets whether a child actor inherits it's parent's position.
2070 /// Default is to inherit.
2071 /// Switching this off means that using Position sets the actor's world position, i.e. translates from the world origin(0,0,0) to the anchor point of the actor.
2073 public bool InheritPosition
2078 GetProperty(Actor.Property.INHERIT_POSITION).Get(ref temp);
2083 SetProperty(Actor.Property.INHERIT_POSITION, new Tizen.NUI.PropertyValue(value));
2088 /// Gets/Sets clipping behavior(mode) of it's children
2090 public ClippingModeType ClippingMode
2095 if (GetProperty(Actor.Property.CLIPPING_MODE).Get(out temp) == false)
2097 //Tizen.Log.Error("NUI", "ClippingMode get error!");
2102 return ClippingModeType.Disabled;
2103 case "CLIP_CHILDREN":
2104 return ClippingModeType.ClipChildren;
2106 return ClippingModeType.Disabled;
2111 SetProperty(Actor.Property.CLIPPING_MODE, new Tizen.NUI.PropertyValue((int)value));
2118 /// This specifies whether the Actor uses its own color, or inherits
2119 /// ColorMode.UseOwnColor : Actor will use its own color
2120 /// ColorMode.UseParentColor : Actor will use its parent color
2121 /// ColorMode.UseOwnMultiplyParentColor : Actor will blend its color with its parents color.
2122 /// ColorMode.UseOwnMultiplyParentAlpha : Actor will blend its alpha with its parents alpha. This means when parent fades in or out child does as well. This is the default.
2124 public enum ColorMode
2128 UseOwnMultiplyParentColor,
2129 UseOwnMultiplyParentAlpha
2133 /// This specifies the dimesion of width or heigh for size negotiation.
2135 public enum DimensionType
2143 /// This specifies draw mode types
2145 public enum DrawModeType
2153 /// This specifies resize policy types
2155 public enum ResizePolicyType
2160 SizeRelativeToParent,
2161 SizeFixedOffsetFromParent,
2163 DimensionDependency,
2168 /// This specifies size scale policy types
2170 public enum SizeScalePolicyType
2178 /// This specifies clipping mode types
2180 public enum ClippingModeType