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 / videoview-event.i
index 887e15e..1bc0aee 100644 (file)
@@ -53,19 +53,16 @@ public class FinishedEventArgs : EventArgs
 
 
   [UnmanagedFunctionPointer(CallingConvention.StdCall)]
-  public delegate void FinishedEventHandler(object source, FinishedEventArgs e);
-
-  [UnmanagedFunctionPointer(CallingConvention.StdCall)]
   private delegate void FinishedCallbackDelegate(IntPtr data);
-  private FinishedEventHandler _videoViewFinishedEventHandler;
+  private DaliEventHandler<object,FinishedEventArgs> _videoViewFinishedEventHandler;
   private FinishedCallbackDelegate _videoViewFinishedCallbackDelegate;
 
   /**
     * @brief Event for Finished signal which can be used to subscribe/unsubscribe the event handler
-    * (in the type of FinishedEventHandler) provided by the user.
+    * (in the type of FinishedEventHandler-DaliEventHandler<object,FinishedEventArgs>) provided by the user.
     * Finished signal is emitted when a video playback have finished.
     */
-  public event FinishedEventHandler Finished
+  public event DaliEventHandler<object,FinishedEventArgs> Finished
   {
      add
      {
@@ -117,6 +114,63 @@ public class FinishedEventArgs : EventArgs
     return ret;
   }
 
+/* Properties earlier added by Ruby Script */
+
+  public Dali.Property.Map Video
+  {
+    get
+    {
+      Dali.Property.Map temp = new Dali.Property.Map();
+      GetProperty( VideoView.Property.VIDEO).Get(  temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( VideoView.Property.VIDEO, new Dali.Property.Value( value ) );
+    }
+  }
+  public bool Looping
+  {
+    get
+    {
+      bool temp = false;
+      GetProperty( VideoView.Property.LOOPING).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( VideoView.Property.LOOPING, new Dali.Property.Value( value ) );
+    }
+  }
+  public bool Muted
+  {
+    get
+    {
+      bool temp = false;
+      GetProperty( VideoView.Property.MUTED).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( VideoView.Property.MUTED, new Dali.Property.Value( value ) );
+    }
+  }
+  public Dali.Property.Map Volume
+  {
+    get
+    {
+      Dali.Property.Map temp = new Dali.Property.Map();
+      GetProperty( VideoView.Property.VOLUME).Get(  temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( VideoView.Property.VOLUME, new Dali.Property.Value( value ) );
+    }
+  }
+
+/* Properties ends */
+
 %}
 
 %enddef