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=273ec47d3ace606430b3433bbf41cbeb17e6c121;hp=1deccbc8dc89b4df045ed380961e127ab21ef0cf;hb=d6d362462e51eea645d7ec1fe1db3af58bb306a8;hpb=572b3ce4fcbd558fbe6a642ad3441b0a3c41e01f diff --git a/plugins/dali-swig/SWIG/events/actor-event.i b/plugins/dali-swig/SWIG/events/actor-event.i old mode 100644 new mode 100755 index 1deccbc..273ec47 --- a/plugins/dali-swig/SWIG/events/actor-event.i +++ b/plugins/dali-swig/SWIG/events/actor-event.i @@ -37,12 +37,27 @@ return (IntPtr)swigCPtr; } + public Position CurrentPosition + { + get + { + return GetCurrentPosition(); + } + } + + public Size3D CurrentSize + { + get + { + return GetCurrentSize(); + } + } + public Actor Parent { get { - Actor parent = GetParent(); - return parent; + return GetParent(); } } @@ -50,21 +65,31 @@ { get { - bool visibility = IsVisible(); - return visibility; + return IsVisible(); } - } + } - public float Opacity - { + public float Opacity + { + get + { + float temp = 0; + GetProperty( Actor.Property.OPACITY ).Get( ref temp ); + return temp; + } set { - SetOpacity(value); + SetProperty( Actor.Property.OPACITY, new Dali.Property.Value( value ) ); } + } + + public Vector2 ScreenPosition + { get { - float ret = GetCurrentOpacity(); - return ret; + Vector2 temp = new Vector2( 0.0f, 0.0f ); + GetProperty( Actor.Property.SCREEN_POSITION ).Get( temp ); + return temp; } } @@ -76,8 +101,29 @@ } get { - bool focusable = IsKeyboardFocusable(); - return focusable; + return IsKeyboardFocusable(); + } + } + + public bool IsOnStage + { + get + { + return OnStage(); + } + } + + public int SiblingOrder + { + get + { + int temp = 0; + GetProperty( Actor.Property.SIBLING_ORDER ).Get( ref temp ); + return temp; + } + set + { + SetProperty( Actor.Property.SIBLING_ORDER, new Dali.Property.Value( value ) ); } } @@ -91,6 +137,42 @@ 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