1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.Threading;
7 using System.ComponentModel;
12 /// <summary>EFL UI Calendar Item class</summary>
13 [Efl.Ui.CalendarItem.NativeMethods]
14 public class CalendarItem : Efl.Object, Efl.Eo.IWrapper,Efl.Ui.Focus.IObject
16 ///<summary>Pointer to the native class description.</summary>
17 public override System.IntPtr NativeClass
21 if (((object)this).GetType() == typeof(CalendarItem))
23 return GetEflClassStatic();
27 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
32 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
33 efl_ui_calendar_item_class_get();
34 /// <summary>Initializes a new instance of the <see cref="CalendarItem"/> class.</summary>
35 /// <param name="parent">Parent instance.</param>
36 public CalendarItem(Efl.Object parent= null
37 ) : base(efl_ui_calendar_item_class_get(), typeof(CalendarItem), parent)
39 FinishInstantiation();
42 /// <summary>Initializes a new instance of the <see cref="CalendarItem"/> class.
43 /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
44 /// <param name="raw">The native pointer to be wrapped.</param>
45 protected CalendarItem(System.IntPtr raw) : base(raw)
49 /// <summary>Initializes a new instance of the <see cref="CalendarItem"/> class.
50 /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
51 /// <param name="baseKlass">The pointer to the base native Eo class.</param>
52 /// <param name="managedType">The managed type of the public constructor that originated this call.</param>
53 /// <param name="parent">The Efl.Object parent of this instance.</param>
54 protected CalendarItem(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent)
58 /// <summary>Verifies if the given object is equal to this one.</summary>
59 /// <param name="instance">The object to compare to.</param>
60 /// <returns>True if both objects point to the same native object.</returns>
61 public override bool Equals(object instance)
63 var other = instance as Efl.Object;
68 return this.NativeHandle == other.NativeHandle;
71 /// <summary>Gets the hash code for this object based on the native pointer it points to.</summary>
72 /// <returns>The value of the pointer, to be used as the hash code of this object.</returns>
73 public override int GetHashCode()
75 return this.NativeHandle.ToInt32();
78 /// <summary>Turns the native pointer into a string representation.</summary>
79 /// <returns>A string with the type and the native pointer for this object.</returns>
80 public override String ToString()
82 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
85 /// <summary>Emitted if the focus state has changed.
86 /// (Since EFL 1.22)</summary>
87 public event EventHandler<Efl.Ui.Focus.IObjectFocusChangedEvt_Args> FocusChangedEvt
93 var wRef = new WeakReference(this);
94 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
96 var obj = wRef.Target as Efl.Eo.IWrapper;
99 Efl.Ui.Focus.IObjectFocusChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusChangedEvt_Args();
100 args.arg = evt.Info != IntPtr.Zero;
103 value?.Invoke(obj, args);
107 Eina.Log.Error(e.ToString());
108 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
113 string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED";
114 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
122 string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED";
123 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
127 ///<summary>Method to raise event FocusChangedEvt.</summary>
128 public void OnFocusChangedEvt(Efl.Ui.Focus.IObjectFocusChangedEvt_Args e)
130 var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED";
131 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
132 if (desc == IntPtr.Zero)
134 Eina.Log.Error($"Failed to get native event {key}");
138 IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0);
141 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
145 Marshal.FreeHGlobal(info);
148 /// <summary>Emitted when a new manager is the parent for this object.
149 /// (Since EFL 1.22)</summary>
150 public event EventHandler<Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args> FocusManagerChangedEvt
156 var wRef = new WeakReference(this);
157 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
159 var obj = wRef.Target as Efl.Eo.IWrapper;
162 Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args();
163 args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete);
166 value?.Invoke(obj, args);
170 Eina.Log.Error(e.ToString());
171 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
176 string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_MANAGER_CHANGED";
177 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
185 string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_MANAGER_CHANGED";
186 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
190 ///<summary>Method to raise event FocusManagerChangedEvt.</summary>
191 public void OnFocusManagerChangedEvt(Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args e)
193 var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_MANAGER_CHANGED";
194 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
195 if (desc == IntPtr.Zero)
197 Eina.Log.Error($"Failed to get native event {key}");
201 IntPtr info = e.arg.NativeHandle;
202 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
204 /// <summary>Emitted when a new logical parent should be used.
205 /// (Since EFL 1.22)</summary>
206 public event EventHandler<Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args> FocusParentChangedEvt
212 var wRef = new WeakReference(this);
213 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
215 var obj = wRef.Target as Efl.Eo.IWrapper;
218 Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args();
219 args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete);
222 value?.Invoke(obj, args);
226 Eina.Log.Error(e.ToString());
227 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
232 string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_PARENT_CHANGED";
233 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
241 string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_PARENT_CHANGED";
242 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
246 ///<summary>Method to raise event FocusParentChangedEvt.</summary>
247 public void OnFocusParentChangedEvt(Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args e)
249 var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_PARENT_CHANGED";
250 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
251 if (desc == IntPtr.Zero)
253 Eina.Log.Error($"Failed to get native event {key}");
257 IntPtr info = e.arg.NativeHandle;
258 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
260 /// <summary>Emitted if child_focus has changed.
261 /// (Since EFL 1.22)</summary>
262 public event EventHandler<Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args> ChildFocusChangedEvt
268 var wRef = new WeakReference(this);
269 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
271 var obj = wRef.Target as Efl.Eo.IWrapper;
274 Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args args = new Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args();
275 args.arg = evt.Info != IntPtr.Zero;
278 value?.Invoke(obj, args);
282 Eina.Log.Error(e.ToString());
283 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
288 string key = "_EFL_UI_FOCUS_OBJECT_EVENT_CHILD_FOCUS_CHANGED";
289 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
297 string key = "_EFL_UI_FOCUS_OBJECT_EVENT_CHILD_FOCUS_CHANGED";
298 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
302 ///<summary>Method to raise event ChildFocusChangedEvt.</summary>
303 public void OnChildFocusChangedEvt(Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args e)
305 var key = "_EFL_UI_FOCUS_OBJECT_EVENT_CHILD_FOCUS_CHANGED";
306 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
307 if (desc == IntPtr.Zero)
309 Eina.Log.Error($"Failed to get native event {key}");
313 IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0);
316 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
320 Marshal.FreeHGlobal(info);
323 /// <summary>Emitted if focus geometry of this object has changed.
324 /// (Since EFL 1.22)</summary>
325 public event EventHandler<Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args> FocusGeometryChangedEvt
331 var wRef = new WeakReference(this);
332 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
334 var obj = wRef.Target as Efl.Eo.IWrapper;
337 Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args();
341 value?.Invoke(obj, args);
345 Eina.Log.Error(e.ToString());
346 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
351 string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_GEOMETRY_CHANGED";
352 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
360 string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_GEOMETRY_CHANGED";
361 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
365 ///<summary>Method to raise event FocusGeometryChangedEvt.</summary>
366 public void OnFocusGeometryChangedEvt(Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args e)
368 var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_GEOMETRY_CHANGED";
369 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
370 if (desc == IntPtr.Zero)
372 Eina.Log.Error($"Failed to get native event {key}");
376 IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg));
379 Marshal.StructureToPtr(e.arg, info, false);
380 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
384 Marshal.FreeHGlobal(info);
387 /// <summary>Day number</summary>
388 /// <returns>Day number</returns>
389 virtual public int GetDayNumber() {
390 var _ret_var = Efl.Ui.CalendarItem.NativeMethods.efl_ui_calendar_item_day_number_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
391 Eina.Error.RaiseIfUnhandledException();
394 /// <summary>Day number</summary>
395 /// <param name="i">Day number</param>
396 virtual public void SetDayNumber(int i) {
397 Efl.Ui.CalendarItem.NativeMethods.efl_ui_calendar_item_day_number_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),i);
398 Eina.Error.RaiseIfUnhandledException();
400 /// <summary>The geometry (that is, the bounding rectangle) used to calculate the relationship with other objects.
401 /// (Since EFL 1.22)</summary>
402 /// <returns>The geometry to use.</returns>
403 virtual public Eina.Rect GetFocusGeometry() {
404 var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_focus_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
405 Eina.Error.RaiseIfUnhandledException();
408 /// <summary>Returns whether the widget is currently focused or not.
409 /// (Since EFL 1.22)</summary>
410 /// <returns>The focused state of the object.</returns>
411 virtual public bool GetFocus() {
412 var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
413 Eina.Error.RaiseIfUnhandledException();
416 /// <summary>This is called by the manager and should never be called by anyone else.
417 /// The function emits the focus state events, if focus is different to the previous state.
418 /// (Since EFL 1.22)</summary>
419 /// <param name="focus">The focused state of the object.</param>
420 virtual public void SetFocus(bool focus) {
421 Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_focus_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),focus);
422 Eina.Error.RaiseIfUnhandledException();
424 /// <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.
425 /// (Since EFL 1.22)</summary>
426 /// <returns>The manager object</returns>
427 virtual public Efl.Ui.Focus.IManager GetFocusManager() {
428 var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_focus_manager_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
429 Eina.Error.RaiseIfUnhandledException();
432 /// <summary>Describes which logical parent is used by this object.
433 /// (Since EFL 1.22)</summary>
434 /// <returns>The focus parent.</returns>
435 virtual public Efl.Ui.Focus.IObject GetFocusParent() {
436 var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_focus_parent_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
437 Eina.Error.RaiseIfUnhandledException();
440 /// <summary>Indicates if a child of this object has focus set to true.
441 /// (Since EFL 1.22)</summary>
442 /// <returns><c>true</c> if a child has focus.</returns>
443 virtual public bool GetChildFocus() {
444 var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_child_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
445 Eina.Error.RaiseIfUnhandledException();
448 /// <summary>Indicates if a child of this object has focus set to true.
449 /// (Since EFL 1.22)</summary>
450 /// <param name="child_focus"><c>true</c> if a child has focus.</param>
451 virtual public void SetChildFocus(bool child_focus) {
452 Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_child_focus_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child_focus);
453 Eina.Error.RaiseIfUnhandledException();
455 /// <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.
456 /// (Since EFL 1.22)</summary>
457 virtual public void SetupOrder() {
458 Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_setup_order_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
459 Eina.Error.RaiseIfUnhandledException();
461 /// <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.
462 /// (Since EFL 1.22)</summary>
463 virtual public void SetupOrderNonRecursive() {
464 Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_setup_order_non_recursive_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
465 Eina.Error.RaiseIfUnhandledException();
467 /// <summary>Virtual function handling focus in/out events on the widget
468 /// (Since EFL 1.22)</summary>
469 /// <returns><c>true</c> if this widget can handle focus, <c>false</c> otherwise</returns>
470 virtual public bool UpdateOnFocus() {
471 var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_on_focus_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
472 Eina.Error.RaiseIfUnhandledException();
475 /// <summary>Day number</summary>
476 /// <value>Day number</value>
477 public int DayNumber {
478 get { return GetDayNumber(); }
479 set { SetDayNumber(value); }
481 /// <summary>The geometry (that is, the bounding rectangle) used to calculate the relationship with other objects.
482 /// (Since EFL 1.22)</summary>
483 /// <value>The geometry to use.</value>
484 public Eina.Rect FocusGeometry {
485 get { return GetFocusGeometry(); }
487 /// <summary>Returns whether the widget is currently focused or not.
488 /// (Since EFL 1.22)</summary>
489 /// <value>The focused state of the object.</value>
491 get { return GetFocus(); }
492 set { SetFocus(value); }
494 /// <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.
495 /// (Since EFL 1.22)</summary>
496 /// <value>The manager object</value>
497 public Efl.Ui.Focus.IManager FocusManager {
498 get { return GetFocusManager(); }
500 /// <summary>Describes which logical parent is used by this object.
501 /// (Since EFL 1.22)</summary>
502 /// <value>The focus parent.</value>
503 public Efl.Ui.Focus.IObject FocusParent {
504 get { return GetFocusParent(); }
506 /// <summary>Indicates if a child of this object has focus set to true.
507 /// (Since EFL 1.22)</summary>
508 /// <value><c>true</c> if a child has focus.</value>
509 public bool ChildFocus {
510 get { return GetChildFocus(); }
511 set { SetChildFocus(value); }
513 private static IntPtr GetEflClassStatic()
515 return Efl.Ui.CalendarItem.efl_ui_calendar_item_class_get();
517 /// <summary>Wrapper for native methods and virtual method delegates.
518 /// For internal use by generated code only.</summary>
519 public new class NativeMethods : Efl.Object.NativeMethods
521 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary);
522 /// <summary>Gets the list of Eo operations to override.</summary>
523 /// <returns>The list of Eo operations to be overload.</returns>
524 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
526 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
527 var methods = Efl.Eo.Globals.GetUserMethods(type);
529 if (efl_ui_calendar_item_day_number_get_static_delegate == null)
531 efl_ui_calendar_item_day_number_get_static_delegate = new efl_ui_calendar_item_day_number_get_delegate(day_number_get);
534 if (methods.FirstOrDefault(m => m.Name == "GetDayNumber") != null)
536 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_calendar_item_day_number_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_item_day_number_get_static_delegate) });
539 if (efl_ui_calendar_item_day_number_set_static_delegate == null)
541 efl_ui_calendar_item_day_number_set_static_delegate = new efl_ui_calendar_item_day_number_set_delegate(day_number_set);
544 if (methods.FirstOrDefault(m => m.Name == "SetDayNumber") != null)
546 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_calendar_item_day_number_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_item_day_number_set_static_delegate) });
549 if (efl_ui_focus_object_focus_geometry_get_static_delegate == null)
551 efl_ui_focus_object_focus_geometry_get_static_delegate = new efl_ui_focus_object_focus_geometry_get_delegate(focus_geometry_get);
554 if (methods.FirstOrDefault(m => m.Name == "GetFocusGeometry") != null)
556 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) });
559 if (efl_ui_focus_object_focus_get_static_delegate == null)
561 efl_ui_focus_object_focus_get_static_delegate = new efl_ui_focus_object_focus_get_delegate(focus_get);
564 if (methods.FirstOrDefault(m => m.Name == "GetFocus") != null)
566 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) });
569 if (efl_ui_focus_object_focus_set_static_delegate == null)
571 efl_ui_focus_object_focus_set_static_delegate = new efl_ui_focus_object_focus_set_delegate(focus_set);
574 if (methods.FirstOrDefault(m => m.Name == "SetFocus") != null)
576 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) });
579 if (efl_ui_focus_object_focus_manager_get_static_delegate == null)
581 efl_ui_focus_object_focus_manager_get_static_delegate = new efl_ui_focus_object_focus_manager_get_delegate(focus_manager_get);
584 if (methods.FirstOrDefault(m => m.Name == "GetFocusManager") != null)
586 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) });
589 if (efl_ui_focus_object_focus_parent_get_static_delegate == null)
591 efl_ui_focus_object_focus_parent_get_static_delegate = new efl_ui_focus_object_focus_parent_get_delegate(focus_parent_get);
594 if (methods.FirstOrDefault(m => m.Name == "GetFocusParent") != null)
596 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) });
599 if (efl_ui_focus_object_child_focus_get_static_delegate == null)
601 efl_ui_focus_object_child_focus_get_static_delegate = new efl_ui_focus_object_child_focus_get_delegate(child_focus_get);
604 if (methods.FirstOrDefault(m => m.Name == "GetChildFocus") != null)
606 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) });
609 if (efl_ui_focus_object_child_focus_set_static_delegate == null)
611 efl_ui_focus_object_child_focus_set_static_delegate = new efl_ui_focus_object_child_focus_set_delegate(child_focus_set);
614 if (methods.FirstOrDefault(m => m.Name == "SetChildFocus") != null)
616 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) });
619 if (efl_ui_focus_object_setup_order_static_delegate == null)
621 efl_ui_focus_object_setup_order_static_delegate = new efl_ui_focus_object_setup_order_delegate(setup_order);
624 if (methods.FirstOrDefault(m => m.Name == "SetupOrder") != null)
626 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) });
629 if (efl_ui_focus_object_setup_order_non_recursive_static_delegate == null)
631 efl_ui_focus_object_setup_order_non_recursive_static_delegate = new efl_ui_focus_object_setup_order_non_recursive_delegate(setup_order_non_recursive);
634 if (methods.FirstOrDefault(m => m.Name == "SetupOrderNonRecursive") != null)
636 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) });
639 if (efl_ui_focus_object_on_focus_update_static_delegate == null)
641 efl_ui_focus_object_on_focus_update_static_delegate = new efl_ui_focus_object_on_focus_update_delegate(on_focus_update);
644 if (methods.FirstOrDefault(m => m.Name == "UpdateOnFocus") != null)
646 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) });
649 descs.AddRange(base.GetEoOps(type));
652 /// <summary>Returns the Eo class for the native methods of this class.</summary>
653 /// <returns>The native class pointer.</returns>
654 public override IntPtr GetEflClass()
656 return Efl.Ui.CalendarItem.efl_ui_calendar_item_class_get();
659 #pragma warning disable CA1707, SA1300, SA1600
662 private delegate int efl_ui_calendar_item_day_number_get_delegate(System.IntPtr obj, System.IntPtr pd);
665 public delegate int efl_ui_calendar_item_day_number_get_api_delegate(System.IntPtr obj);
667 public static Efl.Eo.FunctionWrapper<efl_ui_calendar_item_day_number_get_api_delegate> efl_ui_calendar_item_day_number_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_calendar_item_day_number_get_api_delegate>(Module, "efl_ui_calendar_item_day_number_get");
669 private static int day_number_get(System.IntPtr obj, System.IntPtr pd)
671 Eina.Log.Debug("function efl_ui_calendar_item_day_number_get was called");
672 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
675 int _ret_var = default(int);
678 _ret_var = ((CalendarItem)wrapper).GetDayNumber();
682 Eina.Log.Warning($"Callback error: {e.ToString()}");
683 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
691 return efl_ui_calendar_item_day_number_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
695 private static efl_ui_calendar_item_day_number_get_delegate efl_ui_calendar_item_day_number_get_static_delegate;
698 private delegate void efl_ui_calendar_item_day_number_set_delegate(System.IntPtr obj, System.IntPtr pd, int i);
701 public delegate void efl_ui_calendar_item_day_number_set_api_delegate(System.IntPtr obj, int i);
703 public static Efl.Eo.FunctionWrapper<efl_ui_calendar_item_day_number_set_api_delegate> efl_ui_calendar_item_day_number_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_calendar_item_day_number_set_api_delegate>(Module, "efl_ui_calendar_item_day_number_set");
705 private static void day_number_set(System.IntPtr obj, System.IntPtr pd, int i)
707 Eina.Log.Debug("function efl_ui_calendar_item_day_number_set was called");
708 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
714 ((CalendarItem)wrapper).SetDayNumber(i);
718 Eina.Log.Warning($"Callback error: {e.ToString()}");
719 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
726 efl_ui_calendar_item_day_number_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), i);
730 private static efl_ui_calendar_item_day_number_set_delegate efl_ui_calendar_item_day_number_set_static_delegate;
733 private delegate Eina.Rect.NativeStruct efl_ui_focus_object_focus_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd);
736 public delegate Eina.Rect.NativeStruct efl_ui_focus_object_focus_geometry_get_api_delegate(System.IntPtr obj);
738 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");
740 private static Eina.Rect.NativeStruct focus_geometry_get(System.IntPtr obj, System.IntPtr pd)
742 Eina.Log.Debug("function efl_ui_focus_object_focus_geometry_get was called");
743 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
746 Eina.Rect _ret_var = default(Eina.Rect);
749 _ret_var = ((CalendarItem)wrapper).GetFocusGeometry();
753 Eina.Log.Warning($"Callback error: {e.ToString()}");
754 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
762 return efl_ui_focus_object_focus_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
766 private static efl_ui_focus_object_focus_geometry_get_delegate efl_ui_focus_object_focus_geometry_get_static_delegate;
768 [return: MarshalAs(UnmanagedType.U1)]
769 private delegate bool efl_ui_focus_object_focus_get_delegate(System.IntPtr obj, System.IntPtr pd);
771 [return: MarshalAs(UnmanagedType.U1)]
772 public delegate bool efl_ui_focus_object_focus_get_api_delegate(System.IntPtr obj);
774 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");
776 private static bool focus_get(System.IntPtr obj, System.IntPtr pd)
778 Eina.Log.Debug("function efl_ui_focus_object_focus_get was called");
779 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
782 bool _ret_var = default(bool);
785 _ret_var = ((CalendarItem)wrapper).GetFocus();
789 Eina.Log.Warning($"Callback error: {e.ToString()}");
790 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
798 return efl_ui_focus_object_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
802 private static efl_ui_focus_object_focus_get_delegate efl_ui_focus_object_focus_get_static_delegate;
805 private delegate void efl_ui_focus_object_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool focus);
808 public delegate void efl_ui_focus_object_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool focus);
810 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");
812 private static void focus_set(System.IntPtr obj, System.IntPtr pd, bool focus)
814 Eina.Log.Debug("function efl_ui_focus_object_focus_set was called");
815 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
821 ((CalendarItem)wrapper).SetFocus(focus);
825 Eina.Log.Warning($"Callback error: {e.ToString()}");
826 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
833 efl_ui_focus_object_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus);
837 private static efl_ui_focus_object_focus_set_delegate efl_ui_focus_object_focus_set_static_delegate;
839 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
840 private delegate Efl.Ui.Focus.IManager efl_ui_focus_object_focus_manager_get_delegate(System.IntPtr obj, System.IntPtr pd);
842 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
843 public delegate Efl.Ui.Focus.IManager efl_ui_focus_object_focus_manager_get_api_delegate(System.IntPtr obj);
845 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");
847 private static Efl.Ui.Focus.IManager focus_manager_get(System.IntPtr obj, System.IntPtr pd)
849 Eina.Log.Debug("function efl_ui_focus_object_focus_manager_get was called");
850 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
853 Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager);
856 _ret_var = ((CalendarItem)wrapper).GetFocusManager();
860 Eina.Log.Warning($"Callback error: {e.ToString()}");
861 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
869 return efl_ui_focus_object_focus_manager_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
873 private static efl_ui_focus_object_focus_manager_get_delegate efl_ui_focus_object_focus_manager_get_static_delegate;
875 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
876 private delegate Efl.Ui.Focus.IObject efl_ui_focus_object_focus_parent_get_delegate(System.IntPtr obj, System.IntPtr pd);
878 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
879 public delegate Efl.Ui.Focus.IObject efl_ui_focus_object_focus_parent_get_api_delegate(System.IntPtr obj);
881 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");
883 private static Efl.Ui.Focus.IObject focus_parent_get(System.IntPtr obj, System.IntPtr pd)
885 Eina.Log.Debug("function efl_ui_focus_object_focus_parent_get was called");
886 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
889 Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject);
892 _ret_var = ((CalendarItem)wrapper).GetFocusParent();
896 Eina.Log.Warning($"Callback error: {e.ToString()}");
897 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
905 return efl_ui_focus_object_focus_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
909 private static efl_ui_focus_object_focus_parent_get_delegate efl_ui_focus_object_focus_parent_get_static_delegate;
911 [return: MarshalAs(UnmanagedType.U1)]
912 private delegate bool efl_ui_focus_object_child_focus_get_delegate(System.IntPtr obj, System.IntPtr pd);
914 [return: MarshalAs(UnmanagedType.U1)]
915 public delegate bool efl_ui_focus_object_child_focus_get_api_delegate(System.IntPtr obj);
917 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");
919 private static bool child_focus_get(System.IntPtr obj, System.IntPtr pd)
921 Eina.Log.Debug("function efl_ui_focus_object_child_focus_get was called");
922 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
925 bool _ret_var = default(bool);
928 _ret_var = ((CalendarItem)wrapper).GetChildFocus();
932 Eina.Log.Warning($"Callback error: {e.ToString()}");
933 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
941 return efl_ui_focus_object_child_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
945 private static efl_ui_focus_object_child_focus_get_delegate efl_ui_focus_object_child_focus_get_static_delegate;
948 private delegate void efl_ui_focus_object_child_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool child_focus);
951 public delegate void efl_ui_focus_object_child_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool child_focus);
953 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");
955 private static void child_focus_set(System.IntPtr obj, System.IntPtr pd, bool child_focus)
957 Eina.Log.Debug("function efl_ui_focus_object_child_focus_set was called");
958 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
964 ((CalendarItem)wrapper).SetChildFocus(child_focus);
968 Eina.Log.Warning($"Callback error: {e.ToString()}");
969 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
976 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);
980 private static efl_ui_focus_object_child_focus_set_delegate efl_ui_focus_object_child_focus_set_static_delegate;
983 private delegate void efl_ui_focus_object_setup_order_delegate(System.IntPtr obj, System.IntPtr pd);
986 public delegate void efl_ui_focus_object_setup_order_api_delegate(System.IntPtr obj);
988 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");
990 private static void setup_order(System.IntPtr obj, System.IntPtr pd)
992 Eina.Log.Debug("function efl_ui_focus_object_setup_order was called");
993 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
999 ((CalendarItem)wrapper).SetupOrder();
1003 Eina.Log.Warning($"Callback error: {e.ToString()}");
1004 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1011 efl_ui_focus_object_setup_order_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1015 private static efl_ui_focus_object_setup_order_delegate efl_ui_focus_object_setup_order_static_delegate;
1018 private delegate void efl_ui_focus_object_setup_order_non_recursive_delegate(System.IntPtr obj, System.IntPtr pd);
1021 public delegate void efl_ui_focus_object_setup_order_non_recursive_api_delegate(System.IntPtr obj);
1023 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");
1025 private static void setup_order_non_recursive(System.IntPtr obj, System.IntPtr pd)
1027 Eina.Log.Debug("function efl_ui_focus_object_setup_order_non_recursive was called");
1028 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1029 if (wrapper != null)
1034 ((CalendarItem)wrapper).SetupOrderNonRecursive();
1038 Eina.Log.Warning($"Callback error: {e.ToString()}");
1039 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1046 efl_ui_focus_object_setup_order_non_recursive_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1050 private static efl_ui_focus_object_setup_order_non_recursive_delegate efl_ui_focus_object_setup_order_non_recursive_static_delegate;
1052 [return: MarshalAs(UnmanagedType.U1)]
1053 private delegate bool efl_ui_focus_object_on_focus_update_delegate(System.IntPtr obj, System.IntPtr pd);
1055 [return: MarshalAs(UnmanagedType.U1)]
1056 public delegate bool efl_ui_focus_object_on_focus_update_api_delegate(System.IntPtr obj);
1058 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");
1060 private static bool on_focus_update(System.IntPtr obj, System.IntPtr pd)
1062 Eina.Log.Debug("function efl_ui_focus_object_on_focus_update was called");
1063 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1064 if (wrapper != null)
1066 bool _ret_var = default(bool);
1069 _ret_var = ((CalendarItem)wrapper).UpdateOnFocus();
1073 Eina.Log.Warning($"Callback error: {e.ToString()}");
1074 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1082 return efl_ui_focus_object_on_focus_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1086 private static efl_ui_focus_object_on_focus_update_delegate efl_ui_focus_object_on_focus_update_static_delegate;
1088 #pragma warning restore CA1707, SA1300, SA1600