2 #pragma warning disable CS1591
4 using System.Runtime.InteropServices;
5 using System.Collections.Generic;
7 using System.Threading;
8 using System.ComponentModel;
11 /// <summary>Object representing the application itself.
12 /// (Since EFL 1.22)</summary>
13 [Efl.App.NativeMethods]
14 [Efl.Eo.BindingEntity]
15 public abstract class App : Efl.Loop, Efl.Core.ICommandLine
17 /// <summary>Pointer to the native class description.</summary>
18 public override System.IntPtr NativeClass
22 if (((object)this).GetType() == typeof(App))
24 return GetEflClassStatic();
28 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
33 [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr
35 /// <summary>Initializes a new instance of the <see cref="App"/> class.</summary>
36 /// <param name="parent">Parent instance.</param>
37 public App(Efl.Object parent= null
38 ) : base(efl_app_class_get(), parent)
40 FinishInstantiation();
43 /// <summary>Subclasses should override this constructor if they are expected to be instantiated from native code.
44 /// Do not call this constructor directly.</summary>
45 /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
46 protected App(ConstructingHandle ch) : base(ch)
50 /// <summary>Initializes a new instance of the <see cref="App"/> class.
51 /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
52 /// <param name="wh">The native pointer to be wrapped.</param>
53 protected App(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
57 [Efl.Eo.PrivateNativeClass]
58 private class AppRealized : App
60 private AppRealized(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
64 /// <summary>Initializes a new instance of the <see cref="App"/> class.
65 /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
66 /// <param name="baseKlass">The pointer to the base native Eo class.</param>
67 /// <param name="parent">The Efl.Object parent of this instance.</param>
68 protected App(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent)
72 /// <summary>Called when the application is not going be displayed or otherwise used by a user for some time
73 /// (Since EFL 1.22)</summary>
74 public event EventHandler PauseEvt
78 lock (eflBindingEventLock)
80 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
82 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
85 EventArgs args = EventArgs.Empty;
88 value?.Invoke(obj, args);
92 Eina.Log.Error(e.ToString());
93 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
98 string key = "_EFL_APP_EVENT_PAUSE";
99 AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value);
105 lock (eflBindingEventLock)
107 string key = "_EFL_APP_EVENT_PAUSE";
108 RemoveNativeEventHandler(efl.Libs.Ecore, key, value);
112 /// <summary>Method to raise event PauseEvt.</summary>
113 public void OnPauseEvt(EventArgs e)
115 var key = "_EFL_APP_EVENT_PAUSE";
116 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key);
117 if (desc == IntPtr.Zero)
119 Eina.Log.Error($"Failed to get native event {key}");
123 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
125 /// <summary>Called before a window is rendered after a pause event
126 /// (Since EFL 1.22)</summary>
127 public event EventHandler ResumeEvt
131 lock (eflBindingEventLock)
133 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
135 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
138 EventArgs args = EventArgs.Empty;
141 value?.Invoke(obj, args);
145 Eina.Log.Error(e.ToString());
146 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
151 string key = "_EFL_APP_EVENT_RESUME";
152 AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value);
158 lock (eflBindingEventLock)
160 string key = "_EFL_APP_EVENT_RESUME";
161 RemoveNativeEventHandler(efl.Libs.Ecore, key, value);
165 /// <summary>Method to raise event ResumeEvt.</summary>
166 public void OnResumeEvt(EventArgs e)
168 var key = "_EFL_APP_EVENT_RESUME";
169 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key);
170 if (desc == IntPtr.Zero)
172 Eina.Log.Error($"Failed to get native event {key}");
176 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
178 /// <summary>Called when the application's windows are all destroyed
179 /// (Since EFL 1.22)</summary>
180 public event EventHandler StandbyEvt
184 lock (eflBindingEventLock)
186 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
188 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
191 EventArgs args = EventArgs.Empty;
194 value?.Invoke(obj, args);
198 Eina.Log.Error(e.ToString());
199 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
204 string key = "_EFL_APP_EVENT_STANDBY";
205 AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value);
211 lock (eflBindingEventLock)
213 string key = "_EFL_APP_EVENT_STANDBY";
214 RemoveNativeEventHandler(efl.Libs.Ecore, key, value);
218 /// <summary>Method to raise event StandbyEvt.</summary>
219 public void OnStandbyEvt(EventArgs e)
221 var key = "_EFL_APP_EVENT_STANDBY";
222 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key);
223 if (desc == IntPtr.Zero)
225 Eina.Log.Error($"Failed to get native event {key}");
229 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
231 /// <summary>Called before starting the shutdown of the application
232 /// (Since EFL 1.22)</summary>
233 public event EventHandler TerminateEvt
237 lock (eflBindingEventLock)
239 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
241 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
244 EventArgs args = EventArgs.Empty;
247 value?.Invoke(obj, args);
251 Eina.Log.Error(e.ToString());
252 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
257 string key = "_EFL_APP_EVENT_TERMINATE";
258 AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value);
264 lock (eflBindingEventLock)
266 string key = "_EFL_APP_EVENT_TERMINATE";
267 RemoveNativeEventHandler(efl.Libs.Ecore, key, value);
271 /// <summary>Method to raise event TerminateEvt.</summary>
272 public void OnTerminateEvt(EventArgs e)
274 var key = "_EFL_APP_EVENT_TERMINATE";
275 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key);
276 if (desc == IntPtr.Zero)
278 Eina.Log.Error($"Failed to get native event {key}");
282 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
284 /// <summary>System specific, but on unix maps to SIGUSR1 signal to the process - only called on main loop object
285 /// (Since EFL 1.22)</summary>
286 public event EventHandler SignalUsr1Evt
290 lock (eflBindingEventLock)
292 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
294 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
297 EventArgs args = EventArgs.Empty;
300 value?.Invoke(obj, args);
304 Eina.Log.Error(e.ToString());
305 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
310 string key = "_EFL_APP_EVENT_SIGNAL_USR1";
311 AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value);
317 lock (eflBindingEventLock)
319 string key = "_EFL_APP_EVENT_SIGNAL_USR1";
320 RemoveNativeEventHandler(efl.Libs.Ecore, key, value);
324 /// <summary>Method to raise event SignalUsr1Evt.</summary>
325 public void OnSignalUsr1Evt(EventArgs e)
327 var key = "_EFL_APP_EVENT_SIGNAL_USR1";
328 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key);
329 if (desc == IntPtr.Zero)
331 Eina.Log.Error($"Failed to get native event {key}");
335 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
337 /// <summary>System specific, but on unix maps to SIGUSR2 signal to the process - only called on main loop object
338 /// (Since EFL 1.22)</summary>
339 public event EventHandler SignalUsr2Evt
343 lock (eflBindingEventLock)
345 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
347 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
350 EventArgs args = EventArgs.Empty;
353 value?.Invoke(obj, args);
357 Eina.Log.Error(e.ToString());
358 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
363 string key = "_EFL_APP_EVENT_SIGNAL_USR2";
364 AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value);
370 lock (eflBindingEventLock)
372 string key = "_EFL_APP_EVENT_SIGNAL_USR2";
373 RemoveNativeEventHandler(efl.Libs.Ecore, key, value);
377 /// <summary>Method to raise event SignalUsr2Evt.</summary>
378 public void OnSignalUsr2Evt(EventArgs e)
380 var key = "_EFL_APP_EVENT_SIGNAL_USR2";
381 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key);
382 if (desc == IntPtr.Zero)
384 Eina.Log.Error($"Failed to get native event {key}");
388 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
390 /// <summary>System specific, but on unix maps to SIGHUP signal to the process - only called on main loop object
391 /// (Since EFL 1.22)</summary>
392 public event EventHandler SignalHupEvt
396 lock (eflBindingEventLock)
398 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
400 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
403 EventArgs args = EventArgs.Empty;
406 value?.Invoke(obj, args);
410 Eina.Log.Error(e.ToString());
411 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
416 string key = "_EFL_APP_EVENT_SIGNAL_HUP";
417 AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value);
423 lock (eflBindingEventLock)
425 string key = "_EFL_APP_EVENT_SIGNAL_HUP";
426 RemoveNativeEventHandler(efl.Libs.Ecore, key, value);
430 /// <summary>Method to raise event SignalHupEvt.</summary>
431 public void OnSignalHupEvt(EventArgs e)
433 var key = "_EFL_APP_EVENT_SIGNAL_HUP";
434 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key);
435 if (desc == IntPtr.Zero)
437 Eina.Log.Error($"Failed to get native event {key}");
441 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
443 /// <summary>Returns the app object that is representing this process
444 /// Note: This function call only works in the main loop thread of the process.
445 /// (Since EFL 1.22)</summary>
446 /// <returns>Application for this process</returns>
447 public static Efl.App GetAppMain() {
448 var _ret_var = Efl.App.NativeMethods.efl_app_main_get_ptr.Value.Delegate();
449 Eina.Error.RaiseIfUnhandledException();
452 /// <summary>Indicates the version of EFL with which this application was compiled against/for.
453 /// This might differ from <see cref="Efl.App.GetEflVersion"/>.
454 /// (Since EFL 1.22)</summary>
455 /// <returns>Efl build version</returns>
456 virtual public Efl.Version GetBuildEflVersion() {
457 var _ret_var = Efl.App.NativeMethods.efl_app_build_efl_version_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
458 Eina.Error.RaiseIfUnhandledException();
459 var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged<Efl.Version>(_ret_var);
463 /// <summary>Indicates the currently running version of EFL.
464 /// This might differ from <see cref="Efl.App.GetBuildEflVersion"/>.
465 /// (Since EFL 1.22)</summary>
466 /// <returns>Efl version</returns>
467 virtual public Efl.Version GetEflVersion() {
468 var _ret_var = Efl.App.NativeMethods.efl_app_efl_version_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
469 Eina.Error.RaiseIfUnhandledException();
470 var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged<Efl.Version>(_ret_var);
474 /// <summary>A commandline that encodes arguments in a command string. This command is unix shell-style, thus whitespace separates arguments unless escaped. Also a semi-colon ';', ampersand '&', pipe/bar '|', hash '#', bracket, square brace, brace character ('(', ')', '[', ']', '{', '}'), exclamation mark '!', backquote '`', greator or less than ('>' '<') character unless escaped or in quotes would cause args_count/value to not be generated properly, because it would force complex shell interpretation which will not be supported in evaluating the arg_count/value information, but the final shell may interpret this if this is executed via a command-line shell. To not be a complex shell command, it should be simple with paths, options and variable expansions, but nothing more complex involving the above unescaped characters.
475 /// "cat -option /path/file" "cat 'quoted argument'" "cat ~/path/escaped argument" "/bin/cat escaped argument <c>VARIABLE</c>" etc.
477 /// It should not try and use "complex shell features" if you want the arg_count and arg_value set to be correct after setting the command string. For example none of:
479 /// "VAR=x /bin/command && /bin/othercommand >& /dev/null" "VAR=x /bin/command `/bin/othercommand` | /bin/cmd2 && cmd3 &" etc.
481 /// If you set the command the arg_count/value property contents can change and be completely re-evaluated by parsing the command string into an argument array set along with interpreting escapes back into individual argument strings.</summary>
482 virtual public System.String GetCommand() {
483 var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
484 Eina.Error.RaiseIfUnhandledException();
487 /// <summary>Use an array to fill this object
488 /// Every element of a string is a argument.</summary>
489 /// <param name="array">An array where every array field is an argument</param>
490 /// <returns>On success <c>true</c>, <c>false</c> otherwise</returns>
491 virtual public bool SetCommandArray(Eina.Array<Eina.Stringshare> array) {
492 var _in_array = array.Handle;
494 array.OwnContent = false;
495 var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_array_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_array);
496 Eina.Error.RaiseIfUnhandledException();
499 /// <summary>Use a string to fill this object
500 /// The string will be split at every unescaped ' ', every resulting substring will be a new argument to the command line.</summary>
501 /// <param name="str">A command in form of a string</param>
502 /// <returns>On success <c>true</c>, <c>false</c> otherwise</returns>
503 virtual public bool SetCommandString(System.String str) {
504 var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_string_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),str);
505 Eina.Error.RaiseIfUnhandledException();
508 /// <summary>Get the accessor which enables access to each argument that got passed to this object.</summary>
509 virtual public Eina.Accessor<Eina.Stringshare> CommandAccess() {
510 var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_access_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
511 Eina.Error.RaiseIfUnhandledException();
512 return new Eina.Accessor<Eina.Stringshare>(_ret_var, false);
514 /// <summary>Returns the app object that is representing this process
515 /// Note: This function call only works in the main loop thread of the process.
516 /// (Since EFL 1.22)</summary>
517 /// <value>Application for this process</value>
518 public static Efl.App AppMain {
519 get { return GetAppMain(); }
521 /// <summary>Indicates the version of EFL with which this application was compiled against/for.
522 /// This might differ from <see cref="Efl.App.GetEflVersion"/>.
523 /// (Since EFL 1.22)</summary>
524 /// <value>Efl build version</value>
525 public Efl.Version BuildEflVersion {
526 get { return GetBuildEflVersion(); }
528 /// <summary>Indicates the currently running version of EFL.
529 /// This might differ from <see cref="Efl.App.GetBuildEflVersion"/>.
530 /// (Since EFL 1.22)</summary>
531 /// <value>Efl version</value>
532 public Efl.Version EflVersion {
533 get { return GetEflVersion(); }
535 /// <summary>A commandline that encodes arguments in a command string. This command is unix shell-style, thus whitespace separates arguments unless escaped. Also a semi-colon ';', ampersand '&', pipe/bar '|', hash '#', bracket, square brace, brace character ('(', ')', '[', ']', '{', '}'), exclamation mark '!', backquote '`', greator or less than ('>' '<') character unless escaped or in quotes would cause args_count/value to not be generated properly, because it would force complex shell interpretation which will not be supported in evaluating the arg_count/value information, but the final shell may interpret this if this is executed via a command-line shell. To not be a complex shell command, it should be simple with paths, options and variable expansions, but nothing more complex involving the above unescaped characters.
536 /// "cat -option /path/file" "cat 'quoted argument'" "cat ~/path/escaped argument" "/bin/cat escaped argument <c>VARIABLE</c>" etc.
538 /// It should not try and use "complex shell features" if you want the arg_count and arg_value set to be correct after setting the command string. For example none of:
540 /// "VAR=x /bin/command && /bin/othercommand >& /dev/null" "VAR=x /bin/command `/bin/othercommand` | /bin/cmd2 && cmd3 &" etc.
542 /// If you set the command the arg_count/value property contents can change and be completely re-evaluated by parsing the command string into an argument array set along with interpreting escapes back into individual argument strings.</summary>
543 public System.String Command {
544 get { return GetCommand(); }
546 /// <summary>Use an array to fill this object
547 /// Every element of a string is a argument.</summary>
548 /// <value>An array where every array field is an argument</value>
549 public Eina.Array<Eina.Stringshare> CommandArray {
550 set { SetCommandArray(value); }
552 /// <summary>Use a string to fill this object
553 /// The string will be split at every unescaped ' ', every resulting substring will be a new argument to the command line.</summary>
554 /// <value>A command in form of a string</value>
555 public System.String CommandString {
556 set { SetCommandString(value); }
558 private static IntPtr GetEflClassStatic()
560 return Efl.App.efl_app_class_get();
562 /// <summary>Wrapper for native methods and virtual method delegates.
563 /// For internal use by generated code only.</summary>
564 public new class NativeMethods : Efl.Loop.NativeMethods
566 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore);
567 /// <summary>Gets the list of Eo operations to override.</summary>
568 /// <returns>The list of Eo operations to be overload.</returns>
569 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
571 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
572 var methods = Efl.Eo.Globals.GetUserMethods(type);
574 if (efl_app_build_efl_version_get_static_delegate == null)
576 efl_app_build_efl_version_get_static_delegate = new efl_app_build_efl_version_get_delegate(build_efl_version_get);
579 if (methods.FirstOrDefault(m => m.Name == "GetBuildEflVersion") != null)
581 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_app_build_efl_version_get"), func = Marshal.GetFunctionPointerForDelegate(efl_app_build_efl_version_get_static_delegate) });
584 if (efl_app_efl_version_get_static_delegate == null)
586 efl_app_efl_version_get_static_delegate = new efl_app_efl_version_get_delegate(efl_version_get);
589 if (methods.FirstOrDefault(m => m.Name == "GetEflVersion") != null)
591 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_app_efl_version_get"), func = Marshal.GetFunctionPointerForDelegate(efl_app_efl_version_get_static_delegate) });
594 if (efl_core_command_line_command_get_static_delegate == null)
596 efl_core_command_line_command_get_static_delegate = new efl_core_command_line_command_get_delegate(command_get);
599 if (methods.FirstOrDefault(m => m.Name == "GetCommand") != null)
601 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_command_line_command_get"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_get_static_delegate) });
604 if (efl_core_command_line_command_array_set_static_delegate == null)
606 efl_core_command_line_command_array_set_static_delegate = new efl_core_command_line_command_array_set_delegate(command_array_set);
609 if (methods.FirstOrDefault(m => m.Name == "SetCommandArray") != null)
611 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_command_line_command_array_set"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_array_set_static_delegate) });
614 if (efl_core_command_line_command_string_set_static_delegate == null)
616 efl_core_command_line_command_string_set_static_delegate = new efl_core_command_line_command_string_set_delegate(command_string_set);
619 if (methods.FirstOrDefault(m => m.Name == "SetCommandString") != null)
621 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_command_line_command_string_set"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_string_set_static_delegate) });
624 if (efl_core_command_line_command_access_static_delegate == null)
626 efl_core_command_line_command_access_static_delegate = new efl_core_command_line_command_access_delegate(command_access);
629 if (methods.FirstOrDefault(m => m.Name == "CommandAccess") != null)
631 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_command_line_command_access"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_access_static_delegate) });
634 descs.AddRange(base.GetEoOps(type));
637 /// <summary>Returns the Eo class for the native methods of this class.</summary>
638 /// <returns>The native class pointer.</returns>
639 public override IntPtr GetEflClass()
641 return Efl.App.efl_app_class_get();
644 #pragma warning disable CA1707, CS1591, SA1300, SA1600
646 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
647 private delegate Efl.App efl_app_main_get_delegate();
649 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
650 public delegate Efl.App efl_app_main_get_api_delegate();
652 public static Efl.Eo.FunctionWrapper<efl_app_main_get_api_delegate> efl_app_main_get_ptr = new Efl.Eo.FunctionWrapper<efl_app_main_get_api_delegate>(Module, "efl_app_main_get");
654 private static Efl.App app_main_get(System.IntPtr obj, System.IntPtr pd)
656 Eina.Log.Debug("function efl_app_main_get was called");
657 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
660 Efl.App _ret_var = default(Efl.App);
663 _ret_var = App.GetAppMain();
667 Eina.Log.Warning($"Callback error: {e.ToString()}");
668 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
676 return efl_app_main_get_ptr.Value.Delegate();
681 private delegate System.IntPtr efl_app_build_efl_version_get_delegate(System.IntPtr obj, System.IntPtr pd);
684 public delegate System.IntPtr efl_app_build_efl_version_get_api_delegate(System.IntPtr obj);
686 public static Efl.Eo.FunctionWrapper<efl_app_build_efl_version_get_api_delegate> efl_app_build_efl_version_get_ptr = new Efl.Eo.FunctionWrapper<efl_app_build_efl_version_get_api_delegate>(Module, "efl_app_build_efl_version_get");
688 private static System.IntPtr build_efl_version_get(System.IntPtr obj, System.IntPtr pd)
690 Eina.Log.Debug("function efl_app_build_efl_version_get was called");
691 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
694 Efl.Version _ret_var = default(Efl.Version);
697 _ret_var = ((App)ws.Target).GetBuildEflVersion();
701 Eina.Log.Warning($"Callback error: {e.ToString()}");
702 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
705 return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var);
710 return efl_app_build_efl_version_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
714 private static efl_app_build_efl_version_get_delegate efl_app_build_efl_version_get_static_delegate;
717 private delegate System.IntPtr efl_app_efl_version_get_delegate(System.IntPtr obj, System.IntPtr pd);
720 public delegate System.IntPtr efl_app_efl_version_get_api_delegate(System.IntPtr obj);
722 public static Efl.Eo.FunctionWrapper<efl_app_efl_version_get_api_delegate> efl_app_efl_version_get_ptr = new Efl.Eo.FunctionWrapper<efl_app_efl_version_get_api_delegate>(Module, "efl_app_efl_version_get");
724 private static System.IntPtr efl_version_get(System.IntPtr obj, System.IntPtr pd)
726 Eina.Log.Debug("function efl_app_efl_version_get was called");
727 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
730 Efl.Version _ret_var = default(Efl.Version);
733 _ret_var = ((App)ws.Target).GetEflVersion();
737 Eina.Log.Warning($"Callback error: {e.ToString()}");
738 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
741 return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var);
746 return efl_app_efl_version_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
750 private static efl_app_efl_version_get_delegate efl_app_efl_version_get_static_delegate;
752 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
753 private delegate System.String efl_core_command_line_command_get_delegate(System.IntPtr obj, System.IntPtr pd);
755 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
756 public delegate System.String efl_core_command_line_command_get_api_delegate(System.IntPtr obj);
758 public static Efl.Eo.FunctionWrapper<efl_core_command_line_command_get_api_delegate> efl_core_command_line_command_get_ptr = new Efl.Eo.FunctionWrapper<efl_core_command_line_command_get_api_delegate>(Module, "efl_core_command_line_command_get");
760 private static System.String command_get(System.IntPtr obj, System.IntPtr pd)
762 Eina.Log.Debug("function efl_core_command_line_command_get was called");
763 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
766 System.String _ret_var = default(System.String);
769 _ret_var = ((App)ws.Target).GetCommand();
773 Eina.Log.Warning($"Callback error: {e.ToString()}");
774 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
782 return efl_core_command_line_command_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
786 private static efl_core_command_line_command_get_delegate efl_core_command_line_command_get_static_delegate;
788 [return: MarshalAs(UnmanagedType.U1)]
789 private delegate bool efl_core_command_line_command_array_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr array);
791 [return: MarshalAs(UnmanagedType.U1)]
792 public delegate bool efl_core_command_line_command_array_set_api_delegate(System.IntPtr obj, System.IntPtr array);
794 public static Efl.Eo.FunctionWrapper<efl_core_command_line_command_array_set_api_delegate> efl_core_command_line_command_array_set_ptr = new Efl.Eo.FunctionWrapper<efl_core_command_line_command_array_set_api_delegate>(Module, "efl_core_command_line_command_array_set");
796 private static bool command_array_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr array)
798 Eina.Log.Debug("function efl_core_command_line_command_array_set was called");
799 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
802 var _in_array = new Eina.Array<Eina.Stringshare>(array, true, true);
803 bool _ret_var = default(bool);
806 _ret_var = ((App)ws.Target).SetCommandArray(_in_array);
810 Eina.Log.Warning($"Callback error: {e.ToString()}");
811 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
819 return efl_core_command_line_command_array_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), array);
823 private static efl_core_command_line_command_array_set_delegate efl_core_command_line_command_array_set_static_delegate;
825 [return: MarshalAs(UnmanagedType.U1)]
826 private delegate bool efl_core_command_line_command_string_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String str);
828 [return: MarshalAs(UnmanagedType.U1)]
829 public delegate bool efl_core_command_line_command_string_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String str);
831 public static Efl.Eo.FunctionWrapper<efl_core_command_line_command_string_set_api_delegate> efl_core_command_line_command_string_set_ptr = new Efl.Eo.FunctionWrapper<efl_core_command_line_command_string_set_api_delegate>(Module, "efl_core_command_line_command_string_set");
833 private static bool command_string_set(System.IntPtr obj, System.IntPtr pd, System.String str)
835 Eina.Log.Debug("function efl_core_command_line_command_string_set was called");
836 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
839 bool _ret_var = default(bool);
842 _ret_var = ((App)ws.Target).SetCommandString(str);
846 Eina.Log.Warning($"Callback error: {e.ToString()}");
847 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
855 return efl_core_command_line_command_string_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), str);
859 private static efl_core_command_line_command_string_set_delegate efl_core_command_line_command_string_set_static_delegate;
862 private delegate System.IntPtr efl_core_command_line_command_access_delegate(System.IntPtr obj, System.IntPtr pd);
865 public delegate System.IntPtr efl_core_command_line_command_access_api_delegate(System.IntPtr obj);
867 public static Efl.Eo.FunctionWrapper<efl_core_command_line_command_access_api_delegate> efl_core_command_line_command_access_ptr = new Efl.Eo.FunctionWrapper<efl_core_command_line_command_access_api_delegate>(Module, "efl_core_command_line_command_access");
869 private static System.IntPtr command_access(System.IntPtr obj, System.IntPtr pd)
871 Eina.Log.Debug("function efl_core_command_line_command_access was called");
872 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
875 Eina.Accessor<Eina.Stringshare> _ret_var = default(Eina.Accessor<Eina.Stringshare>);
878 _ret_var = ((App)ws.Target).CommandAccess();
882 Eina.Log.Warning($"Callback error: {e.ToString()}");
883 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
886 return _ret_var.Handle;
891 return efl_core_command_line_command_access_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
895 private static efl_core_command_line_command_access_delegate efl_core_command_line_command_access_static_delegate;
897 #pragma warning restore CA1707, CS1591, SA1300, SA1600
904 #pragma warning disable CS1591
905 public static class EflApp_ExtensionMethods {
910 public static Efl.BindableProperty<Eina.Array<Eina.Stringshare>> CommandArray<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.App, T>magic = null) where T : Efl.App {
911 return new Efl.BindableProperty<Eina.Array<Eina.Stringshare>>("command_array", fac);
914 public static Efl.BindableProperty<System.String> CommandString<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.App, T>magic = null) where T : Efl.App {
915 return new Efl.BindableProperty<System.String>("command_string", fac);
919 #pragma warning restore CS1591