DALi C# binding - Write pure C# Color & Position classes and use typemaps to do the...
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / SWIG / events / actor-event.i
index 4a5f51f..3e47016 100644 (file)
 %define ACTOR_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
   %typemap(cscode) NameSpace::ClassName %{
 
+    public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
+      ClassName ret = new ClassName(cPtr, false);
+      if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+      return ret;
+    }
 
-    /**
-      * @brief Event arguments that passed via Touch signal
-      *
-      */
-    public class TouchEventArgs : EventArgs
-    {
-       private Actor _actor;
-       private TouchData _touchData;
+    public IntPtr GetPtrfrom ## ClassName ()
+    {
+       return (IntPtr)swigCPtr;
+    }
 
-      /**
-        * @brief Actor - is the actor that is being touched
-        *
-        */
-      public Actor Actor
+    public Actor Parent
+    {
+      get
       {
-        get
-        {
-          return _actor;
-        }
-        set
-        {
-          _actor = value;
-        }
+        Actor parent = GetParent();
+        return parent;
       }
+    }
 
-      /**
-        * @brief TouchData - contains the information of touch points
-        *
-        */
-      public TouchData TouchData
+   public bool Visibility
+   {
+      get
       {
-        get
-        {
-          return _touchData;
-        }
-        set
-        {
-          _touchData = value;
-        }
+        bool visibility = IsVisible();
+        return visibility;
       }
     }
 
-    /**
-      * @brief Event arguments that passed via Hover signal
-      *
-      */
-    public class HoverEventArgs : EventArgs
-    {
-    private Actor _actor;
-    private HoverEvent _hoverEvent;
-
-      /**
-        * @brief Actor - is the actor that is being hovered
-        *
-        */
-      public Actor Actor
+   public float Opacity
+   {
+      set
       {
-        get
-        {
-          return _actor;
-        }
-        set
-        {
-          _actor = value;
-        }
+        SetOpacity(value);
       }
-
-      /**
-        * @brief HoverEvent - contains touch points that represent the points
-        * that are currently being hovered or the points where a hover has stopped
-        *
-        */
-      public HoverEvent HoverEvent
+      get
       {
-        get
-        {
-          return _hoverEvent;
-        }
-        set
-        {
-          _hoverEvent = value;
-        }
+        float ret = GetCurrentOpacity();
+        return ret;
       }
-    }
-
-    /**
-      * @brief Event arguments that passed via Wheel signal
-      *
-      */
-    public class WheelEventArgs : EventArgs
-    {
-    private Actor _actor;
-    private WheelEvent _wheelEvent;
+   }
 
-      /**
-        * @brief Actor - is the actor that is being wheeled
-        *
-        */
-      public Actor Actor
+    public bool StateFocusEnable
+    {
+      set
       {
-        get
-        {
-          return _actor;
-        }
-        set
-        {
-          _actor = value;
-        }
+        SetKeyboardFocusable(value);
       }
-
-      /**
-        * @brief WheelEvent - store a wheel rolling type : MOUSE_WHEEL or CUSTOM_WHEEL
-        *
-        */
-      public WheelEvent WheelEvent
+      get
       {
-        get
-        {
-          return _wheelEvent;
-        }
-        set
-        {
-          _wheelEvent = value;
-        }
+        bool focusable = IsKeyboardFocusable();
+        return focusable;
       }
     }
 
-    /**
-      * @brief Event arguments that passed via OnStage signal
-      *
-      */
-    public class OnStageEventArgs : EventArgs
+    public void Show()
     {
-    private Actor _actor;
-
-      /**
-        * @brief Actor - is the actor that is being connected to the stage
-        *
-        */
-      public Actor Actor
-      {
-        get
-        {
-          return _actor;
-        }
-        set
-        {
-          _actor = value;
-        }
-      }
+      SetVisible(true);
     }
 
-    /**
-      * @brief Event arguments that passed via OffStage signal
-      *
-      */
-    public class OffStageEventArgs : EventArgs
+    public void Hide()
     {
-    private Actor _actor;
-
-      /**
-        * @brief Actor - is the actor that is being disconnected from the stage
-        *
-        */
-      public Actor Actor
-      {
-        get
-        {
-          return _actor;
-        }
-        set
-        {
-          _actor = value;
-        }
-      }
+      SetVisible(false);
     }
 
-    /**
-      * @brief Event arguments that passed via OnRelayout signal
-      *
-      */
-    public class OnRelayoutEventArgs : EventArgs
-    {
-      private Actor _actor;
+/* Properties earlier added by Ruby Script */
 
-      /**
-        * @brief Actor - is the actor that is being resized upon relayout
-        *
-        */
-      public Actor Actor
-      {
-        get
-        {
-          return _actor;
-        }
-        set
-        {
-          _actor = value;
-        }
-      }
+  public Dali.CSharp.Position ParentOrigin
+  {
+    get
+    {
+      Vector3 temp = new Vector3(0.0f,0.0f,0.0f);
+      GetProperty( Actor.Property.PARENT_ORIGIN).Get(  temp );
+      Dali.CSharp.Position ret = new Dali.CSharp.Position(temp.x, temp.y, temp.z);
+      return ret;
     }
-
-
-    [UnmanagedFunctionPointer(CallingConvention.StdCall)]
-    private delegate bool TouchCallbackDelegate(IntPtr actor, IntPtr touchData);
-    private DaliEventHandlerWithReturnType<object,TouchEventArgs,bool> _actorTouchDataEventHandler;
-    private TouchCallbackDelegate _actorTouchDataCallbackDelegate;
-
-    [UnmanagedFunctionPointer(CallingConvention.StdCall)]
-    private delegate bool HoverEventCallbackDelegate(IntPtr actor, IntPtr hoverEvent);
-    private DaliEventHandlerWithReturnType<object,HoverEventArgs,bool> _actorHoverEventHandler;
-    private HoverEventCallbackDelegate _actorHoverEventCallbackDelegate;
-
-    [UnmanagedFunctionPointer(CallingConvention.StdCall)]
-    private delegate bool WheelEventCallbackDelegate(IntPtr actor, IntPtr wheelEvent);
-    private DaliEventHandlerWithReturnType<object,WheelEventArgs,bool> _actorWheelEventHandler;
-    private WheelEventCallbackDelegate _actorWheelEventCallbackDelegate;
-
-    [UnmanagedFunctionPointer(CallingConvention.StdCall)]
-    private delegate void OnStageEventCallbackDelegate(IntPtr actor);
-    private DaliEventHandler<object,OnStageEventArgs> _actorOnStageEventHandler;
-    private OnStageEventCallbackDelegate _actorOnStageEventCallbackDelegate;
-
-    [UnmanagedFunctionPointer(CallingConvention.StdCall)]
-    private delegate void OffStageEventCallbackDelegate(IntPtr actor);
-    private DaliEventHandler<object,OffStageEventArgs> _actorOffStageEventHandler;
-    private OffStageEventCallbackDelegate _actorOffStageEventCallbackDelegate;
-
-    [UnmanagedFunctionPointer(CallingConvention.StdCall)]
-    private delegate void OnRelayoutEventCallbackDelegate(IntPtr actor);
-    private DaliEventHandler<object,OnRelayoutEventArgs> _actorOnRelayoutEventHandler;
-    private OnRelayoutEventCallbackDelegate _actorOnRelayoutEventCallbackDelegate;
-
-    /**
-      * @brief Event for Touched signal which can be used to subscribe/unsubscribe the event handler
-      * (in the type of TouchEventHandler-DaliEventHandlerWithReturnType<object,TouchEventArgs,bool>)
-      * provided by the user. Touched signal is emitted when touch input is received.
-      */
-    public event DaliEventHandlerWithReturnType<object,TouchEventArgs,bool> Touched
-    {
-      add
-      {
-        lock(this)
-        {
-          // Restricted to only one listener
-          if (_actorTouchDataEventHandler == null)
-          {
-            _actorTouchDataEventHandler += value;
-
-            _actorTouchDataCallbackDelegate = new TouchCallbackDelegate(OnTouch);
-            this.TouchSignal().Connect(_actorTouchDataCallbackDelegate);
-          }
-        }
-      }
-
-      remove
-      {
-        lock(this)
-        {
-          if (_actorTouchDataEventHandler != null)
-          {
-            this.TouchSignal().Disconnect(_actorTouchDataCallbackDelegate);
-          }
-
-          _actorTouchDataEventHandler -= value;
-        }
-      }
+    set
+    {
+      SetProperty( Actor.Property.PARENT_ORIGIN, new Dali.Property.Value( value ) );
     }
-
-    // Callback for Actor TouchSignal
-    private bool OnTouch(IntPtr actor, IntPtr touchData)
+  }
+  public float ParentOriginX
+  {
+    get
     {
-      TouchEventArgs e = new TouchEventArgs();
-
-      // Populate all members of "e" (TouchEventArgs) with real data
-      e.Actor = Actor.GetActorFromPtr(actor);
-      e.TouchData = Dali.TouchData.GetTouchDataFromPtr(touchData);
-
-      if (_actorTouchDataEventHandler != null)
-      {
-        //here we send all data to user event handlers
-        return _actorTouchDataEventHandler(this, e);
-      }
-
-      return false;
+      float temp = 0.0f;
+      GetProperty( Actor.Property.PARENT_ORIGIN_X).Get( ref temp );
+      return temp;
     }
-
-    /**
-      * @brief Event for Hovered signal which can be used to subscribe/unsubscribe the event handler
-      * (in the type of HoverEventHandler-DaliEventHandlerWithReturnType<object,HoverEventArgs,bool>)
-      * provided by the user. Hovered signal is emitted when hover input is received.
-      */
-    public event DaliEventHandlerWithReturnType<object,HoverEventArgs,bool> Hovered
-    {
-      add
-      {
-        lock(this)
-        {
-          // Restricted to only one listener
-          if (_actorHoverEventHandler == null)
-          {
-            _actorHoverEventHandler += value;
-
-            _actorHoverEventCallbackDelegate = new HoverEventCallbackDelegate(OnHoverEvent);
-            this.HoveredSignal().Connect(_actorHoverEventCallbackDelegate);
-          }
-        }
-      }
-
-      remove
-      {
-        lock(this)
-        {
-          if (_actorHoverEventHandler != null)
-          {
-            this.HoveredSignal().Disconnect(_actorHoverEventCallbackDelegate);
-          }
-
-          _actorHoverEventHandler -= value;
-        }
-      }
+    set
+    {
+      SetProperty( Actor.Property.PARENT_ORIGIN_X, new Dali.Property.Value( value ) );
     }
-
-    // Callback for Actor Hover signal
-    private bool OnHoverEvent(IntPtr actor, IntPtr hoverEvent)
+  }
+  public float ParentOriginY
+  {
+    get
     {
-      HoverEventArgs e = new HoverEventArgs();
-
-      // Populate all members of "e" (HoverEventArgs) with real data
-      e.Actor = Actor.GetActorFromPtr(actor);
-      e.HoverEvent = Dali.HoverEvent.GetHoverEventFromPtr(hoverEvent);
-
-      if (_actorHoverEventHandler != null)
-      {
-        //here we send all data to user event handlers
-        return _actorHoverEventHandler(this, e);
-      }
-
-      return false;
+      float temp = 0.0f;
+      GetProperty( Actor.Property.PARENT_ORIGIN_Y).Get( ref temp );
+      return temp;
     }
-
-    /**
-      * @brief Event for WheelMoved signal which can be used to subscribe/unsubscribe the event handler
-      * (in the type of WheelEventHandler-DaliEventHandlerWithReturnType<object,WheelEventArgs,bool>)
-      * provided by the user. WheelMoved signal is emitted when wheel event is received.
-      */
-    public event DaliEventHandlerWithReturnType<object,WheelEventArgs,bool> WheelMoved
-    {
-      add
-      {
-        lock(this)
-        {
-          // Restricted to only one listener
-          if (_actorWheelEventHandler == null)
-          {
-            _actorWheelEventHandler += value;
-
-            _actorWheelEventCallbackDelegate = new WheelEventCallbackDelegate(OnWheelEvent);
-            this.WheelEventSignal().Connect(_actorWheelEventCallbackDelegate);
-          }
-        }
-      }
-
-      remove
-      {
-        lock(this)
-        {
-          if (_actorWheelEventHandler != null)
-          {
-            this.WheelEventSignal().Disconnect(_actorWheelEventCallbackDelegate);
-          }
-
-          _actorWheelEventHandler -= value;
-        }
-      }
+    set
+    {
+      SetProperty( Actor.Property.PARENT_ORIGIN_Y, new Dali.Property.Value( value ) );
     }
-
-    // Callback for Actor Wheel signal
-    private bool OnWheelEvent(IntPtr actor, IntPtr wheelEvent)
+  }
+  public float ParentOriginZ
+  {
+    get
     {
-      WheelEventArgs e = new WheelEventArgs();
-
-      // Populate all members of "e" (WheelEventArgs) with real data
-      e.Actor = Actor.GetActorFromPtr(actor);
-      e.WheelEvent = Dali.WheelEvent.GetWheelEventFromPtr(wheelEvent);
-
-      if (_actorWheelEventHandler != null)
-      {
-        //here we send all data to user event handlers
-        return _actorWheelEventHandler(this, e);
-      }
-
-      return false;
+      float temp = 0.0f;
+      GetProperty( Actor.Property.PARENT_ORIGIN_Z).Get( ref temp );
+      return temp;
     }
-
-    /**
-      * @brief Event for OnStage signal which can be used to subscribe/unsubscribe the event handler
-      * (in the type of OnStageEventHandler) provided by the user.
-      * OnStage signal is emitted after the actor has been connected to the stage.
-      */
-    public event DaliEventHandler<object,OnStageEventArgs> OnStageEvent
-    {
-      add
-      {
-        lock(this)
-        {
-          // Restricted to only one listener
-          if (_actorOnStageEventHandler == null)
-          {
-            _actorOnStageEventHandler += value;
-
-            _actorOnStageEventCallbackDelegate = new OnStageEventCallbackDelegate(OnStage);
-            this.OnStageSignal().Connect(_actorOnStageEventCallbackDelegate);
-          }
-        }
-      }
-
-      remove
-      {
-        lock(this)
-        {
-          if (_actorOnStageEventHandler != null)
-          {
-            this.OnStageSignal().Disconnect(_actorOnStageEventCallbackDelegate);
-          }
-
-          _actorOnStageEventHandler -= value;
-        }
-      }
+    set
+    {
+      SetProperty( Actor.Property.PARENT_ORIGIN_Z, new Dali.Property.Value( value ) );
     }
-
-    // Callback for Actor OnStage signal
-    private void OnStage(IntPtr data)
+  }
+  public Dali.CSharp.Position AnchorPoint
+  {
+    get
     {
-      OnStageEventArgs e = new OnStageEventArgs();
-
-      // Populate all members of "e" (OnStageEventArgs) with real data
-      e.Actor = Actor.GetActorFromPtr(data);
-
-      if (_actorOnStageEventHandler != null)
-      {
-        //here we send all data to user event handlers
-        _actorOnStageEventHandler(this, e);
-      }
+      Vector3 temp = new Vector3(0.0f,0.0f,0.0f);
+      GetProperty( Actor.Property.ANCHOR_POINT).Get(  temp );
+      Dali.CSharp.Position ret = new Dali.CSharp.Position(temp.x, temp.y, temp.z);
+      return ret;
     }
-
-    /**
-      * @brief Event for OffStage signal which can be used to subscribe/unsubscribe the event handler
-      * (in the type of OffStageEventHandler) provided by the user.
-      * OffStage signal is emitted after the actor has been disconnected from the stage.
-      */
-    public event DaliEventHandler<object,OffStageEventArgs> OffStageEvent
-    {
-      add
-      {
-        lock(this)
-        {
-          // Restricted to only one listener
-          if (_actorOffStageEventHandler == null)
-          {
-            _actorOffStageEventHandler += value;
-
-            _actorOffStageEventCallbackDelegate = new OffStageEventCallbackDelegate(OffStage);
-            this.OnStageSignal().Connect(_actorOffStageEventCallbackDelegate);
-          }
-        }
-      }
-
-      remove
-      {
-        lock(this)
-        {
-          if (_actorOffStageEventHandler != null)
-          {
-            this.OnStageSignal().Disconnect(_actorOffStageEventCallbackDelegate);
-          }
-
-          _actorOffStageEventHandler -= value;
-        }
-      }
+    set
+    {
+      SetProperty( Actor.Property.ANCHOR_POINT, new Dali.Property.Value( value ) );
     }
-
-    // Callback for Actor OffStage signal
-    private void OffStage(IntPtr data)
+  }
+  public float AnchorPointX
+  {
+    get
     {
-      OffStageEventArgs e = new OffStageEventArgs();
-
-      // Populate all members of "e" (OffStageEventArgs) with real data
-      e.Actor = Actor.GetActorFromPtr(data);
-
-      if (_actorOffStageEventHandler != null)
-      {
-        //here we send all data to user event handlers
-        _actorOffStageEventHandler(this, e);
-      }
+      float temp = 0.0f;
+      GetProperty( Actor.Property.ANCHOR_POINT_X).Get( ref temp );
+      return temp;
     }
-
-    /**
-      * @brief Event for OnRelayout signal which can be used to subscribe/unsubscribe the event handler
-      * (in the type of OnRelayoutEventHandler) provided by the user.
-      * OnRelayout signal is emitted after the size has been set on the actor during relayout.
-      */
-    public event DaliEventHandler<object,OnRelayoutEventArgs> OnRelayoutEvent
-    {
-      add
-      {
-        lock(this)
-        {
-          // Restricted to only one listener
-          if (_actorOnRelayoutEventHandler == null)
-          {
-            _actorOnRelayoutEventHandler += value;
-
-            _actorOnRelayoutEventCallbackDelegate = new OnRelayoutEventCallbackDelegate(OnRelayout);
-            this.OnRelayoutSignal().Connect(_actorOnRelayoutEventCallbackDelegate);
-          }
-        }
-      }
-
-      remove
-      {
-        lock(this)
-        {
-          if (_actorOnRelayoutEventHandler != null)
-          {
-            this.OnRelayoutSignal().Disconnect(_actorOnRelayoutEventCallbackDelegate);
-          }
-
-          _actorOnRelayoutEventHandler -= value;
-        }
-      }
+    set
+    {
+      SetProperty( Actor.Property.ANCHOR_POINT_X, new Dali.Property.Value( value ) );
     }
-
-    // Callback for Actor OnRelayout signal
-    private void OnRelayout(IntPtr data)
+  }
+  public float AnchorPointY
+  {
+    get
     {
-      OnRelayoutEventArgs e = new OnRelayoutEventArgs();
-
-      // Populate all members of "e" (OnRelayoutEventArgs) with real data
-      e.Actor = Actor.GetActorFromPtr(data);
-
-      if (_actorOnRelayoutEventHandler != null)
-      {
-        //here we send all data to user event handlers
-        _actorOnRelayoutEventHandler(this, e);
-      }
+      float temp = 0.0f;
+      GetProperty( Actor.Property.ANCHOR_POINT_Y).Get( ref temp );
+      return temp;
     }
-
-    public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
-      ClassName ret = new ClassName(cPtr, false);
-      if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+    set
+    {
+      SetProperty( Actor.Property.ANCHOR_POINT_Y, new Dali.Property.Value( value ) );
+    }
+  }
+  public float AnchorPointZ
+  {
+    get
+    {
+      float temp = 0.0f;
+      GetProperty( Actor.Property.ANCHOR_POINT_Z).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.ANCHOR_POINT_Z, new Dali.Property.Value( value ) );
+    }
+  }
+  public Dali.CSharp.Position Size
+  {
+    get
+    {
+      Vector3 temp = new Vector3(0.0f,0.0f,0.0f);
+      GetProperty( Actor.Property.SIZE).Get(  temp );
+      Dali.CSharp.Position ret = new Dali.CSharp.Position(temp.x, temp.y, temp.z);
       return ret;
     }
-
-    public IntPtr GetPtrfrom ## ClassName ()
+    set
     {
-       return (IntPtr)swigCPtr;
+      SetProperty( Actor.Property.SIZE, new Dali.Property.Value( value ) );
     }
-
-    public Actor Parent
+  }
+  public float SizeWidth
+  {
+    get
     {
-      get
-      {
-        Actor parent = GetParent();
-        return parent;
-      }
+      float temp = 0.0f;
+      GetProperty( Actor.Property.SIZE_WIDTH).Get( ref temp );
+      return temp;
     }
-
-   public bool Vibility
-   {
-      get
-      {
-        bool visibility = IsVisible();
-        return visibility;
-      }
+    set
+    {
+      SetProperty( Actor.Property.SIZE_WIDTH, new Dali.Property.Value( value ) );
     }
-
-   public float Opacity
-   {
-      set
-      {
-        SetOpacity(value);
-      }
+  }
+  public float SizeHeight
+  {
+    get
+    {
+      float temp = 0.0f;
+      GetProperty( Actor.Property.SIZE_HEIGHT).Get( ref temp );
+      return temp;
     }
-
-   public float CurrentOpacity
-   {
-      get
-      {
-        float ret = GetCurrentOpacity();
-        return ret;
-      }
+    set
+    {
+      SetProperty( Actor.Property.SIZE_HEIGHT, new Dali.Property.Value( value ) );
     }
-
-    public bool StateFocusEnable
+  }
+  public float SizeDepth
+  {
+    get
     {
-      set
-      {
-        SetKeyboardFocusable(value);
-      }
-      get
-      {
-        bool focusable = IsKeyboardFocusable();
-        return focusable;
-      }
+      float temp = 0.0f;
+      GetProperty( Actor.Property.SIZE_DEPTH).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.SIZE_DEPTH, new Dali.Property.Value( value ) );
+    }
+  }
+  public Dali.CSharp.Position Position
+  {
+    get
+    {
+      Vector3 temp = new Vector3(0.0f,0.0f,0.0f);
+      GetProperty( Actor.Property.POSITION).Get(  temp );
+      Dali.CSharp.Position ret = new Dali.CSharp.Position(temp.x, temp.y, temp.z);
+      return ret;
+    }
+    set
+    {
+      SetProperty( Actor.Property.POSITION, new Dali.Property.Value( value ) );
+    }
+  }
+  public float PositionX
+  {
+    get
+    {
+      float temp = 0.0f;
+      GetProperty( Actor.Property.POSITION_X).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.POSITION_X, new Dali.Property.Value( value ) );
+    }
+  }
+  public float PositionY
+  {
+    get
+    {
+      float temp = 0.0f;
+      GetProperty( Actor.Property.POSITION_Y).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.POSITION_Y, new Dali.Property.Value( value ) );
+    }
+  }
+  public float PositionZ
+  {
+    get
+    {
+      float temp = 0.0f;
+      GetProperty( Actor.Property.POSITION_Z).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.POSITION_Z, new Dali.Property.Value( value ) );
+    }
+  }
+  public Dali.CSharp.Position WorldPosition
+  {
+    get
+    {
+      Vector3 temp = new Vector3(0.0f,0.0f,0.0f);
+      GetProperty( Actor.Property.WORLD_POSITION).Get(  temp );
+      Dali.CSharp.Position ret = new Dali.CSharp.Position(temp.x, temp.y, temp.z);
+      return ret;
+    }
+}  public float WorldPositionX
+  {
+    get
+    {
+      float temp = 0.0f;
+      GetProperty( Actor.Property.WORLD_POSITION_X).Get( ref temp );
+      return temp;
+    }
+}  public float WorldPositionY
+  {
+    get
+    {
+      float temp = 0.0f;
+      GetProperty( Actor.Property.WORLD_POSITION_Y).Get( ref temp );
+      return temp;
+    }
+}  public float WorldPositionZ
+  {
+    get
+    {
+      float temp = 0.0f;
+      GetProperty( Actor.Property.WORLD_POSITION_Z).Get( ref temp );
+      return temp;
+    }
+}  public Quaternion Orientation
+  {
+    get
+    {
+      Quaternion temp = new Quaternion();
+      GetProperty( Actor.Property.ORIENTATION).Get(  temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.ORIENTATION, new Dali.Property.Value( value ) );
+    }
+  }
+  public Quaternion WorldOrientation
+  {
+    get
+    {
+      Quaternion temp = new Quaternion();
+      GetProperty( Actor.Property.WORLD_ORIENTATION).Get(  temp );
+      return temp;
     }
+}  public Dali.CSharp.Position Scale
+  {
+    get
+    {
+      Vector3 temp = new Vector3(0.0f,0.0f,0.0f);
+      GetProperty( Actor.Property.SCALE).Get(  temp );
+      Dali.CSharp.Position ret = new Dali.CSharp.Position(temp.x, temp.y, temp.z);
+      return ret;
+    }
+    set
+    {
+      SetProperty( Actor.Property.SCALE, new Dali.Property.Value( value ) );
+    }
+  }
+  public float ScaleX
+  {
+    get
+    {
+      float temp = 0.0f;
+      GetProperty( Actor.Property.SCALE_X).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.SCALE_X, new Dali.Property.Value( value ) );
+    }
+  }
+  public float ScaleY
+  {
+    get
+    {
+      float temp = 0.0f;
+      GetProperty( Actor.Property.SCALE_Y).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.SCALE_Y, new Dali.Property.Value( value ) );
+    }
+  }
+  public float ScaleZ
+  {
+    get
+    {
+      float temp = 0.0f;
+      GetProperty( Actor.Property.SCALE_Z).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.SCALE_Z, new Dali.Property.Value( value ) );
+    }
+  }
+  public Dali.CSharp.Position WorldScale
+  {
+    get
+    {
+      Vector3 temp = new Vector3(0.0f,0.0f,0.0f);
+      GetProperty( Actor.Property.WORLD_SCALE).Get(  temp );
+      Dali.CSharp.Position ret = new Dali.CSharp.Position(temp.x, temp.y, temp.z);
+      return ret;
+    }
+}  public bool Visible
+  {
+    get
+    {
+      bool temp = false;
+      GetProperty( Actor.Property.VISIBLE).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.VISIBLE, new Dali.Property.Value( value ) );
+    }
+  }
+  public Dali.CSharp.Color Color
+  {
+    get
+    {
+      Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
+      GetProperty( Actor.Property.COLOR).Get(  temp );
+      Dali.CSharp.Color ret = new Dali.CSharp.Color(temp.x, temp.y, temp.z, temp.w);
+      return ret;
+    }
+    set
+    {
+      SetProperty( Actor.Property.COLOR, new Dali.Property.Value( value ) );
+    }
+  }
+  public float ColorRed
+  {
+    get
+    {
+      float temp = 0.0f;
+      GetProperty( Actor.Property.COLOR_RED).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.COLOR_RED, new Dali.Property.Value( value ) );
+    }
+  }
+  public float ColorGreen
+  {
+    get
+    {
+      float temp = 0.0f;
+      GetProperty( Actor.Property.COLOR_GREEN).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.COLOR_GREEN, new Dali.Property.Value( value ) );
+    }
+  }
+  public float ColorBlue
+  {
+    get
+    {
+      float temp = 0.0f;
+      GetProperty( Actor.Property.COLOR_BLUE).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.COLOR_BLUE, new Dali.Property.Value( value ) );
+    }
+  }
+  public float ColorAlpha
+  {
+    get
+    {
+      float temp = 0.0f;
+      GetProperty( Actor.Property.COLOR_ALPHA).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.COLOR_ALPHA, new Dali.Property.Value( value ) );
+    }
+  }
+  public Dali.CSharp.Color WorldColor
+  {
+    get
+    {
+      Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
+      GetProperty( Actor.Property.WORLD_COLOR).Get(  temp );
+      Dali.CSharp.Color ret = new Dali.CSharp.Color(temp.r, temp.g, temp.b, temp.a);
+      return ret;
+    }
+}  public Matrix WorldMatrix
+  {
+    get
+    {
+      Matrix temp = new Matrix();
+      GetProperty( Actor.Property.WORLD_MATRIX).Get(  temp );
+      return temp;
+    }
+}  public string Name
+  {
+    get
+    {
+      string temp;
+      GetProperty( Actor.Property.NAME).Get( out temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.NAME, new Dali.Property.Value( value ) );
+    }
+  }
+  public bool Sensitive
+  {
+    get
+    {
+      bool temp = false;
+      GetProperty( Actor.Property.SENSITIVE).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.SENSITIVE, new Dali.Property.Value( value ) );
+    }
+  }
+  public bool LeaveRequired
+  {
+    get
+    {
+      bool temp = false;
+      GetProperty( Actor.Property.LEAVE_REQUIRED).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.LEAVE_REQUIRED, new Dali.Property.Value( value ) );
+    }
+  }
+  public bool InheritOrientation
+  {
+    get
+    {
+      bool temp = false;
+      GetProperty( Actor.Property.INHERIT_ORIENTATION).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.INHERIT_ORIENTATION, new Dali.Property.Value( value ) );
+    }
+  }
+  public bool InheritScale
+  {
+    get
+    {
+      bool temp = false;
+      GetProperty( Actor.Property.INHERIT_SCALE).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.INHERIT_SCALE, new Dali.Property.Value( value ) );
+    }
+  }
+  public string ColorMode
+  {
+    get
+    {
+      string temp;
+      GetProperty( Actor.Property.COLOR_MODE).Get( out temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.COLOR_MODE, new Dali.Property.Value( value ) );
+    }
+  }
+  public string PositionInheritance
+  {
+    get
+    {
+      string temp;
+      GetProperty( Actor.Property.POSITION_INHERITANCE).Get( out temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.POSITION_INHERITANCE, new Dali.Property.Value( value ) );
+    }
+  }
+  public string DrawMode
+  {
+    get
+    {
+      string temp;
+      GetProperty( Actor.Property.DRAW_MODE).Get( out temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.DRAW_MODE, new Dali.Property.Value( value ) );
+    }
+  }
+  public Dali.CSharp.Position SizeModeFactor
+  {
+    get
+    {
+      Vector3 temp = new Vector3(0.0f,0.0f,0.0f);
+      GetProperty( Actor.Property.SIZE_MODE_FACTOR).Get(  temp );
+      Dali.CSharp.Position ret = new Dali.CSharp.Position(temp.x, temp.y, temp.z);
+      return ret;
+    }
+    set
+    {
+      SetProperty( Actor.Property.SIZE_MODE_FACTOR, new Dali.Property.Value( value ) );
+    }
+  }
+  public string WidthResizePolicy
+  {
+    get
+    {
+      string temp;
+      GetProperty( Actor.Property.WIDTH_RESIZE_POLICY).Get( out temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.WIDTH_RESIZE_POLICY, new Dali.Property.Value( value ) );
+    }
+  }
+  public string HeightResizePolicy
+  {
+    get
+    {
+      string temp;
+      GetProperty( Actor.Property.HEIGHT_RESIZE_POLICY).Get( out temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.HEIGHT_RESIZE_POLICY, new Dali.Property.Value( value ) );
+    }
+  }
+  public string SizeScalePolicy
+  {
+    get
+    {
+      string temp;
+      GetProperty( Actor.Property.SIZE_SCALE_POLICY).Get( out temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.SIZE_SCALE_POLICY, new Dali.Property.Value( value ) );
+    }
+  }
+  public bool WidthForHeight
+  {
+    get
+    {
+      bool temp = false;
+      GetProperty( Actor.Property.WIDTH_FOR_HEIGHT).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.WIDTH_FOR_HEIGHT, new Dali.Property.Value( value ) );
+    }
+  }
+  public bool HeightForWidth
+  {
+    get
+    {
+      bool temp = false;
+      GetProperty( Actor.Property.HEIGHT_FOR_WIDTH).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.HEIGHT_FOR_WIDTH, new Dali.Property.Value( value ) );
+    }
+  }
+  public Vector4 Padding
+  {
+    get
+    {
+      Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
+      GetProperty( Actor.Property.PADDING).Get(  temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.PADDING, new Dali.Property.Value( value ) );
+    }
+  }
+  public Dali.CSharp.Size MinimumSize
+  {
+    get
+    {
+      Vector2 temp = new Vector2(0.0f,0.0f);
+      GetProperty( Actor.Property.MINIMUM_SIZE).Get(  temp );
+      Dali.CSharp.Size ret = new Dali.CSharp.Size(temp.x, temp.y);
+      return ret;
+    }
+    set
+    {
+      SetProperty( Actor.Property.MINIMUM_SIZE, new Dali.Property.Value( value ) );
+    }
+  }
+  public Dali.CSharp.Size MaximumSize
+  {
+    get
+    {
+      Vector2 temp = new Vector2(0.0f,0.0f);
+      GetProperty( Actor.Property.MAXIMUM_SIZE).Get(  temp );
+      Dali.CSharp.Size ret = new Dali.CSharp.Size(temp.x, temp.y);
+      return ret;
+    }
+    set
+    {
+      SetProperty( Actor.Property.MAXIMUM_SIZE, new Dali.Property.Value( value ) );
+    }
+  }
+  public bool InheritPosition
+  {
+    get
+    {
+      bool temp = false;
+      GetProperty( Actor.Property.INHERIT_POSITION).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.INHERIT_POSITION, new Dali.Property.Value( value ) );
+    }
+  }
+  public string ClippingMode
+  {
+    get
+    {
+      string temp;
+      GetProperty( Actor.Property.CLIPPING_MODE).Get( out temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.CLIPPING_MODE, new Dali.Property.Value( value ) );
+    }
+  }
+  public bool BatchParent
+  {
+    get
+    {
+      bool temp = false;
+      GetProperty( Actor.Property.BATCH_PARENT).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Actor.Property.BATCH_PARENT, new Dali.Property.Value( value ) );
+    }
+  }
+
+/* Properties ends */
 
 %}
 
@@ -645,7 +794,27 @@ ACTOR_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
 
 %enddef
 
+%define DALI_CONST_VECTOR4_REF_TO_COLOR_CONVERSION
+%typemap(cstype) (const Vector4& color) "Dali.CSharp.Color"
+%typemap(csin,
+         pre=" Vector4 temp$csinput = new Vector4($csinput.R, $csinput.G, $csinput.B, $csinput.A);",
+         cshin="ref $csinput"
+        ) (const Vector4& color) "$csclassname.getCPtr(temp$csinput)"
+
+%enddef
+
+%define DALI_VECTOR2_TO_SIZE_CONVERSION
+%typemap(cstype) (const Vector2& position) "Dali.CSharp.Size"
+%typemap(csin,
+         pre=" Vector2 temp$csinput = new Vector2($csinput.W, $csinput.H);",
+         cshin="ref $csinput"
+        ) (const Vector2& position) "$csclassname.getCPtr(temp$csinput)"
+
+%enddef
+
 namespace Dali
 {
   DALI_ACTOR_EVENTHANDLER_PARAM( Dali, Actor);
+  DALI_CONST_VECTOR4_REF_TO_COLOR_CONVERSION;
+  DALI_VECTOR2_TO_SIZE_CONVERSION;
 }