[EflSharp] Update Circle and efl cs files (#995)
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_input_event.eo.cs
old mode 100644 (file)
new mode 100755 (executable)
index 746efd6..b28f2ca
@@ -1,3 +1,4 @@
+#define EFL_BETA
 #pragma warning disable CS1591
 using System;
 using System.Runtime.InteropServices;
@@ -57,47 +58,47 @@ void Reset();
     /// If the event is generated by a server (eg. X.org or Wayland), then the time may be set by the server. Usually this time will be based on the monotonic clock, if available, but this class can not guarantee it.</summary>
     /// <value>Time in milliseconds when the event happened.</value>
     double Timestamp {
-        get ;
-        set ;
+        get;
+        set;
     }
     /// <summary>Input device that originated this event.</summary>
     /// <value>Input device origin</value>
     Efl.Input.Device Device {
-        get ;
-        set ;
+        get;
+        set;
     }
     /// <summary>Extra flags for this event, may be changed by the user.</summary>
     /// <value>Input event flags</value>
     Efl.Input.Flags EventFlags {
-        get ;
-        set ;
+        get;
+        set;
     }
     /// <summary><c>true</c> if <see cref="Efl.Input.IEvent.EventFlags"/> indicates the event is on hold.</summary>
     /// <value><c>true</c> if the event is on hold, <c>false</c> otherwise</value>
     bool Processed {
-        get ;
-        set ;
+        get;
+        set;
     }
     /// <summary><c>true</c> if <see cref="Efl.Input.IEvent.EventFlags"/> indicates the event happened while scrolling.</summary>
     /// <value><c>true</c> if the event happened while scrolling, <c>false</c> otherwise</value>
     bool Scrolling {
-        get ;
-        set ;
+        get;
+        set;
     }
     /// <summary><c>true</c> if the event was fake, not triggered by real hardware.</summary>
     /// <value><c>true</c> if the event was not from real hardware, <c>false</c> otherwise</value>
     bool Fake {
-        get ;
+        get;
     }
 }
 /// <summary>Represents a generic event data.
 /// Note: Most Efl Events do not carry Efl Objects, rather simple data structures. This class is intended to carry more complex event data, such as pointer events.</summary>
-sealed public class IEventConcrete :
+sealed public  class IEventConcrete :
     Efl.Eo.EoWrapper
     , IEvent
     , Efl.IDuplicate
 {
-    ///<summary>Pointer to the native class description.</summary>
+    /// <summary>Pointer to the native class description.</summary>
     public override System.IntPtr NativeClass
     {
         get
@@ -113,7 +114,8 @@ sealed public class IEventConcrete :
         }
     }
 
-    /// <summary>Constructor to be used when objects are expected to be constructed from native code.</summary>
+    /// <summary>Subclasses should override this constructor if they are expected to be instantiated from native code.
+    /// Do not call this constructor directly.</summary>
     /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
     private IEventConcrete(ConstructingHandle ch) : base(ch)
     {
@@ -877,3 +879,30 @@ sealed public class IEventConcrete :
 
 }
 
+#if EFL_BETA
+#pragma warning disable CS1591
+public static class Efl_InputIEventConcrete_ExtensionMethods {
+    public static Efl.BindableProperty<double> Timestamp<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Input.IEvent, T>magic = null) where T : Efl.Input.IEvent {
+        return new Efl.BindableProperty<double>("timestamp", fac);
+    }
+
+    public static Efl.BindableProperty<Efl.Input.Device> Device<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Input.IEvent, T>magic = null) where T : Efl.Input.IEvent {
+        return new Efl.BindableProperty<Efl.Input.Device>("device", fac);
+    }
+
+    public static Efl.BindableProperty<Efl.Input.Flags> EventFlags<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Input.IEvent, T>magic = null) where T : Efl.Input.IEvent {
+        return new Efl.BindableProperty<Efl.Input.Flags>("event_flags", fac);
+    }
+
+    public static Efl.BindableProperty<bool> Processed<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Input.IEvent, T>magic = null) where T : Efl.Input.IEvent {
+        return new Efl.BindableProperty<bool>("processed", fac);
+    }
+
+    public static Efl.BindableProperty<bool> Scrolling<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Input.IEvent, T>magic = null) where T : Efl.Input.IEvent {
+        return new Efl.BindableProperty<bool>("scrolling", fac);
+    }
+
+    
+}
+#pragma warning restore CS1591
+#endif