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=0947698f11f3d3fc0d652490ebcd66052d22a90e;hp=f65e658a908e0e50fe85ca9b22087f8e088f9268;hb=1730389b12a4a189b54c04ce357a7dba026dd7b8;hpb=82ae5bfae69e5db5845c495270c62b35bf6c3213 diff --git a/plugins/dali-swig/SWIG/events/actor-event.i b/plugins/dali-swig/SWIG/events/actor-event.i index f65e658..0947698 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. @@ -34,7 +34,37 @@ public IntPtr GetPtrfrom ## ClassName () { - return (IntPtr)swigCPtr; + return (IntPtr)swigCPtr; + } + + public Position CurrentPosition + { + get + { + return GetCurrentPosition(); + } + } + + public Size2D Size2D + { + get + { + Size temp = new Size(0.0f,0.0f,0.0f); + GetProperty( Actor.Property.SIZE).Get( temp ); + return new Size2D(temp); + } + set + { + SetProperty( Actor.Property.SIZE, new Dali.Property.Value( new Size(value) ) ); + } + } + + public Size CurrentSize + { + get + { + return GetCurrentSize(); + } } public Actor Parent @@ -45,36 +75,76 @@ } } - public bool Visibility - { + public bool Visibility + { get { 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 Position2D Position2D + { get { - return GetCurrentOpacity(); + Position temp = new Position(0.0f,0.0f,0.0f); + GetProperty( Actor.Property.POSITION).Get( temp ); + return new Position2D(temp); } - } + set + { + SetProperty( Actor.Property.POSITION, new Dali.Property.Value( new Position(value) ) ); + } + } - public bool StateFocusEnable + public Vector2 ScreenPosition + { + get + { + Vector2 temp = new Vector2( 0.0f, 0.0f ); + GetProperty( Actor.Property.SCREEN_POSITION ).Get( temp ); + return temp; + } + } + + protected bool PositionUsesAnchorPoint { + get + { + bool temp = false; + GetProperty( Actor.Property.POSITION_USES_ANCHOR_POINT ).Get( ref temp ); + return temp; + } set { - SetKeyboardFocusable(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 @@ -85,6 +155,20 @@ } } + 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 ) ); + } + } + public void Show() { SetVisible(true); @@ -95,6 +179,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