X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=plugins%2Fdali-swig%2FSWIG%2Fevents%2Factor-event.i;h=fbf5a8e6e7cfd6e13f0379cc13b1d5bc9fce2882;hp=93f803c8edd56ba48f27eb92cd7270c0cdf782b3;hb=190a30974e11c5792335e3b0493bf1c212beec6a;hpb=0ade1ea02b460b002d9cd82cd3023a5107eb6294 diff --git a/plugins/dali-swig/SWIG/events/actor-event.i b/plugins/dali-swig/SWIG/events/actor-event.i index 93f803c..fbf5a8e 100755 --- a/plugins/dali-swig/SWIG/events/actor-event.i +++ b/plugins/dali-swig/SWIG/events/actor-event.i @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * 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. @@ -37,65 +37,93 @@ return (IntPtr)swigCPtr; } - public Actor Parent + public Position CurrentPosition { get { - return GetParent(); + return GetCurrentPosition(); } } - public bool Visibility - { + public Size3D CurrentSize + { get { - return IsVisible(); + return GetCurrentSize(); } } - public float Opacity - { - set + public Actor Parent + { + get { - SetOpacity(value); + return GetParent(); } + } + + public bool Visibility + { get { - return GetCurrentOpacity(); + return IsVisible(); } } - public bool StateFocusEnable + public float Opacity { - set + get { - SetKeyboardFocusable(value); + float temp = 0; + GetProperty( Actor.Property.OPACITY ).Get( ref temp ); + return temp; } - get + set { - return IsKeyboardFocusable(); + SetProperty( Actor.Property.OPACITY, new Dali.Property.Value( value ) ); } } - public bool IsOnStage + public Vector2 ScreenPosition { get { - return OnStage(); + Vector2 temp = new Vector2( 0.0f, 0.0f ); + GetProperty( Actor.Property.SCREEN_POSITION ).Get( temp ); + return temp; } } - public bool BatchParent + protected bool PositionUsesAnchorPoint { get { bool temp = false; - GetProperty( Actor.Property.BATCH_PARENT).Get( ref temp ); + GetProperty( Actor.Property.POSITION_USES_ANCHOR_POINT ).Get( ref temp ); return temp; } set { - SetProperty( Actor.Property.BATCH_PARENT, new Dali.Property.Value( value ) ); + SetProperty( Actor.Property.POSITION_USES_ANCHOR_POINT, new Dali.Property.Value( value ) ); + } + } + + public bool StateFocusEnable + { + get + { + return IsKeyboardFocusable(); + } + set + { + SetKeyboardFocusable(value); + } + } + + public bool IsOnStage + { + get + { + return OnStage(); } } @@ -104,7 +132,7 @@ get { int temp = 0; - GetProperty( Actor.Property.SIBLING_ORDER).Get( ref temp ); + GetProperty( Actor.Property.SIBLING_ORDER ).Get( ref temp ); return temp; } set @@ -122,6 +150,43 @@ { SetVisible(false); } + + public void Raise() + { + NDalicPINVOKE.Raise(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public void Lower() + { + NDalicPINVOKE.Lower(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public void RaiseToTop() + { + NDalicPINVOKE.RaiseToTop(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public void LowerToBottom() + { + NDalicPINVOKE.LowerToBottom(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public void RaiseAbove(Actor target) + { + NDalicPINVOKE.RaiseAbove(swigCPtr, Actor.getCPtr(target)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public void LowerBelow(Actor target) + { + NDalicPINVOKE.RaiseAbove(swigCPtr, Actor.getCPtr(target)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + %} %enddef