2 #pragma warning disable CS1591
4 using System.Runtime.InteropServices;
5 using System.Collections.Generic;
7 using System.Threading;
8 using System.ComponentModel;
13 /// <summary>Represents a focus event.
14 /// (Since EFL 1.22)</summary>
15 [Efl.Input.Focus.NativeMethods]
16 [Efl.Eo.BindingEntity]
17 public class Focus : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent
19 /// <summary>Pointer to the native class description.</summary>
20 public override System.IntPtr NativeClass
24 if (((object)this).GetType() == typeof(Focus))
26 return GetEflClassStatic();
30 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
35 [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr
36 efl_input_focus_class_get();
37 /// <summary>Initializes a new instance of the <see cref="Focus"/> class.</summary>
38 /// <param name="parent">Parent instance.</param>
39 public Focus(Efl.Object parent= null
40 ) : base(efl_input_focus_class_get(), parent)
42 FinishInstantiation();
45 /// <summary>Subclasses should override this constructor if they are expected to be instantiated from native code.
46 /// Do not call this constructor directly.</summary>
47 /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
48 protected Focus(ConstructingHandle ch) : base(ch)
52 /// <summary>Initializes a new instance of the <see cref="Focus"/> class.
53 /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
54 /// <param name="wh">The native pointer to be wrapped.</param>
55 protected Focus(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
59 /// <summary>Initializes a new instance of the <see cref="Focus"/> class.
60 /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
61 /// <param name="baseKlass">The pointer to the base native Eo class.</param>
62 /// <param name="parent">The Efl.Object parent of this instance.</param>
63 protected Focus(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent)
67 /// <summary>The focused object
68 /// (Since EFL 1.22)</summary>
69 /// <returns>The focused object. In case this represents a canvas focus the object will be <c>null</c></returns>
70 virtual public Efl.Object GetObject() {
71 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)));
72 Eina.Error.RaiseIfUnhandledException();
75 /// <summary>The focused object
76 /// (Since EFL 1.22)</summary>
77 /// <param name="kw_object">The focused object. In case this represents a canvas focus the object will be <c>null</c></param>
78 virtual public void SetObject(Efl.Object kw_object) {
79 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);
80 Eina.Error.RaiseIfUnhandledException();
82 /// <summary>Creates a carbon copy of this object and returns it.
83 /// The newly created object will have no event handlers or anything of the sort.</summary>
84 /// <returns>Returned carbon copy</returns>
85 virtual public Efl.IDuplicate Duplicate() {
86 var _ret_var = Efl.IDuplicateConcrete.NativeMethods.efl_duplicate_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
87 Eina.Error.RaiseIfUnhandledException();
90 /// <summary>The time at which an event was generated.
91 /// 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>
92 /// <returns>Time in milliseconds when the event happened.</returns>
93 virtual public double GetTimestamp() {
94 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)));
95 Eina.Error.RaiseIfUnhandledException();
98 /// <summary>Call this when generating events manually.</summary>
99 /// <param name="ms">Time in milliseconds when the event happened.</param>
100 virtual public void SetTimestamp(double ms) {
101 Efl.Input.IEventConcrete.NativeMethods.efl_input_timestamp_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),ms);
102 Eina.Error.RaiseIfUnhandledException();
104 /// <summary>Input device that originated this event.</summary>
105 /// <returns>Input device origin</returns>
106 virtual public Efl.Input.Device GetDevice() {
107 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)));
108 Eina.Error.RaiseIfUnhandledException();
111 /// <summary>Input device that originated this event.</summary>
112 /// <param name="dev">Input device origin</param>
113 virtual public void SetDevice(Efl.Input.Device dev) {
114 Efl.Input.IEventConcrete.NativeMethods.efl_input_device_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),dev);
115 Eina.Error.RaiseIfUnhandledException();
117 /// <summary>Extra flags for this event, may be changed by the user.</summary>
118 /// <returns>Input event flags</returns>
119 virtual public Efl.Input.Flags GetEventFlags() {
120 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)));
121 Eina.Error.RaiseIfUnhandledException();
124 /// <summary>Extra flags for this event, may be changed by the user.</summary>
125 /// <param name="flags">Input event flags</param>
126 virtual public void SetEventFlags(Efl.Input.Flags flags) {
127 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);
128 Eina.Error.RaiseIfUnhandledException();
130 /// <summary><c>true</c> if <see cref="Efl.Input.IEvent.EventFlags"/> indicates the event is on hold.</summary>
131 /// <returns><c>true</c> if the event is on hold, <c>false</c> otherwise</returns>
132 virtual public bool GetProcessed() {
133 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)));
134 Eina.Error.RaiseIfUnhandledException();
137 /// <summary><c>true</c> if <see cref="Efl.Input.IEvent.EventFlags"/> indicates the event is on hold.</summary>
138 /// <param name="val"><c>true</c> if the event is on hold, <c>false</c> otherwise</param>
139 virtual public void SetProcessed(bool val) {
140 Efl.Input.IEventConcrete.NativeMethods.efl_input_processed_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),val);
141 Eina.Error.RaiseIfUnhandledException();
143 /// <summary><c>true</c> if <see cref="Efl.Input.IEvent.EventFlags"/> indicates the event happened while scrolling.</summary>
144 /// <returns><c>true</c> if the event happened while scrolling, <c>false</c> otherwise</returns>
145 virtual public bool GetScrolling() {
146 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)));
147 Eina.Error.RaiseIfUnhandledException();
150 /// <summary><c>true</c> if <see cref="Efl.Input.IEvent.EventFlags"/> indicates the event happened while scrolling.</summary>
151 /// <param name="val"><c>true</c> if the event happened while scrolling, <c>false</c> otherwise</param>
152 virtual public void SetScrolling(bool val) {
153 Efl.Input.IEventConcrete.NativeMethods.efl_input_scrolling_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),val);
154 Eina.Error.RaiseIfUnhandledException();
156 /// <summary><c>true</c> if the event was fake, not triggered by real hardware.</summary>
157 /// <returns><c>true</c> if the event was not from real hardware, <c>false</c> otherwise</returns>
158 virtual public bool GetFake() {
159 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)));
160 Eina.Error.RaiseIfUnhandledException();
163 /// <summary>Resets the internal data to 0 or default values.</summary>
164 virtual public void Reset() {
165 Efl.Input.IEventConcrete.NativeMethods.efl_input_reset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
166 Eina.Error.RaiseIfUnhandledException();
168 /// <summary>The focused object
169 /// (Since EFL 1.22)</summary>
170 /// <value>The focused object. In case this represents a canvas focus the object will be <c>null</c></value>
171 public Efl.Object Object {
172 get { return GetObject(); }
173 set { SetObject(value); }
175 /// <summary>The time at which an event was generated.
176 /// 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>
177 /// <value>Time in milliseconds when the event happened.</value>
178 public double Timestamp {
179 get { return GetTimestamp(); }
180 set { SetTimestamp(value); }
182 /// <summary>Input device that originated this event.</summary>
183 /// <value>Input device origin</value>
184 public Efl.Input.Device Device {
185 get { return GetDevice(); }
186 set { SetDevice(value); }
188 /// <summary>Extra flags for this event, may be changed by the user.</summary>
189 /// <value>Input event flags</value>
190 public Efl.Input.Flags EventFlags {
191 get { return GetEventFlags(); }
192 set { SetEventFlags(value); }
194 /// <summary><c>true</c> if <see cref="Efl.Input.IEvent.EventFlags"/> indicates the event is on hold.</summary>
195 /// <value><c>true</c> if the event is on hold, <c>false</c> otherwise</value>
196 public bool Processed {
197 get { return GetProcessed(); }
198 set { SetProcessed(value); }
200 /// <summary><c>true</c> if <see cref="Efl.Input.IEvent.EventFlags"/> indicates the event happened while scrolling.</summary>
201 /// <value><c>true</c> if the event happened while scrolling, <c>false</c> otherwise</value>
202 public bool Scrolling {
203 get { return GetScrolling(); }
204 set { SetScrolling(value); }
206 /// <summary><c>true</c> if the event was fake, not triggered by real hardware.</summary>
207 /// <value><c>true</c> if the event was not from real hardware, <c>false</c> otherwise</value>
209 get { return GetFake(); }
211 private static IntPtr GetEflClassStatic()
213 return Efl.Input.Focus.efl_input_focus_class_get();
215 /// <summary>Wrapper for native methods and virtual method delegates.
216 /// For internal use by generated code only.</summary>
217 public new class NativeMethods : Efl.Object.NativeMethods
219 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas);
220 /// <summary>Gets the list of Eo operations to override.</summary>
221 /// <returns>The list of Eo operations to be overload.</returns>
222 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
224 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
225 var methods = Efl.Eo.Globals.GetUserMethods(type);
227 if (efl_input_focus_object_get_static_delegate == null)
229 efl_input_focus_object_get_static_delegate = new efl_input_focus_object_get_delegate(object_get);
232 if (methods.FirstOrDefault(m => m.Name == "GetObject") != null)
234 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) });
237 if (efl_input_focus_object_set_static_delegate == null)
239 efl_input_focus_object_set_static_delegate = new efl_input_focus_object_set_delegate(object_set);
242 if (methods.FirstOrDefault(m => m.Name == "SetObject") != null)
244 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) });
247 if (efl_duplicate_static_delegate == null)
249 efl_duplicate_static_delegate = new efl_duplicate_delegate(duplicate);
252 if (methods.FirstOrDefault(m => m.Name == "Duplicate") != null)
254 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_duplicate"), func = Marshal.GetFunctionPointerForDelegate(efl_duplicate_static_delegate) });
257 if (efl_input_timestamp_get_static_delegate == null)
259 efl_input_timestamp_get_static_delegate = new efl_input_timestamp_get_delegate(timestamp_get);
262 if (methods.FirstOrDefault(m => m.Name == "GetTimestamp") != null)
264 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) });
267 if (efl_input_timestamp_set_static_delegate == null)
269 efl_input_timestamp_set_static_delegate = new efl_input_timestamp_set_delegate(timestamp_set);
272 if (methods.FirstOrDefault(m => m.Name == "SetTimestamp") != null)
274 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) });
277 if (efl_input_device_get_static_delegate == null)
279 efl_input_device_get_static_delegate = new efl_input_device_get_delegate(device_get);
282 if (methods.FirstOrDefault(m => m.Name == "GetDevice") != null)
284 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) });
287 if (efl_input_device_set_static_delegate == null)
289 efl_input_device_set_static_delegate = new efl_input_device_set_delegate(device_set);
292 if (methods.FirstOrDefault(m => m.Name == "SetDevice") != null)
294 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) });
297 if (efl_input_event_flags_get_static_delegate == null)
299 efl_input_event_flags_get_static_delegate = new efl_input_event_flags_get_delegate(event_flags_get);
302 if (methods.FirstOrDefault(m => m.Name == "GetEventFlags") != null)
304 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) });
307 if (efl_input_event_flags_set_static_delegate == null)
309 efl_input_event_flags_set_static_delegate = new efl_input_event_flags_set_delegate(event_flags_set);
312 if (methods.FirstOrDefault(m => m.Name == "SetEventFlags") != null)
314 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) });
317 if (efl_input_processed_get_static_delegate == null)
319 efl_input_processed_get_static_delegate = new efl_input_processed_get_delegate(processed_get);
322 if (methods.FirstOrDefault(m => m.Name == "GetProcessed") != null)
324 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) });
327 if (efl_input_processed_set_static_delegate == null)
329 efl_input_processed_set_static_delegate = new efl_input_processed_set_delegate(processed_set);
332 if (methods.FirstOrDefault(m => m.Name == "SetProcessed") != null)
334 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) });
337 if (efl_input_scrolling_get_static_delegate == null)
339 efl_input_scrolling_get_static_delegate = new efl_input_scrolling_get_delegate(scrolling_get);
342 if (methods.FirstOrDefault(m => m.Name == "GetScrolling") != null)
344 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) });
347 if (efl_input_scrolling_set_static_delegate == null)
349 efl_input_scrolling_set_static_delegate = new efl_input_scrolling_set_delegate(scrolling_set);
352 if (methods.FirstOrDefault(m => m.Name == "SetScrolling") != null)
354 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) });
357 if (efl_input_fake_get_static_delegate == null)
359 efl_input_fake_get_static_delegate = new efl_input_fake_get_delegate(fake_get);
362 if (methods.FirstOrDefault(m => m.Name == "GetFake") != null)
364 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) });
367 if (efl_input_reset_static_delegate == null)
369 efl_input_reset_static_delegate = new efl_input_reset_delegate(reset);
372 if (methods.FirstOrDefault(m => m.Name == "Reset") != null)
374 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) });
377 descs.AddRange(base.GetEoOps(type));
380 /// <summary>Returns the Eo class for the native methods of this class.</summary>
381 /// <returns>The native class pointer.</returns>
382 public override IntPtr GetEflClass()
384 return Efl.Input.Focus.efl_input_focus_class_get();
387 #pragma warning disable CA1707, CS1591, SA1300, SA1600
389 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
390 private delegate Efl.Object efl_input_focus_object_get_delegate(System.IntPtr obj, System.IntPtr pd);
392 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
393 public delegate Efl.Object efl_input_focus_object_get_api_delegate(System.IntPtr obj);
395 public static Efl.Eo.FunctionWrapper<efl_input_focus_object_get_api_delegate> efl_input_focus_object_get_ptr = new Efl.Eo.FunctionWrapper<efl_input_focus_object_get_api_delegate>(Module, "efl_input_focus_object_get");
397 private static Efl.Object object_get(System.IntPtr obj, System.IntPtr pd)
399 Eina.Log.Debug("function efl_input_focus_object_get was called");
400 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
403 Efl.Object _ret_var = default(Efl.Object);
406 _ret_var = ((Focus)ws.Target).GetObject();
410 Eina.Log.Warning($"Callback error: {e.ToString()}");
411 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
419 return efl_input_focus_object_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
423 private static efl_input_focus_object_get_delegate efl_input_focus_object_get_static_delegate;
426 private delegate void efl_input_focus_object_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Object kw_object);
429 public delegate void efl_input_focus_object_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Object kw_object);
431 public static Efl.Eo.FunctionWrapper<efl_input_focus_object_set_api_delegate> efl_input_focus_object_set_ptr = new Efl.Eo.FunctionWrapper<efl_input_focus_object_set_api_delegate>(Module, "efl_input_focus_object_set");
433 private static void object_set(System.IntPtr obj, System.IntPtr pd, Efl.Object kw_object)
435 Eina.Log.Debug("function efl_input_focus_object_set was called");
436 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
442 ((Focus)ws.Target).SetObject(kw_object);
446 Eina.Log.Warning($"Callback error: {e.ToString()}");
447 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
454 efl_input_focus_object_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_object);
458 private static efl_input_focus_object_set_delegate efl_input_focus_object_set_static_delegate;
460 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.OwnTag>))]
461 private delegate Efl.IDuplicate efl_duplicate_delegate(System.IntPtr obj, System.IntPtr pd);
463 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.OwnTag>))]
464 public delegate Efl.IDuplicate efl_duplicate_api_delegate(System.IntPtr obj);
466 public static Efl.Eo.FunctionWrapper<efl_duplicate_api_delegate> efl_duplicate_ptr = new Efl.Eo.FunctionWrapper<efl_duplicate_api_delegate>(Module, "efl_duplicate");
468 private static Efl.IDuplicate duplicate(System.IntPtr obj, System.IntPtr pd)
470 Eina.Log.Debug("function efl_duplicate was called");
471 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
474 Efl.IDuplicate _ret_var = default(Efl.IDuplicate);
477 _ret_var = ((Focus)ws.Target).Duplicate();
481 Eina.Log.Warning($"Callback error: {e.ToString()}");
482 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
490 return efl_duplicate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
494 private static efl_duplicate_delegate efl_duplicate_static_delegate;
497 private delegate double efl_input_timestamp_get_delegate(System.IntPtr obj, System.IntPtr pd);
500 public delegate double efl_input_timestamp_get_api_delegate(System.IntPtr obj);
502 public static Efl.Eo.FunctionWrapper<efl_input_timestamp_get_api_delegate> efl_input_timestamp_get_ptr = new Efl.Eo.FunctionWrapper<efl_input_timestamp_get_api_delegate>(Module, "efl_input_timestamp_get");
504 private static double timestamp_get(System.IntPtr obj, System.IntPtr pd)
506 Eina.Log.Debug("function efl_input_timestamp_get was called");
507 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
510 double _ret_var = default(double);
513 _ret_var = ((Focus)ws.Target).GetTimestamp();
517 Eina.Log.Warning($"Callback error: {e.ToString()}");
518 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
526 return efl_input_timestamp_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
530 private static efl_input_timestamp_get_delegate efl_input_timestamp_get_static_delegate;
533 private delegate void efl_input_timestamp_set_delegate(System.IntPtr obj, System.IntPtr pd, double ms);
536 public delegate void efl_input_timestamp_set_api_delegate(System.IntPtr obj, double ms);
538 public static Efl.Eo.FunctionWrapper<efl_input_timestamp_set_api_delegate> efl_input_timestamp_set_ptr = new Efl.Eo.FunctionWrapper<efl_input_timestamp_set_api_delegate>(Module, "efl_input_timestamp_set");
540 private static void timestamp_set(System.IntPtr obj, System.IntPtr pd, double ms)
542 Eina.Log.Debug("function efl_input_timestamp_set was called");
543 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
549 ((Focus)ws.Target).SetTimestamp(ms);
553 Eina.Log.Warning($"Callback error: {e.ToString()}");
554 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
561 efl_input_timestamp_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ms);
565 private static efl_input_timestamp_set_delegate efl_input_timestamp_set_static_delegate;
567 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
568 private delegate Efl.Input.Device efl_input_device_get_delegate(System.IntPtr obj, System.IntPtr pd);
570 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
571 public delegate Efl.Input.Device efl_input_device_get_api_delegate(System.IntPtr obj);
573 public static Efl.Eo.FunctionWrapper<efl_input_device_get_api_delegate> efl_input_device_get_ptr = new Efl.Eo.FunctionWrapper<efl_input_device_get_api_delegate>(Module, "efl_input_device_get");
575 private static Efl.Input.Device device_get(System.IntPtr obj, System.IntPtr pd)
577 Eina.Log.Debug("function efl_input_device_get was called");
578 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
581 Efl.Input.Device _ret_var = default(Efl.Input.Device);
584 _ret_var = ((Focus)ws.Target).GetDevice();
588 Eina.Log.Warning($"Callback error: {e.ToString()}");
589 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
597 return efl_input_device_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
601 private static efl_input_device_get_delegate efl_input_device_get_static_delegate;
604 private delegate void efl_input_device_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Input.Device dev);
607 public delegate void efl_input_device_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Input.Device dev);
609 public static Efl.Eo.FunctionWrapper<efl_input_device_set_api_delegate> efl_input_device_set_ptr = new Efl.Eo.FunctionWrapper<efl_input_device_set_api_delegate>(Module, "efl_input_device_set");
611 private static void device_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device dev)
613 Eina.Log.Debug("function efl_input_device_set was called");
614 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
620 ((Focus)ws.Target).SetDevice(dev);
624 Eina.Log.Warning($"Callback error: {e.ToString()}");
625 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
632 efl_input_device_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dev);
636 private static efl_input_device_set_delegate efl_input_device_set_static_delegate;
639 private delegate Efl.Input.Flags efl_input_event_flags_get_delegate(System.IntPtr obj, System.IntPtr pd);
642 public delegate Efl.Input.Flags efl_input_event_flags_get_api_delegate(System.IntPtr obj);
644 public static Efl.Eo.FunctionWrapper<efl_input_event_flags_get_api_delegate> efl_input_event_flags_get_ptr = new Efl.Eo.FunctionWrapper<efl_input_event_flags_get_api_delegate>(Module, "efl_input_event_flags_get");
646 private static Efl.Input.Flags event_flags_get(System.IntPtr obj, System.IntPtr pd)
648 Eina.Log.Debug("function efl_input_event_flags_get was called");
649 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
652 Efl.Input.Flags _ret_var = default(Efl.Input.Flags);
655 _ret_var = ((Focus)ws.Target).GetEventFlags();
659 Eina.Log.Warning($"Callback error: {e.ToString()}");
660 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
668 return efl_input_event_flags_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
672 private static efl_input_event_flags_get_delegate efl_input_event_flags_get_static_delegate;
675 private delegate void efl_input_event_flags_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags);
678 public delegate void efl_input_event_flags_set_api_delegate(System.IntPtr obj, Efl.Input.Flags flags);
680 public static Efl.Eo.FunctionWrapper<efl_input_event_flags_set_api_delegate> efl_input_event_flags_set_ptr = new Efl.Eo.FunctionWrapper<efl_input_event_flags_set_api_delegate>(Module, "efl_input_event_flags_set");
682 private static void event_flags_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags)
684 Eina.Log.Debug("function efl_input_event_flags_set was called");
685 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
691 ((Focus)ws.Target).SetEventFlags(flags);
695 Eina.Log.Warning($"Callback error: {e.ToString()}");
696 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
703 efl_input_event_flags_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flags);
707 private static efl_input_event_flags_set_delegate efl_input_event_flags_set_static_delegate;
709 [return: MarshalAs(UnmanagedType.U1)]
710 private delegate bool efl_input_processed_get_delegate(System.IntPtr obj, System.IntPtr pd);
712 [return: MarshalAs(UnmanagedType.U1)]
713 public delegate bool efl_input_processed_get_api_delegate(System.IntPtr obj);
715 public static Efl.Eo.FunctionWrapper<efl_input_processed_get_api_delegate> efl_input_processed_get_ptr = new Efl.Eo.FunctionWrapper<efl_input_processed_get_api_delegate>(Module, "efl_input_processed_get");
717 private static bool processed_get(System.IntPtr obj, System.IntPtr pd)
719 Eina.Log.Debug("function efl_input_processed_get was called");
720 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
723 bool _ret_var = default(bool);
726 _ret_var = ((Focus)ws.Target).GetProcessed();
730 Eina.Log.Warning($"Callback error: {e.ToString()}");
731 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
739 return efl_input_processed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
743 private static efl_input_processed_get_delegate efl_input_processed_get_static_delegate;
746 private delegate void efl_input_processed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val);
749 public delegate void efl_input_processed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val);
751 public static Efl.Eo.FunctionWrapper<efl_input_processed_set_api_delegate> efl_input_processed_set_ptr = new Efl.Eo.FunctionWrapper<efl_input_processed_set_api_delegate>(Module, "efl_input_processed_set");
753 private static void processed_set(System.IntPtr obj, System.IntPtr pd, bool val)
755 Eina.Log.Debug("function efl_input_processed_set was called");
756 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
762 ((Focus)ws.Target).SetProcessed(val);
766 Eina.Log.Warning($"Callback error: {e.ToString()}");
767 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
774 efl_input_processed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val);
778 private static efl_input_processed_set_delegate efl_input_processed_set_static_delegate;
780 [return: MarshalAs(UnmanagedType.U1)]
781 private delegate bool efl_input_scrolling_get_delegate(System.IntPtr obj, System.IntPtr pd);
783 [return: MarshalAs(UnmanagedType.U1)]
784 public delegate bool efl_input_scrolling_get_api_delegate(System.IntPtr obj);
786 public static Efl.Eo.FunctionWrapper<efl_input_scrolling_get_api_delegate> efl_input_scrolling_get_ptr = new Efl.Eo.FunctionWrapper<efl_input_scrolling_get_api_delegate>(Module, "efl_input_scrolling_get");
788 private static bool scrolling_get(System.IntPtr obj, System.IntPtr pd)
790 Eina.Log.Debug("function efl_input_scrolling_get was called");
791 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
794 bool _ret_var = default(bool);
797 _ret_var = ((Focus)ws.Target).GetScrolling();
801 Eina.Log.Warning($"Callback error: {e.ToString()}");
802 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
810 return efl_input_scrolling_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
814 private static efl_input_scrolling_get_delegate efl_input_scrolling_get_static_delegate;
817 private delegate void efl_input_scrolling_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val);
820 public delegate void efl_input_scrolling_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val);
822 public static Efl.Eo.FunctionWrapper<efl_input_scrolling_set_api_delegate> efl_input_scrolling_set_ptr = new Efl.Eo.FunctionWrapper<efl_input_scrolling_set_api_delegate>(Module, "efl_input_scrolling_set");
824 private static void scrolling_set(System.IntPtr obj, System.IntPtr pd, bool val)
826 Eina.Log.Debug("function efl_input_scrolling_set was called");
827 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
833 ((Focus)ws.Target).SetScrolling(val);
837 Eina.Log.Warning($"Callback error: {e.ToString()}");
838 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
845 efl_input_scrolling_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val);
849 private static efl_input_scrolling_set_delegate efl_input_scrolling_set_static_delegate;
851 [return: MarshalAs(UnmanagedType.U1)]
852 private delegate bool efl_input_fake_get_delegate(System.IntPtr obj, System.IntPtr pd);
854 [return: MarshalAs(UnmanagedType.U1)]
855 public delegate bool efl_input_fake_get_api_delegate(System.IntPtr obj);
857 public static Efl.Eo.FunctionWrapper<efl_input_fake_get_api_delegate> efl_input_fake_get_ptr = new Efl.Eo.FunctionWrapper<efl_input_fake_get_api_delegate>(Module, "efl_input_fake_get");
859 private static bool fake_get(System.IntPtr obj, System.IntPtr pd)
861 Eina.Log.Debug("function efl_input_fake_get was called");
862 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
865 bool _ret_var = default(bool);
868 _ret_var = ((Focus)ws.Target).GetFake();
872 Eina.Log.Warning($"Callback error: {e.ToString()}");
873 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
881 return efl_input_fake_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
885 private static efl_input_fake_get_delegate efl_input_fake_get_static_delegate;
888 private delegate void efl_input_reset_delegate(System.IntPtr obj, System.IntPtr pd);
891 public delegate void efl_input_reset_api_delegate(System.IntPtr obj);
893 public static Efl.Eo.FunctionWrapper<efl_input_reset_api_delegate> efl_input_reset_ptr = new Efl.Eo.FunctionWrapper<efl_input_reset_api_delegate>(Module, "efl_input_reset");
895 private static void reset(System.IntPtr obj, System.IntPtr pd)
897 Eina.Log.Debug("function efl_input_reset was called");
898 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
904 ((Focus)ws.Target).Reset();
908 Eina.Log.Warning($"Callback error: {e.ToString()}");
909 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
916 efl_input_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
920 private static efl_input_reset_delegate efl_input_reset_static_delegate;
922 #pragma warning restore CA1707, CS1591, SA1300, SA1600
931 #pragma warning disable CS1591
932 public static class Efl_InputFocus_ExtensionMethods {
933 public static Efl.BindableProperty<Efl.Object> Object<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Input.Focus, T>magic = null) where T : Efl.Input.Focus {
934 return new Efl.BindableProperty<Efl.Object>("object", fac);
937 public static Efl.BindableProperty<double> Timestamp<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Input.Focus, T>magic = null) where T : Efl.Input.Focus {
938 return new Efl.BindableProperty<double>("timestamp", fac);
941 public static Efl.BindableProperty<Efl.Input.Device> Device<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Input.Focus, T>magic = null) where T : Efl.Input.Focus {
942 return new Efl.BindableProperty<Efl.Input.Device>("device", fac);
945 public static Efl.BindableProperty<Efl.Input.Flags> EventFlags<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Input.Focus, T>magic = null) where T : Efl.Input.Focus {
946 return new Efl.BindableProperty<Efl.Input.Flags>("event_flags", fac);
949 public static Efl.BindableProperty<bool> Processed<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Input.Focus, T>magic = null) where T : Efl.Input.Focus {
950 return new Efl.BindableProperty<bool>("processed", fac);
953 public static Efl.BindableProperty<bool> Scrolling<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Input.Focus, T>magic = null) where T : Efl.Input.Focus {
954 return new Efl.BindableProperty<bool>("scrolling", fac);
959 #pragma warning restore CS1591