#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; using System.Threading; using System.ComponentModel; namespace Efl { namespace Input { /// Represents a focus event. /// (Since EFL 1.22) [Efl.Input.Focus.NativeMethods] [Efl.Eo.BindingEntity] public class Focus : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent { /// Pointer to the native class description. public override System.IntPtr NativeClass { get { if (((object)this).GetType() == typeof(Focus)) { return GetEflClassStatic(); } else { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; } } } [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_input_focus_class_get(); /// Initializes a new instance of the class. /// Parent instance. public Focus(Efl.Object parent= null ) : base(efl_input_focus_class_get(), parent) { FinishInstantiation(); } /// Subclasses should override this constructor if they are expected to be instantiated from native code. /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Focus(ConstructingHandle ch) : base(ch) { } /// Initializes a new instance of the class. /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. /// The native pointer to be wrapped. protected Focus(Efl.Eo.Globals.WrappingHandle wh) : base(wh) { } /// Initializes a new instance of the class. /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. /// The pointer to the base native Eo class. /// The Efl.Object parent of this instance. protected Focus(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) { } /// The focused object /// (Since EFL 1.22) /// The focused object. In case this represents a canvas focus the object will be null virtual public Efl.Object GetObject() { var _ret_var = Efl.Input.Focus.NativeMethods.efl_input_focus_object_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The focused object /// (Since EFL 1.22) /// The focused object. In case this represents a canvas focus the object will be null virtual public void SetObject(Efl.Object kw_object) { Efl.Input.Focus.NativeMethods.efl_input_focus_object_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),kw_object); Eina.Error.RaiseIfUnhandledException(); } /// Creates a carbon copy of this object and returns it. /// The newly created object will have no event handlers or anything of the sort. /// Returned carbon copy virtual public Efl.IDuplicate Duplicate() { var _ret_var = Efl.IDuplicateConcrete.NativeMethods.efl_duplicate_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The time at which an event was generated. /// 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. /// Time in milliseconds when the event happened. virtual public double GetTimestamp() { var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_timestamp_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Call this when generating events manually. /// Time in milliseconds when the event happened. virtual public void SetTimestamp(double ms) { Efl.Input.IEventConcrete.NativeMethods.efl_input_timestamp_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),ms); Eina.Error.RaiseIfUnhandledException(); } /// Input device that originated this event. /// Input device origin virtual public Efl.Input.Device GetDevice() { var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_device_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Input device that originated this event. /// Input device origin virtual public void SetDevice(Efl.Input.Device dev) { Efl.Input.IEventConcrete.NativeMethods.efl_input_device_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),dev); Eina.Error.RaiseIfUnhandledException(); } /// Extra flags for this event, may be changed by the user. /// Input event flags virtual public Efl.Input.Flags GetEventFlags() { var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_event_flags_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Extra flags for this event, may be changed by the user. /// Input event flags virtual public void SetEventFlags(Efl.Input.Flags flags) { Efl.Input.IEventConcrete.NativeMethods.efl_input_event_flags_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),flags); Eina.Error.RaiseIfUnhandledException(); } /// true if indicates the event is on hold. /// true if the event is on hold, false otherwise virtual public bool GetProcessed() { var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_processed_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// true if indicates the event is on hold. /// true if the event is on hold, false otherwise virtual public void SetProcessed(bool val) { Efl.Input.IEventConcrete.NativeMethods.efl_input_processed_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),val); Eina.Error.RaiseIfUnhandledException(); } /// true if indicates the event happened while scrolling. /// true if the event happened while scrolling, false otherwise virtual public bool GetScrolling() { var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_scrolling_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// true if indicates the event happened while scrolling. /// true if the event happened while scrolling, false otherwise virtual public void SetScrolling(bool val) { Efl.Input.IEventConcrete.NativeMethods.efl_input_scrolling_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),val); Eina.Error.RaiseIfUnhandledException(); } /// true if the event was fake, not triggered by real hardware. /// true if the event was not from real hardware, false otherwise virtual public bool GetFake() { var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_fake_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Resets the internal data to 0 or default values. virtual public void Reset() { Efl.Input.IEventConcrete.NativeMethods.efl_input_reset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } /// The focused object /// (Since EFL 1.22) /// The focused object. In case this represents a canvas focus the object will be null public Efl.Object Object { get { return GetObject(); } set { SetObject(value); } } /// The time at which an event was generated. /// 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. /// Time in milliseconds when the event happened. public double Timestamp { get { return GetTimestamp(); } set { SetTimestamp(value); } } /// Input device that originated this event. /// Input device origin public Efl.Input.Device Device { get { return GetDevice(); } set { SetDevice(value); } } /// Extra flags for this event, may be changed by the user. /// Input event flags public Efl.Input.Flags EventFlags { get { return GetEventFlags(); } set { SetEventFlags(value); } } /// true if indicates the event is on hold. /// true if the event is on hold, false otherwise public bool Processed { get { return GetProcessed(); } set { SetProcessed(value); } } /// true if indicates the event happened while scrolling. /// true if the event happened while scrolling, false otherwise public bool Scrolling { get { return GetScrolling(); } set { SetScrolling(value); } } /// true if the event was fake, not triggered by real hardware. /// true if the event was not from real hardware, false otherwise public bool Fake { get { return GetFake(); } } private static IntPtr GetEflClassStatic() { return Efl.Input.Focus.efl_input_focus_class_get(); } /// Wrapper for native methods and virtual method delegates. /// For internal use by generated code only. public new class NativeMethods : Efl.Object.NativeMethods { private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); /// Gets the list of Eo operations to override. /// The list of Eo operations to be overload. public override System.Collections.Generic.List GetEoOps(System.Type type) { var descs = new System.Collections.Generic.List(); var methods = Efl.Eo.Globals.GetUserMethods(type); if (efl_input_focus_object_get_static_delegate == null) { efl_input_focus_object_get_static_delegate = new efl_input_focus_object_get_delegate(object_get); } if (methods.FirstOrDefault(m => m.Name == "GetObject") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_focus_object_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_focus_object_get_static_delegate) }); } if (efl_input_focus_object_set_static_delegate == null) { efl_input_focus_object_set_static_delegate = new efl_input_focus_object_set_delegate(object_set); } if (methods.FirstOrDefault(m => m.Name == "SetObject") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_focus_object_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_focus_object_set_static_delegate) }); } if (efl_duplicate_static_delegate == null) { efl_duplicate_static_delegate = new efl_duplicate_delegate(duplicate); } if (methods.FirstOrDefault(m => m.Name == "Duplicate") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_duplicate"), func = Marshal.GetFunctionPointerForDelegate(efl_duplicate_static_delegate) }); } if (efl_input_timestamp_get_static_delegate == null) { efl_input_timestamp_get_static_delegate = new efl_input_timestamp_get_delegate(timestamp_get); } if (methods.FirstOrDefault(m => m.Name == "GetTimestamp") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_timestamp_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_timestamp_get_static_delegate) }); } if (efl_input_timestamp_set_static_delegate == null) { efl_input_timestamp_set_static_delegate = new efl_input_timestamp_set_delegate(timestamp_set); } if (methods.FirstOrDefault(m => m.Name == "SetTimestamp") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_timestamp_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_timestamp_set_static_delegate) }); } if (efl_input_device_get_static_delegate == null) { efl_input_device_get_static_delegate = new efl_input_device_get_delegate(device_get); } if (methods.FirstOrDefault(m => m.Name == "GetDevice") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_get_static_delegate) }); } if (efl_input_device_set_static_delegate == null) { efl_input_device_set_static_delegate = new efl_input_device_set_delegate(device_set); } if (methods.FirstOrDefault(m => m.Name == "SetDevice") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_set_static_delegate) }); } if (efl_input_event_flags_get_static_delegate == null) { efl_input_event_flags_get_static_delegate = new efl_input_event_flags_get_delegate(event_flags_get); } if (methods.FirstOrDefault(m => m.Name == "GetEventFlags") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_event_flags_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_event_flags_get_static_delegate) }); } if (efl_input_event_flags_set_static_delegate == null) { efl_input_event_flags_set_static_delegate = new efl_input_event_flags_set_delegate(event_flags_set); } if (methods.FirstOrDefault(m => m.Name == "SetEventFlags") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_event_flags_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_event_flags_set_static_delegate) }); } if (efl_input_processed_get_static_delegate == null) { efl_input_processed_get_static_delegate = new efl_input_processed_get_delegate(processed_get); } if (methods.FirstOrDefault(m => m.Name == "GetProcessed") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_processed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_processed_get_static_delegate) }); } if (efl_input_processed_set_static_delegate == null) { efl_input_processed_set_static_delegate = new efl_input_processed_set_delegate(processed_set); } if (methods.FirstOrDefault(m => m.Name == "SetProcessed") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_processed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_processed_set_static_delegate) }); } if (efl_input_scrolling_get_static_delegate == null) { efl_input_scrolling_get_static_delegate = new efl_input_scrolling_get_delegate(scrolling_get); } if (methods.FirstOrDefault(m => m.Name == "GetScrolling") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_scrolling_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_scrolling_get_static_delegate) }); } if (efl_input_scrolling_set_static_delegate == null) { efl_input_scrolling_set_static_delegate = new efl_input_scrolling_set_delegate(scrolling_set); } if (methods.FirstOrDefault(m => m.Name == "SetScrolling") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_scrolling_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_scrolling_set_static_delegate) }); } if (efl_input_fake_get_static_delegate == null) { efl_input_fake_get_static_delegate = new efl_input_fake_get_delegate(fake_get); } if (methods.FirstOrDefault(m => m.Name == "GetFake") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_fake_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_fake_get_static_delegate) }); } if (efl_input_reset_static_delegate == null) { efl_input_reset_static_delegate = new efl_input_reset_delegate(reset); } if (methods.FirstOrDefault(m => m.Name == "Reset") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_input_reset_static_delegate) }); } descs.AddRange(base.GetEoOps(type)); return descs; } /// Returns the Eo class for the native methods of this class. /// The native class pointer. public override IntPtr GetEflClass() { return Efl.Input.Focus.efl_input_focus_class_get(); } #pragma warning disable CA1707, CS1591, SA1300, SA1600 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] private delegate Efl.Object efl_input_focus_object_get_delegate(System.IntPtr obj, System.IntPtr pd); [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] public delegate Efl.Object efl_input_focus_object_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_input_focus_object_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_focus_object_get"); private static Efl.Object object_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_input_focus_object_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Object _ret_var = default(Efl.Object); try { _ret_var = ((Focus)ws.Target).GetObject(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_input_focus_object_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_input_focus_object_get_delegate efl_input_focus_object_get_static_delegate; private delegate void efl_input_focus_object_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object kw_object); public delegate void efl_input_focus_object_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object kw_object); public static Efl.Eo.FunctionWrapper efl_input_focus_object_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_focus_object_set"); private static void object_set(System.IntPtr obj, System.IntPtr pd, Efl.Object kw_object) { Eina.Log.Debug("function efl_input_focus_object_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Focus)ws.Target).SetObject(kw_object); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_input_focus_object_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_object); } } private static efl_input_focus_object_set_delegate efl_input_focus_object_set_static_delegate; [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] private delegate Efl.IDuplicate efl_duplicate_delegate(System.IntPtr obj, System.IntPtr pd); [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] public delegate Efl.IDuplicate efl_duplicate_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_duplicate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_duplicate"); private static Efl.IDuplicate duplicate(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_duplicate was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.IDuplicate _ret_var = default(Efl.IDuplicate); try { _ret_var = ((Focus)ws.Target).Duplicate(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_duplicate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_duplicate_delegate efl_duplicate_static_delegate; private delegate double efl_input_timestamp_get_delegate(System.IntPtr obj, System.IntPtr pd); public delegate double efl_input_timestamp_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_input_timestamp_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_timestamp_get"); private static double timestamp_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_input_timestamp_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { double _ret_var = default(double); try { _ret_var = ((Focus)ws.Target).GetTimestamp(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_input_timestamp_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_input_timestamp_get_delegate efl_input_timestamp_get_static_delegate; private delegate void efl_input_timestamp_set_delegate(System.IntPtr obj, System.IntPtr pd, double ms); public delegate void efl_input_timestamp_set_api_delegate(System.IntPtr obj, double ms); public static Efl.Eo.FunctionWrapper efl_input_timestamp_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_timestamp_set"); private static void timestamp_set(System.IntPtr obj, System.IntPtr pd, double ms) { Eina.Log.Debug("function efl_input_timestamp_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Focus)ws.Target).SetTimestamp(ms); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_input_timestamp_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ms); } } private static efl_input_timestamp_set_delegate efl_input_timestamp_set_static_delegate; [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] private delegate Efl.Input.Device efl_input_device_get_delegate(System.IntPtr obj, System.IntPtr pd); [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] public delegate Efl.Input.Device efl_input_device_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_input_device_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_device_get"); private static Efl.Input.Device device_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_input_device_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Input.Device _ret_var = default(Efl.Input.Device); try { _ret_var = ((Focus)ws.Target).GetDevice(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_input_device_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_input_device_get_delegate efl_input_device_get_static_delegate; private delegate void efl_input_device_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device dev); public delegate void efl_input_device_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device dev); public static Efl.Eo.FunctionWrapper efl_input_device_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_device_set"); private static void device_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device dev) { Eina.Log.Debug("function efl_input_device_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Focus)ws.Target).SetDevice(dev); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_input_device_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dev); } } private static efl_input_device_set_delegate efl_input_device_set_static_delegate; private delegate Efl.Input.Flags efl_input_event_flags_get_delegate(System.IntPtr obj, System.IntPtr pd); public delegate Efl.Input.Flags efl_input_event_flags_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_input_event_flags_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_event_flags_get"); private static Efl.Input.Flags event_flags_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_input_event_flags_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Input.Flags _ret_var = default(Efl.Input.Flags); try { _ret_var = ((Focus)ws.Target).GetEventFlags(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_input_event_flags_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_input_event_flags_get_delegate efl_input_event_flags_get_static_delegate; private delegate void efl_input_event_flags_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags); public delegate void efl_input_event_flags_set_api_delegate(System.IntPtr obj, Efl.Input.Flags flags); public static Efl.Eo.FunctionWrapper efl_input_event_flags_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_event_flags_set"); private static void event_flags_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags) { Eina.Log.Debug("function efl_input_event_flags_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Focus)ws.Target).SetEventFlags(flags); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_input_event_flags_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flags); } } private static efl_input_event_flags_set_delegate efl_input_event_flags_set_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_processed_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_processed_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_input_processed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_processed_get"); private static bool processed_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_input_processed_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((Focus)ws.Target).GetProcessed(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_input_processed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_input_processed_get_delegate efl_input_processed_get_static_delegate; private delegate void efl_input_processed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); public delegate void efl_input_processed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); public static Efl.Eo.FunctionWrapper efl_input_processed_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_processed_set"); private static void processed_set(System.IntPtr obj, System.IntPtr pd, bool val) { Eina.Log.Debug("function efl_input_processed_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Focus)ws.Target).SetProcessed(val); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_input_processed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); } } private static efl_input_processed_set_delegate efl_input_processed_set_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_scrolling_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_scrolling_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_input_scrolling_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_scrolling_get"); private static bool scrolling_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_input_scrolling_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((Focus)ws.Target).GetScrolling(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_input_scrolling_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_input_scrolling_get_delegate efl_input_scrolling_get_static_delegate; private delegate void efl_input_scrolling_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); public delegate void efl_input_scrolling_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); public static Efl.Eo.FunctionWrapper efl_input_scrolling_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_scrolling_set"); private static void scrolling_set(System.IntPtr obj, System.IntPtr pd, bool val) { Eina.Log.Debug("function efl_input_scrolling_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Focus)ws.Target).SetScrolling(val); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_input_scrolling_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); } } private static efl_input_scrolling_set_delegate efl_input_scrolling_set_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_fake_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_fake_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_input_fake_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_fake_get"); private static bool fake_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_input_fake_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((Focus)ws.Target).GetFake(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_input_fake_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_input_fake_get_delegate efl_input_fake_get_static_delegate; private delegate void efl_input_reset_delegate(System.IntPtr obj, System.IntPtr pd); public delegate void efl_input_reset_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_input_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_reset"); private static void reset(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_input_reset was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Focus)ws.Target).Reset(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_input_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_input_reset_delegate efl_input_reset_static_delegate; #pragma warning restore CA1707, CS1591, SA1300, SA1600 } } } } #if EFL_BETA #pragma warning disable CS1591 public static class Efl_InputFocus_ExtensionMethods { public static Efl.BindableProperty Object(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Focus { return new Efl.BindableProperty("object", fac); } public static Efl.BindableProperty Timestamp(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Focus { return new Efl.BindableProperty("timestamp", fac); } public static Efl.BindableProperty Device(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Focus { return new Efl.BindableProperty("device", fac); } public static Efl.BindableProperty EventFlags(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Focus { return new Efl.BindableProperty("event_flags", fac); } public static Efl.BindableProperty Processed(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Focus { return new Efl.BindableProperty("processed", fac); } public static Efl.BindableProperty Scrolling(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Focus { return new Efl.BindableProperty("scrolling", fac); } } #pragma warning restore CS1591 #endif