1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.Threading;
7 using System.ComponentModel;
14 /// <summary>Functions of focusable objects.
15 /// (Since EFL 1.22)</summary>
16 [Efl.Ui.Focus.IObjectConcrete.NativeMethods]
17 public interface IObject :
18 Efl.Eo.IWrapper, IDisposable
20 /// <summary>The geometry (that is, the bounding rectangle) used to calculate the relationship with other objects.
21 /// (Since EFL 1.22)</summary>
22 /// <returns>The geometry to use.</returns>
23 Eina.Rect GetFocusGeometry();
24 /// <summary>Returns whether the widget is currently focused or not.
25 /// (Since EFL 1.22)</summary>
26 /// <returns>The focused state of the object.</returns>
28 /// <summary>This is called by the manager and should never be called by anyone else.
29 /// The function emits the focus state events, if focus is different to the previous state.
30 /// (Since EFL 1.22)</summary>
31 /// <param name="focus">The focused state of the object.</param>
32 void SetFocus(bool focus);
33 /// <summary>This is the focus manager where this focus object is registered in. The element which is the <c>root</c> of a Efl.Ui.Focus.Manager will not have this focus manager as this object, but rather the second focus manager where it is registered in.
34 /// (Since EFL 1.22)</summary>
35 /// <returns>The manager object</returns>
36 Efl.Ui.Focus.IManager GetFocusManager();
37 /// <summary>Describes which logical parent is used by this object.
38 /// (Since EFL 1.22)</summary>
39 /// <returns>The focus parent.</returns>
40 Efl.Ui.Focus.IObject GetFocusParent();
41 /// <summary>Indicates if a child of this object has focus set to true.
42 /// (Since EFL 1.22)</summary>
43 /// <returns><c>true</c> if a child has focus.</returns>
45 /// <summary>Indicates if a child of this object has focus set to true.
46 /// (Since EFL 1.22)</summary>
47 /// <param name="child_focus"><c>true</c> if a child has focus.</param>
48 void SetChildFocus(bool child_focus);
49 /// <summary>Tells the object that its children will be queried soon by the focus manager. Overwrite this to update the order of the children. Deleting items in this call will result in undefined behaviour and may cause your system to crash.
50 /// (Since EFL 1.22)</summary>
52 /// <summary>This is called when <see cref="Efl.Ui.Focus.IObject.SetupOrder"/> is called, but only on the first call, additional recursive calls to <see cref="Efl.Ui.Focus.IObject.SetupOrder"/> will not call this function again.
53 /// (Since EFL 1.22)</summary>
54 void SetupOrderNonRecursive();
55 /// <summary>Virtual function handling focus in/out events on the widget
56 /// (Since EFL 1.22)</summary>
57 /// <returns><c>true</c> if this widget can handle focus, <c>false</c> otherwise</returns>
59 /// <summary>Emitted if the focus state has changed.
60 /// (Since EFL 1.22)</summary>
61 event EventHandler<Efl.Ui.Focus.IObjectFocusChangedEvt_Args> FocusChangedEvt;
62 /// <summary>Emitted when a new manager is the parent for this object.
63 /// (Since EFL 1.22)</summary>
64 event EventHandler<Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args> FocusManagerChangedEvt;
65 /// <summary>Emitted when a new logical parent should be used.
66 /// (Since EFL 1.22)</summary>
67 event EventHandler<Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args> FocusParentChangedEvt;
68 /// <summary>Emitted if child_focus has changed.
69 /// (Since EFL 1.22)</summary>
70 event EventHandler<Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args> ChildFocusChangedEvt;
71 /// <summary>Emitted if focus geometry of this object has changed.
72 /// (Since EFL 1.22)</summary>
73 event EventHandler<Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args> FocusGeometryChangedEvt;
74 /// <summary>The geometry (that is, the bounding rectangle) used to calculate the relationship with other objects.
75 /// (Since EFL 1.22)</summary>
76 /// <value>The geometry to use.</value>
77 Eina.Rect FocusGeometry {
80 /// <summary>Returns whether the widget is currently focused or not.
81 /// (Since EFL 1.22)</summary>
82 /// <value>The focused state of the object.</value>
87 /// <summary>This is the focus manager where this focus object is registered in. The element which is the <c>root</c> of a Efl.Ui.Focus.Manager will not have this focus manager as this object, but rather the second focus manager where it is registered in.
88 /// (Since EFL 1.22)</summary>
89 /// <value>The manager object</value>
90 Efl.Ui.Focus.IManager FocusManager {
93 /// <summary>Describes which logical parent is used by this object.
94 /// (Since EFL 1.22)</summary>
95 /// <value>The focus parent.</value>
96 Efl.Ui.Focus.IObject FocusParent {
99 /// <summary>Indicates if a child of this object has focus set to true.
100 /// (Since EFL 1.22)</summary>
101 /// <value><c>true</c> if a child has focus.</value>
107 ///<summary>Event argument wrapper for event <see cref="Efl.Ui.Focus.IObject.FocusChangedEvt"/>.</summary>
108 public class IObjectFocusChangedEvt_Args : EventArgs {
109 ///<summary>Actual event payload.</summary>
110 public bool arg { get; set; }
112 ///<summary>Event argument wrapper for event <see cref="Efl.Ui.Focus.IObject.FocusManagerChangedEvt"/>.</summary>
113 public class IObjectFocusManagerChangedEvt_Args : EventArgs {
114 ///<summary>Actual event payload.</summary>
115 public Efl.Ui.Focus.IManager arg { get; set; }
117 ///<summary>Event argument wrapper for event <see cref="Efl.Ui.Focus.IObject.FocusParentChangedEvt"/>.</summary>
118 public class IObjectFocusParentChangedEvt_Args : EventArgs {
119 ///<summary>Actual event payload.</summary>
120 public Efl.Ui.Focus.IObject arg { get; set; }
122 ///<summary>Event argument wrapper for event <see cref="Efl.Ui.Focus.IObject.ChildFocusChangedEvt"/>.</summary>
123 public class IObjectChildFocusChangedEvt_Args : EventArgs {
124 ///<summary>Actual event payload.</summary>
125 public bool arg { get; set; }
127 ///<summary>Event argument wrapper for event <see cref="Efl.Ui.Focus.IObject.FocusGeometryChangedEvt"/>.</summary>
128 public class IObjectFocusGeometryChangedEvt_Args : EventArgs {
129 ///<summary>Actual event payload.</summary>
130 public Eina.Rect arg { get; set; }
132 /// <summary>Functions of focusable objects.
133 /// (Since EFL 1.22)</summary>
134 sealed public class IObjectConcrete :
139 ///<summary>Pointer to the native class description.</summary>
140 public override System.IntPtr NativeClass
144 if (((object)this).GetType() == typeof(IObjectConcrete))
146 return GetEflClassStatic();
150 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
155 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
156 efl_ui_focus_object_mixin_get();
157 /// <summary>Initializes a new instance of the <see cref="IObject"/> class.
158 /// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
159 private IObjectConcrete(System.IntPtr raw) : base(raw)
163 /// <summary>Emitted if the focus state has changed.
164 /// (Since EFL 1.22)</summary>
165 public event EventHandler<Efl.Ui.Focus.IObjectFocusChangedEvt_Args> FocusChangedEvt
171 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
173 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
176 Efl.Ui.Focus.IObjectFocusChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusChangedEvt_Args();
177 args.arg = Marshal.ReadByte(evt.Info) != 0;
180 value?.Invoke(obj, args);
184 Eina.Log.Error(e.ToString());
185 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
190 string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED";
191 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
199 string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED";
200 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
204 ///<summary>Method to raise event FocusChangedEvt.</summary>
205 public void OnFocusChangedEvt(Efl.Ui.Focus.IObjectFocusChangedEvt_Args e)
207 var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED";
208 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
209 if (desc == IntPtr.Zero)
211 Eina.Log.Error($"Failed to get native event {key}");
215 IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0);
218 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
222 Marshal.FreeHGlobal(info);
225 /// <summary>Emitted when a new manager is the parent for this object.
226 /// (Since EFL 1.22)</summary>
227 public event EventHandler<Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args> FocusManagerChangedEvt
233 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
235 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
238 Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args();
239 args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete);
242 value?.Invoke(obj, args);
246 Eina.Log.Error(e.ToString());
247 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
252 string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_MANAGER_CHANGED";
253 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
261 string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_MANAGER_CHANGED";
262 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
266 ///<summary>Method to raise event FocusManagerChangedEvt.</summary>
267 public void OnFocusManagerChangedEvt(Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args e)
269 var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_MANAGER_CHANGED";
270 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
271 if (desc == IntPtr.Zero)
273 Eina.Log.Error($"Failed to get native event {key}");
277 IntPtr info = e.arg.NativeHandle;
278 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
280 /// <summary>Emitted when a new logical parent should be used.
281 /// (Since EFL 1.22)</summary>
282 public event EventHandler<Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args> FocusParentChangedEvt
288 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
290 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
293 Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args();
294 args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete);
297 value?.Invoke(obj, args);
301 Eina.Log.Error(e.ToString());
302 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
307 string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_PARENT_CHANGED";
308 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
316 string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_PARENT_CHANGED";
317 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
321 ///<summary>Method to raise event FocusParentChangedEvt.</summary>
322 public void OnFocusParentChangedEvt(Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args e)
324 var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_PARENT_CHANGED";
325 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
326 if (desc == IntPtr.Zero)
328 Eina.Log.Error($"Failed to get native event {key}");
332 IntPtr info = e.arg.NativeHandle;
333 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
335 /// <summary>Emitted if child_focus has changed.
336 /// (Since EFL 1.22)</summary>
337 public event EventHandler<Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args> ChildFocusChangedEvt
343 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
345 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
348 Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args args = new Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args();
349 args.arg = Marshal.ReadByte(evt.Info) != 0;
352 value?.Invoke(obj, args);
356 Eina.Log.Error(e.ToString());
357 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
362 string key = "_EFL_UI_FOCUS_OBJECT_EVENT_CHILD_FOCUS_CHANGED";
363 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
371 string key = "_EFL_UI_FOCUS_OBJECT_EVENT_CHILD_FOCUS_CHANGED";
372 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
376 ///<summary>Method to raise event ChildFocusChangedEvt.</summary>
377 public void OnChildFocusChangedEvt(Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args e)
379 var key = "_EFL_UI_FOCUS_OBJECT_EVENT_CHILD_FOCUS_CHANGED";
380 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
381 if (desc == IntPtr.Zero)
383 Eina.Log.Error($"Failed to get native event {key}");
387 IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0);
390 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
394 Marshal.FreeHGlobal(info);
397 /// <summary>Emitted if focus geometry of this object has changed.
398 /// (Since EFL 1.22)</summary>
399 public event EventHandler<Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args> FocusGeometryChangedEvt
405 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
407 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
410 Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args();
414 value?.Invoke(obj, args);
418 Eina.Log.Error(e.ToString());
419 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
424 string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_GEOMETRY_CHANGED";
425 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
433 string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_GEOMETRY_CHANGED";
434 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
438 ///<summary>Method to raise event FocusGeometryChangedEvt.</summary>
439 public void OnFocusGeometryChangedEvt(Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args e)
441 var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_GEOMETRY_CHANGED";
442 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
443 if (desc == IntPtr.Zero)
445 Eina.Log.Error($"Failed to get native event {key}");
449 IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg));
452 Marshal.StructureToPtr(e.arg, info, false);
453 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
457 Marshal.FreeHGlobal(info);
460 /// <summary>The geometry (that is, the bounding rectangle) used to calculate the relationship with other objects.
461 /// (Since EFL 1.22)</summary>
462 /// <returns>The geometry to use.</returns>
463 public Eina.Rect GetFocusGeometry() {
464 var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_focus_geometry_get_ptr.Value.Delegate(this.NativeHandle);
465 Eina.Error.RaiseIfUnhandledException();
468 /// <summary>Returns whether the widget is currently focused or not.
469 /// (Since EFL 1.22)</summary>
470 /// <returns>The focused state of the object.</returns>
471 public bool GetFocus() {
472 var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_focus_get_ptr.Value.Delegate(this.NativeHandle);
473 Eina.Error.RaiseIfUnhandledException();
476 /// <summary>This is called by the manager and should never be called by anyone else.
477 /// The function emits the focus state events, if focus is different to the previous state.
478 /// (Since EFL 1.22)</summary>
479 /// <param name="focus">The focused state of the object.</param>
480 public void SetFocus(bool focus) {
481 Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_focus_set_ptr.Value.Delegate(this.NativeHandle,focus);
482 Eina.Error.RaiseIfUnhandledException();
484 /// <summary>This is the focus manager where this focus object is registered in. The element which is the <c>root</c> of a Efl.Ui.Focus.Manager will not have this focus manager as this object, but rather the second focus manager where it is registered in.
485 /// (Since EFL 1.22)</summary>
486 /// <returns>The manager object</returns>
487 public Efl.Ui.Focus.IManager GetFocusManager() {
488 var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_focus_manager_get_ptr.Value.Delegate(this.NativeHandle);
489 Eina.Error.RaiseIfUnhandledException();
492 /// <summary>Describes which logical parent is used by this object.
493 /// (Since EFL 1.22)</summary>
494 /// <returns>The focus parent.</returns>
495 public Efl.Ui.Focus.IObject GetFocusParent() {
496 var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_focus_parent_get_ptr.Value.Delegate(this.NativeHandle);
497 Eina.Error.RaiseIfUnhandledException();
500 /// <summary>Indicates if a child of this object has focus set to true.
501 /// (Since EFL 1.22)</summary>
502 /// <returns><c>true</c> if a child has focus.</returns>
503 public bool GetChildFocus() {
504 var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_child_focus_get_ptr.Value.Delegate(this.NativeHandle);
505 Eina.Error.RaiseIfUnhandledException();
508 /// <summary>Indicates if a child of this object has focus set to true.
509 /// (Since EFL 1.22)</summary>
510 /// <param name="child_focus"><c>true</c> if a child has focus.</param>
511 public void SetChildFocus(bool child_focus) {
512 Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_child_focus_set_ptr.Value.Delegate(this.NativeHandle,child_focus);
513 Eina.Error.RaiseIfUnhandledException();
515 /// <summary>Tells the object that its children will be queried soon by the focus manager. Overwrite this to update the order of the children. Deleting items in this call will result in undefined behaviour and may cause your system to crash.
516 /// (Since EFL 1.22)</summary>
517 public void SetupOrder() {
518 Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_setup_order_ptr.Value.Delegate(this.NativeHandle);
519 Eina.Error.RaiseIfUnhandledException();
521 /// <summary>This is called when <see cref="Efl.Ui.Focus.IObject.SetupOrder"/> is called, but only on the first call, additional recursive calls to <see cref="Efl.Ui.Focus.IObject.SetupOrder"/> will not call this function again.
522 /// (Since EFL 1.22)</summary>
523 public void SetupOrderNonRecursive() {
524 Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_setup_order_non_recursive_ptr.Value.Delegate(this.NativeHandle);
525 Eina.Error.RaiseIfUnhandledException();
527 /// <summary>Virtual function handling focus in/out events on the widget
528 /// (Since EFL 1.22)</summary>
529 /// <returns><c>true</c> if this widget can handle focus, <c>false</c> otherwise</returns>
530 public bool UpdateOnFocus() {
531 var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_on_focus_update_ptr.Value.Delegate(this.NativeHandle);
532 Eina.Error.RaiseIfUnhandledException();
535 /// <summary>The geometry (that is, the bounding rectangle) used to calculate the relationship with other objects.
536 /// (Since EFL 1.22)</summary>
537 /// <value>The geometry to use.</value>
538 public Eina.Rect FocusGeometry {
539 get { return GetFocusGeometry(); }
541 /// <summary>Returns whether the widget is currently focused or not.
542 /// (Since EFL 1.22)</summary>
543 /// <value>The focused state of the object.</value>
545 get { return GetFocus(); }
546 set { SetFocus(value); }
548 /// <summary>This is the focus manager where this focus object is registered in. The element which is the <c>root</c> of a Efl.Ui.Focus.Manager will not have this focus manager as this object, but rather the second focus manager where it is registered in.
549 /// (Since EFL 1.22)</summary>
550 /// <value>The manager object</value>
551 public Efl.Ui.Focus.IManager FocusManager {
552 get { return GetFocusManager(); }
554 /// <summary>Describes which logical parent is used by this object.
555 /// (Since EFL 1.22)</summary>
556 /// <value>The focus parent.</value>
557 public Efl.Ui.Focus.IObject FocusParent {
558 get { return GetFocusParent(); }
560 /// <summary>Indicates if a child of this object has focus set to true.
561 /// (Since EFL 1.22)</summary>
562 /// <value><c>true</c> if a child has focus.</value>
563 public bool ChildFocus {
564 get { return GetChildFocus(); }
565 set { SetChildFocus(value); }
567 private static IntPtr GetEflClassStatic()
569 return Efl.Ui.Focus.IObjectConcrete.efl_ui_focus_object_mixin_get();
571 /// <summary>Wrapper for native methods and virtual method delegates.
572 /// For internal use by generated code only.</summary>
573 public class NativeMethods : Efl.Eo.NativeClass
575 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary);
576 /// <summary>Gets the list of Eo operations to override.</summary>
577 /// <returns>The list of Eo operations to be overload.</returns>
578 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
580 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
581 var methods = Efl.Eo.Globals.GetUserMethods(type);
583 if (efl_ui_focus_object_focus_geometry_get_static_delegate == null)
585 efl_ui_focus_object_focus_geometry_get_static_delegate = new efl_ui_focus_object_focus_geometry_get_delegate(focus_geometry_get);
588 if (methods.FirstOrDefault(m => m.Name == "GetFocusGeometry") != null)
590 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_focus_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_geometry_get_static_delegate) });
593 if (efl_ui_focus_object_focus_get_static_delegate == null)
595 efl_ui_focus_object_focus_get_static_delegate = new efl_ui_focus_object_focus_get_delegate(focus_get);
598 if (methods.FirstOrDefault(m => m.Name == "GetFocus") != null)
600 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_get_static_delegate) });
603 if (efl_ui_focus_object_focus_set_static_delegate == null)
605 efl_ui_focus_object_focus_set_static_delegate = new efl_ui_focus_object_focus_set_delegate(focus_set);
608 if (methods.FirstOrDefault(m => m.Name == "SetFocus") != null)
610 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_set_static_delegate) });
613 if (efl_ui_focus_object_focus_manager_get_static_delegate == null)
615 efl_ui_focus_object_focus_manager_get_static_delegate = new efl_ui_focus_object_focus_manager_get_delegate(focus_manager_get);
618 if (methods.FirstOrDefault(m => m.Name == "GetFocusManager") != null)
620 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_focus_manager_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_manager_get_static_delegate) });
623 if (efl_ui_focus_object_focus_parent_get_static_delegate == null)
625 efl_ui_focus_object_focus_parent_get_static_delegate = new efl_ui_focus_object_focus_parent_get_delegate(focus_parent_get);
628 if (methods.FirstOrDefault(m => m.Name == "GetFocusParent") != null)
630 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_focus_parent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_parent_get_static_delegate) });
633 if (efl_ui_focus_object_child_focus_get_static_delegate == null)
635 efl_ui_focus_object_child_focus_get_static_delegate = new efl_ui_focus_object_child_focus_get_delegate(child_focus_get);
638 if (methods.FirstOrDefault(m => m.Name == "GetChildFocus") != null)
640 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_child_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_child_focus_get_static_delegate) });
643 if (efl_ui_focus_object_child_focus_set_static_delegate == null)
645 efl_ui_focus_object_child_focus_set_static_delegate = new efl_ui_focus_object_child_focus_set_delegate(child_focus_set);
648 if (methods.FirstOrDefault(m => m.Name == "SetChildFocus") != null)
650 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_child_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_child_focus_set_static_delegate) });
653 if (efl_ui_focus_object_setup_order_static_delegate == null)
655 efl_ui_focus_object_setup_order_static_delegate = new efl_ui_focus_object_setup_order_delegate(setup_order);
658 if (methods.FirstOrDefault(m => m.Name == "SetupOrder") != null)
660 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_setup_order"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_setup_order_static_delegate) });
663 if (efl_ui_focus_object_setup_order_non_recursive_static_delegate == null)
665 efl_ui_focus_object_setup_order_non_recursive_static_delegate = new efl_ui_focus_object_setup_order_non_recursive_delegate(setup_order_non_recursive);
668 if (methods.FirstOrDefault(m => m.Name == "SetupOrderNonRecursive") != null)
670 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_setup_order_non_recursive"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_setup_order_non_recursive_static_delegate) });
673 if (efl_ui_focus_object_on_focus_update_static_delegate == null)
675 efl_ui_focus_object_on_focus_update_static_delegate = new efl_ui_focus_object_on_focus_update_delegate(on_focus_update);
678 if (methods.FirstOrDefault(m => m.Name == "UpdateOnFocus") != null)
680 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_on_focus_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_on_focus_update_static_delegate) });
685 /// <summary>Returns the Eo class for the native methods of this class.</summary>
686 /// <returns>The native class pointer.</returns>
687 public override IntPtr GetEflClass()
689 return Efl.Ui.Focus.IObjectConcrete.efl_ui_focus_object_mixin_get();
692 #pragma warning disable CA1707, CS1591, SA1300, SA1600
695 private delegate Eina.Rect.NativeStruct efl_ui_focus_object_focus_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd);
698 public delegate Eina.Rect.NativeStruct efl_ui_focus_object_focus_geometry_get_api_delegate(System.IntPtr obj);
700 public static Efl.Eo.FunctionWrapper<efl_ui_focus_object_focus_geometry_get_api_delegate> efl_ui_focus_object_focus_geometry_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_object_focus_geometry_get_api_delegate>(Module, "efl_ui_focus_object_focus_geometry_get");
702 private static Eina.Rect.NativeStruct focus_geometry_get(System.IntPtr obj, System.IntPtr pd)
704 Eina.Log.Debug("function efl_ui_focus_object_focus_geometry_get was called");
705 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
708 Eina.Rect _ret_var = default(Eina.Rect);
711 _ret_var = ((IObjectConcrete)ws.Target).GetFocusGeometry();
715 Eina.Log.Warning($"Callback error: {e.ToString()}");
716 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
724 return efl_ui_focus_object_focus_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
728 private static efl_ui_focus_object_focus_geometry_get_delegate efl_ui_focus_object_focus_geometry_get_static_delegate;
730 [return: MarshalAs(UnmanagedType.U1)]
731 private delegate bool efl_ui_focus_object_focus_get_delegate(System.IntPtr obj, System.IntPtr pd);
733 [return: MarshalAs(UnmanagedType.U1)]
734 public delegate bool efl_ui_focus_object_focus_get_api_delegate(System.IntPtr obj);
736 public static Efl.Eo.FunctionWrapper<efl_ui_focus_object_focus_get_api_delegate> efl_ui_focus_object_focus_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_object_focus_get_api_delegate>(Module, "efl_ui_focus_object_focus_get");
738 private static bool focus_get(System.IntPtr obj, System.IntPtr pd)
740 Eina.Log.Debug("function efl_ui_focus_object_focus_get was called");
741 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
744 bool _ret_var = default(bool);
747 _ret_var = ((IObjectConcrete)ws.Target).GetFocus();
751 Eina.Log.Warning($"Callback error: {e.ToString()}");
752 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
760 return efl_ui_focus_object_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
764 private static efl_ui_focus_object_focus_get_delegate efl_ui_focus_object_focus_get_static_delegate;
767 private delegate void efl_ui_focus_object_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool focus);
770 public delegate void efl_ui_focus_object_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool focus);
772 public static Efl.Eo.FunctionWrapper<efl_ui_focus_object_focus_set_api_delegate> efl_ui_focus_object_focus_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_object_focus_set_api_delegate>(Module, "efl_ui_focus_object_focus_set");
774 private static void focus_set(System.IntPtr obj, System.IntPtr pd, bool focus)
776 Eina.Log.Debug("function efl_ui_focus_object_focus_set was called");
777 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
783 ((IObjectConcrete)ws.Target).SetFocus(focus);
787 Eina.Log.Warning($"Callback error: {e.ToString()}");
788 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
795 efl_ui_focus_object_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus);
799 private static efl_ui_focus_object_focus_set_delegate efl_ui_focus_object_focus_set_static_delegate;
801 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
802 private delegate Efl.Ui.Focus.IManager efl_ui_focus_object_focus_manager_get_delegate(System.IntPtr obj, System.IntPtr pd);
804 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
805 public delegate Efl.Ui.Focus.IManager efl_ui_focus_object_focus_manager_get_api_delegate(System.IntPtr obj);
807 public static Efl.Eo.FunctionWrapper<efl_ui_focus_object_focus_manager_get_api_delegate> efl_ui_focus_object_focus_manager_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_object_focus_manager_get_api_delegate>(Module, "efl_ui_focus_object_focus_manager_get");
809 private static Efl.Ui.Focus.IManager focus_manager_get(System.IntPtr obj, System.IntPtr pd)
811 Eina.Log.Debug("function efl_ui_focus_object_focus_manager_get was called");
812 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
815 Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager);
818 _ret_var = ((IObjectConcrete)ws.Target).GetFocusManager();
822 Eina.Log.Warning($"Callback error: {e.ToString()}");
823 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
831 return efl_ui_focus_object_focus_manager_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
835 private static efl_ui_focus_object_focus_manager_get_delegate efl_ui_focus_object_focus_manager_get_static_delegate;
837 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
838 private delegate Efl.Ui.Focus.IObject efl_ui_focus_object_focus_parent_get_delegate(System.IntPtr obj, System.IntPtr pd);
840 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
841 public delegate Efl.Ui.Focus.IObject efl_ui_focus_object_focus_parent_get_api_delegate(System.IntPtr obj);
843 public static Efl.Eo.FunctionWrapper<efl_ui_focus_object_focus_parent_get_api_delegate> efl_ui_focus_object_focus_parent_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_object_focus_parent_get_api_delegate>(Module, "efl_ui_focus_object_focus_parent_get");
845 private static Efl.Ui.Focus.IObject focus_parent_get(System.IntPtr obj, System.IntPtr pd)
847 Eina.Log.Debug("function efl_ui_focus_object_focus_parent_get was called");
848 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
851 Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject);
854 _ret_var = ((IObjectConcrete)ws.Target).GetFocusParent();
858 Eina.Log.Warning($"Callback error: {e.ToString()}");
859 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
867 return efl_ui_focus_object_focus_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
871 private static efl_ui_focus_object_focus_parent_get_delegate efl_ui_focus_object_focus_parent_get_static_delegate;
873 [return: MarshalAs(UnmanagedType.U1)]
874 private delegate bool efl_ui_focus_object_child_focus_get_delegate(System.IntPtr obj, System.IntPtr pd);
876 [return: MarshalAs(UnmanagedType.U1)]
877 public delegate bool efl_ui_focus_object_child_focus_get_api_delegate(System.IntPtr obj);
879 public static Efl.Eo.FunctionWrapper<efl_ui_focus_object_child_focus_get_api_delegate> efl_ui_focus_object_child_focus_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_object_child_focus_get_api_delegate>(Module, "efl_ui_focus_object_child_focus_get");
881 private static bool child_focus_get(System.IntPtr obj, System.IntPtr pd)
883 Eina.Log.Debug("function efl_ui_focus_object_child_focus_get was called");
884 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
887 bool _ret_var = default(bool);
890 _ret_var = ((IObjectConcrete)ws.Target).GetChildFocus();
894 Eina.Log.Warning($"Callback error: {e.ToString()}");
895 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
903 return efl_ui_focus_object_child_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
907 private static efl_ui_focus_object_child_focus_get_delegate efl_ui_focus_object_child_focus_get_static_delegate;
910 private delegate void efl_ui_focus_object_child_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool child_focus);
913 public delegate void efl_ui_focus_object_child_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool child_focus);
915 public static Efl.Eo.FunctionWrapper<efl_ui_focus_object_child_focus_set_api_delegate> efl_ui_focus_object_child_focus_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_object_child_focus_set_api_delegate>(Module, "efl_ui_focus_object_child_focus_set");
917 private static void child_focus_set(System.IntPtr obj, System.IntPtr pd, bool child_focus)
919 Eina.Log.Debug("function efl_ui_focus_object_child_focus_set was called");
920 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
926 ((IObjectConcrete)ws.Target).SetChildFocus(child_focus);
930 Eina.Log.Warning($"Callback error: {e.ToString()}");
931 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
938 efl_ui_focus_object_child_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_focus);
942 private static efl_ui_focus_object_child_focus_set_delegate efl_ui_focus_object_child_focus_set_static_delegate;
945 private delegate void efl_ui_focus_object_setup_order_delegate(System.IntPtr obj, System.IntPtr pd);
948 public delegate void efl_ui_focus_object_setup_order_api_delegate(System.IntPtr obj);
950 public static Efl.Eo.FunctionWrapper<efl_ui_focus_object_setup_order_api_delegate> efl_ui_focus_object_setup_order_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_object_setup_order_api_delegate>(Module, "efl_ui_focus_object_setup_order");
952 private static void setup_order(System.IntPtr obj, System.IntPtr pd)
954 Eina.Log.Debug("function efl_ui_focus_object_setup_order was called");
955 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
961 ((IObjectConcrete)ws.Target).SetupOrder();
965 Eina.Log.Warning($"Callback error: {e.ToString()}");
966 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
973 efl_ui_focus_object_setup_order_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
977 private static efl_ui_focus_object_setup_order_delegate efl_ui_focus_object_setup_order_static_delegate;
980 private delegate void efl_ui_focus_object_setup_order_non_recursive_delegate(System.IntPtr obj, System.IntPtr pd);
983 public delegate void efl_ui_focus_object_setup_order_non_recursive_api_delegate(System.IntPtr obj);
985 public static Efl.Eo.FunctionWrapper<efl_ui_focus_object_setup_order_non_recursive_api_delegate> efl_ui_focus_object_setup_order_non_recursive_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_object_setup_order_non_recursive_api_delegate>(Module, "efl_ui_focus_object_setup_order_non_recursive");
987 private static void setup_order_non_recursive(System.IntPtr obj, System.IntPtr pd)
989 Eina.Log.Debug("function efl_ui_focus_object_setup_order_non_recursive was called");
990 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
996 ((IObjectConcrete)ws.Target).SetupOrderNonRecursive();
1000 Eina.Log.Warning($"Callback error: {e.ToString()}");
1001 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1008 efl_ui_focus_object_setup_order_non_recursive_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1012 private static efl_ui_focus_object_setup_order_non_recursive_delegate efl_ui_focus_object_setup_order_non_recursive_static_delegate;
1014 [return: MarshalAs(UnmanagedType.U1)]
1015 private delegate bool efl_ui_focus_object_on_focus_update_delegate(System.IntPtr obj, System.IntPtr pd);
1017 [return: MarshalAs(UnmanagedType.U1)]
1018 public delegate bool efl_ui_focus_object_on_focus_update_api_delegate(System.IntPtr obj);
1020 public static Efl.Eo.FunctionWrapper<efl_ui_focus_object_on_focus_update_api_delegate> efl_ui_focus_object_on_focus_update_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_object_on_focus_update_api_delegate>(Module, "efl_ui_focus_object_on_focus_update");
1022 private static bool on_focus_update(System.IntPtr obj, System.IntPtr pd)
1024 Eina.Log.Debug("function efl_ui_focus_object_on_focus_update was called");
1025 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1028 bool _ret_var = default(bool);
1031 _ret_var = ((IObjectConcrete)ws.Target).UpdateOnFocus();
1035 Eina.Log.Warning($"Callback error: {e.ToString()}");
1036 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1044 return efl_ui_focus_object_on_focus_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1048 private static efl_ui_focus_object_on_focus_update_delegate efl_ui_focus_object_on_focus_update_static_delegate;
1050 #pragma warning restore CA1707, CS1591, SA1300, SA1600