/*
- * 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.
public IntPtr GetPtrfrom ## ClassName ()
{
- return (IntPtr)swigCPtr;
+ return (IntPtr)swigCPtr;
}
- public Actor Parent
+ public Position CurrentPosition
{
get
{
- return GetParent();
+ return GetCurrentPosition();
}
}
- public bool Visibility
- {
+ public Size2D Size2D
+ {
get
{
- return IsVisible();
+ 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 float Opacity
- {
- set
+ public Size CurrentSize
+ {
+ get
{
- SetOpacity(value);
+ return GetCurrentSize();
}
+ }
+
+ public Actor Parent
+ {
get
{
- return GetCurrentOpacity();
+ return GetParent();
}
- }
+ }
- public bool StateFocusEnable
+ public bool Visibility
+ {
+ get
+ {
+ return IsVisible();
+ }
+ }
+
+ public float Opacity
{
+ get
+ {
+ float temp = 0;
+ GetProperty( Actor.Property.OPACITY ).Get( ref temp );
+ return temp;
+ }
set
{
- SetKeyboardFocusable(value);
+ SetProperty( Actor.Property.OPACITY, new Dali.Property.Value( value ) );
}
+ }
+
+ public Position2D Position2D
+ {
get
{
- return IsKeyboardFocusable();
+ 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 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();
}
}
get
{
int temp = 0;
- GetProperty( Actor.Property.SIBLING_ORDER).Get( ref temp );
+ GetProperty( Actor.Property.SIBLING_ORDER ).Get( ref temp );
return temp;
}
set
{
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