1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.Threading;
7 using System.ComponentModel;
10 /// <summary>Object representing the application itself.
11 /// (Since EFL 1.22)</summary>
12 [Efl.App.NativeMethods]
13 public abstract class App : Efl.Loop, Efl.Core.ICommandLine
15 ///<summary>Pointer to the native class description.</summary>
16 public override System.IntPtr NativeClass
20 if (((object)this).GetType() == typeof(App))
22 return GetEflClassStatic();
26 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
31 [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr
33 /// <summary>Initializes a new instance of the <see cref="App"/> class.</summary>
34 /// <param name="parent">Parent instance.</param>
35 public App(Efl.Object parent= null
36 ) : base(efl_app_class_get(), typeof(App), parent)
38 FinishInstantiation();
41 /// <summary>Initializes a new instance of the <see cref="App"/> class.
42 /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
43 /// <param name="raw">The native pointer to be wrapped.</param>
44 protected App(System.IntPtr raw) : base(raw)
48 [Efl.Eo.PrivateNativeClass]
49 private class AppRealized : App
51 private AppRealized(IntPtr ptr) : base(ptr)
55 /// <summary>Initializes a new instance of the <see cref="App"/> class.
56 /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
57 /// <param name="baseKlass">The pointer to the base native Eo class.</param>
58 /// <param name="managedType">The managed type of the public constructor that originated this call.</param>
59 /// <param name="parent">The Efl.Object parent of this instance.</param>
60 protected App(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent)
64 /// <summary>Called when the application is not going be displayed or otherwise used by a user for some time
65 /// (Since EFL 1.22)</summary>
66 public event EventHandler PauseEvt
72 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
74 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
77 EventArgs args = EventArgs.Empty;
80 value?.Invoke(obj, args);
84 Eina.Log.Error(e.ToString());
85 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
90 string key = "_EFL_APP_EVENT_PAUSE";
91 AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value);
99 string key = "_EFL_APP_EVENT_PAUSE";
100 RemoveNativeEventHandler(efl.Libs.Ecore, key, value);
104 ///<summary>Method to raise event PauseEvt.</summary>
105 public void OnPauseEvt(EventArgs e)
107 var key = "_EFL_APP_EVENT_PAUSE";
108 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key);
109 if (desc == IntPtr.Zero)
111 Eina.Log.Error($"Failed to get native event {key}");
115 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
117 /// <summary>Called before a window is rendered after a pause event
118 /// (Since EFL 1.22)</summary>
119 public event EventHandler ResumeEvt
125 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
127 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
130 EventArgs args = EventArgs.Empty;
133 value?.Invoke(obj, args);
137 Eina.Log.Error(e.ToString());
138 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
143 string key = "_EFL_APP_EVENT_RESUME";
144 AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value);
152 string key = "_EFL_APP_EVENT_RESUME";
153 RemoveNativeEventHandler(efl.Libs.Ecore, key, value);
157 ///<summary>Method to raise event ResumeEvt.</summary>
158 public void OnResumeEvt(EventArgs e)
160 var key = "_EFL_APP_EVENT_RESUME";
161 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key);
162 if (desc == IntPtr.Zero)
164 Eina.Log.Error($"Failed to get native event {key}");
168 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
170 /// <summary>Called when the application's windows are all destroyed
171 /// (Since EFL 1.22)</summary>
172 public event EventHandler StandbyEvt
178 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
180 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
183 EventArgs args = EventArgs.Empty;
186 value?.Invoke(obj, args);
190 Eina.Log.Error(e.ToString());
191 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
196 string key = "_EFL_APP_EVENT_STANDBY";
197 AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value);
205 string key = "_EFL_APP_EVENT_STANDBY";
206 RemoveNativeEventHandler(efl.Libs.Ecore, key, value);
210 ///<summary>Method to raise event StandbyEvt.</summary>
211 public void OnStandbyEvt(EventArgs e)
213 var key = "_EFL_APP_EVENT_STANDBY";
214 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key);
215 if (desc == IntPtr.Zero)
217 Eina.Log.Error($"Failed to get native event {key}");
221 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
223 /// <summary>Called before starting the shutdown of the application
224 /// (Since EFL 1.22)</summary>
225 public event EventHandler TerminateEvt
231 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
233 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
236 EventArgs args = EventArgs.Empty;
239 value?.Invoke(obj, args);
243 Eina.Log.Error(e.ToString());
244 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
249 string key = "_EFL_APP_EVENT_TERMINATE";
250 AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value);
258 string key = "_EFL_APP_EVENT_TERMINATE";
259 RemoveNativeEventHandler(efl.Libs.Ecore, key, value);
263 ///<summary>Method to raise event TerminateEvt.</summary>
264 public void OnTerminateEvt(EventArgs e)
266 var key = "_EFL_APP_EVENT_TERMINATE";
267 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key);
268 if (desc == IntPtr.Zero)
270 Eina.Log.Error($"Failed to get native event {key}");
274 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
276 /// <summary>System specific, but on unix maps to SIGUSR1 signal to the process - only called on main loop object
277 /// (Since EFL 1.22)</summary>
278 public event EventHandler SignalUsr1Evt
284 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
286 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
289 EventArgs args = EventArgs.Empty;
292 value?.Invoke(obj, args);
296 Eina.Log.Error(e.ToString());
297 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
302 string key = "_EFL_APP_EVENT_SIGNAL_USR1";
303 AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value);
311 string key = "_EFL_APP_EVENT_SIGNAL_USR1";
312 RemoveNativeEventHandler(efl.Libs.Ecore, key, value);
316 ///<summary>Method to raise event SignalUsr1Evt.</summary>
317 public void OnSignalUsr1Evt(EventArgs e)
319 var key = "_EFL_APP_EVENT_SIGNAL_USR1";
320 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key);
321 if (desc == IntPtr.Zero)
323 Eina.Log.Error($"Failed to get native event {key}");
327 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
329 /// <summary>System specific, but on unix maps to SIGUSR2 signal to the process - only called on main loop object
330 /// (Since EFL 1.22)</summary>
331 public event EventHandler SignalUsr2Evt
337 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
339 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
342 EventArgs args = EventArgs.Empty;
345 value?.Invoke(obj, args);
349 Eina.Log.Error(e.ToString());
350 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
355 string key = "_EFL_APP_EVENT_SIGNAL_USR2";
356 AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value);
364 string key = "_EFL_APP_EVENT_SIGNAL_USR2";
365 RemoveNativeEventHandler(efl.Libs.Ecore, key, value);
369 ///<summary>Method to raise event SignalUsr2Evt.</summary>
370 public void OnSignalUsr2Evt(EventArgs e)
372 var key = "_EFL_APP_EVENT_SIGNAL_USR2";
373 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key);
374 if (desc == IntPtr.Zero)
376 Eina.Log.Error($"Failed to get native event {key}");
380 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
382 /// <summary>System specific, but on unix maps to SIGHUP signal to the process - only called on main loop object
383 /// (Since EFL 1.22)</summary>
384 public event EventHandler SignalHupEvt
390 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
392 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
395 EventArgs args = EventArgs.Empty;
398 value?.Invoke(obj, args);
402 Eina.Log.Error(e.ToString());
403 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
408 string key = "_EFL_APP_EVENT_SIGNAL_HUP";
409 AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value);
417 string key = "_EFL_APP_EVENT_SIGNAL_HUP";
418 RemoveNativeEventHandler(efl.Libs.Ecore, key, value);
422 ///<summary>Method to raise event SignalHupEvt.</summary>
423 public void OnSignalHupEvt(EventArgs e)
425 var key = "_EFL_APP_EVENT_SIGNAL_HUP";
426 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key);
427 if (desc == IntPtr.Zero)
429 Eina.Log.Error($"Failed to get native event {key}");
433 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
435 /// <summary>Returns the app object that is representing this process
436 /// Note: This function call only works in the main loop thread of the process.
437 /// (Since EFL 1.22)</summary>
438 /// <returns>Application for this process</returns>
439 public static Efl.App GetAppMain() {
440 var _ret_var = Efl.App.NativeMethods.efl_app_main_get_ptr.Value.Delegate();
441 Eina.Error.RaiseIfUnhandledException();
444 /// <summary>Indicates the version of EFL with which this application was compiled against/for.
445 /// This might differ from <see cref="Efl.App.GetEflVersion"/>.
446 /// (Since EFL 1.22)</summary>
447 /// <returns>Efl build version</returns>
448 virtual public Efl.Version GetBuildEflVersion() {
449 var _ret_var = Efl.App.NativeMethods.efl_app_build_efl_version_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
450 Eina.Error.RaiseIfUnhandledException();
451 var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged<Efl.Version>(_ret_var);
455 /// <summary>Indicates the currently running version of EFL.
456 /// This might differ from <see cref="Efl.App.GetBuildEflVersion"/>.
457 /// (Since EFL 1.22)</summary>
458 /// <returns>Efl version</returns>
459 virtual public Efl.Version GetEflVersion() {
460 var _ret_var = Efl.App.NativeMethods.efl_app_efl_version_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
461 Eina.Error.RaiseIfUnhandledException();
462 var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged<Efl.Version>(_ret_var);
466 /// <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.
467 /// "cat -option /path/file" "cat 'quoted argument'" "cat ~/path/escaped argument" "/bin/cat escaped argument <c>VARIABLE</c>" etc.
469 /// 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:
471 /// "VAR=x /bin/command && /bin/othercommand >& /dev/null" "VAR=x /bin/command `/bin/othercommand` | /bin/cmd2 && cmd3 &" etc.
473 /// 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>
474 virtual public System.String GetCommand() {
475 var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
476 Eina.Error.RaiseIfUnhandledException();
479 /// <summary>Use an array to fill this object
480 /// Every element of a string is a argument.</summary>
481 /// <param name="array">An array where every array field is an argument</param>
482 /// <returns>On success <c>true</c>, <c>false</c> otherwise</returns>
483 virtual public bool SetCommandArray(Eina.Array<System.String> array) {
484 var _in_array = array.Handle;
486 array.OwnContent = false;
487 var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_array_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_array);
488 Eina.Error.RaiseIfUnhandledException();
491 /// <summary>Use a string to fill this object
492 /// The string will be split at every unescaped ' ', every resulting substring will be a new argument to the command line.</summary>
493 /// <param name="str">A command in form of a string</param>
494 /// <returns>On success <c>true</c>, <c>false</c> otherwise</returns>
495 virtual public bool SetCommandString(System.String str) {
496 var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_string_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),str);
497 Eina.Error.RaiseIfUnhandledException();
500 /// <summary>Get the accessor which enables access to each argument that got passed to this object.</summary>
501 virtual public Eina.Accessor<System.String> CommandAccess() {
502 var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_access_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
503 Eina.Error.RaiseIfUnhandledException();
504 return new Eina.Accessor<System.String>(_ret_var, false, false);
506 /// <summary>Returns the app object that is representing this process
507 /// Note: This function call only works in the main loop thread of the process.
508 /// (Since EFL 1.22)</summary>
509 /// <value>Application for this process</value>
510 public static Efl.App AppMain {
511 get { return GetAppMain(); }
513 /// <summary>Indicates the version of EFL with which this application was compiled against/for.
514 /// This might differ from <see cref="Efl.App.GetEflVersion"/>.
515 /// (Since EFL 1.22)</summary>
516 /// <value>Efl build version</value>
517 public Efl.Version BuildEflVersion {
518 get { return GetBuildEflVersion(); }
520 /// <summary>Indicates the currently running version of EFL.
521 /// This might differ from <see cref="Efl.App.GetBuildEflVersion"/>.
522 /// (Since EFL 1.22)</summary>
523 /// <value>Efl version</value>
524 public Efl.Version EflVersion {
525 get { return GetEflVersion(); }
527 /// <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.
528 /// "cat -option /path/file" "cat 'quoted argument'" "cat ~/path/escaped argument" "/bin/cat escaped argument <c>VARIABLE</c>" etc.
530 /// 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:
532 /// "VAR=x /bin/command && /bin/othercommand >& /dev/null" "VAR=x /bin/command `/bin/othercommand` | /bin/cmd2 && cmd3 &" etc.
534 /// 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>
535 public System.String Command {
536 get { return GetCommand(); }
538 /// <summary>Use an array to fill this object
539 /// Every element of a string is a argument.</summary>
540 /// <value>An array where every array field is an argument</value>
541 public Eina.Array<System.String> CommandArray {
542 set { SetCommandArray(value); }
544 /// <summary>Use a string to fill this object
545 /// The string will be split at every unescaped ' ', every resulting substring will be a new argument to the command line.</summary>
546 /// <value>A command in form of a string</value>
547 public System.String CommandString {
548 set { SetCommandString(value); }
550 private static IntPtr GetEflClassStatic()
552 return Efl.App.efl_app_class_get();
554 /// <summary>Wrapper for native methods and virtual method delegates.
555 /// For internal use by generated code only.</summary>
556 public new class NativeMethods : Efl.Loop.NativeMethods
558 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore);
559 /// <summary>Gets the list of Eo operations to override.</summary>
560 /// <returns>The list of Eo operations to be overload.</returns>
561 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
563 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
564 var methods = Efl.Eo.Globals.GetUserMethods(type);
566 if (efl_app_build_efl_version_get_static_delegate == null)
568 efl_app_build_efl_version_get_static_delegate = new efl_app_build_efl_version_get_delegate(build_efl_version_get);
571 if (methods.FirstOrDefault(m => m.Name == "GetBuildEflVersion") != null)
573 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) });
576 if (efl_app_efl_version_get_static_delegate == null)
578 efl_app_efl_version_get_static_delegate = new efl_app_efl_version_get_delegate(efl_version_get);
581 if (methods.FirstOrDefault(m => m.Name == "GetEflVersion") != null)
583 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) });
586 if (efl_core_command_line_command_get_static_delegate == null)
588 efl_core_command_line_command_get_static_delegate = new efl_core_command_line_command_get_delegate(command_get);
591 if (methods.FirstOrDefault(m => m.Name == "GetCommand") != null)
593 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) });
596 if (efl_core_command_line_command_array_set_static_delegate == null)
598 efl_core_command_line_command_array_set_static_delegate = new efl_core_command_line_command_array_set_delegate(command_array_set);
601 if (methods.FirstOrDefault(m => m.Name == "SetCommandArray") != null)
603 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) });
606 if (efl_core_command_line_command_string_set_static_delegate == null)
608 efl_core_command_line_command_string_set_static_delegate = new efl_core_command_line_command_string_set_delegate(command_string_set);
611 if (methods.FirstOrDefault(m => m.Name == "SetCommandString") != null)
613 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) });
616 if (efl_core_command_line_command_access_static_delegate == null)
618 efl_core_command_line_command_access_static_delegate = new efl_core_command_line_command_access_delegate(command_access);
621 if (methods.FirstOrDefault(m => m.Name == "CommandAccess") != null)
623 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) });
626 descs.AddRange(base.GetEoOps(type));
629 /// <summary>Returns the Eo class for the native methods of this class.</summary>
630 /// <returns>The native class pointer.</returns>
631 public override IntPtr GetEflClass()
633 return Efl.App.efl_app_class_get();
636 #pragma warning disable CA1707, CS1591, SA1300, SA1600
638 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
639 private delegate Efl.App efl_app_main_get_delegate();
641 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
642 public delegate Efl.App efl_app_main_get_api_delegate();
644 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");
646 private static Efl.App app_main_get(System.IntPtr obj, System.IntPtr pd)
648 Eina.Log.Debug("function efl_app_main_get was called");
649 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
652 Efl.App _ret_var = default(Efl.App);
655 _ret_var = App.GetAppMain();
659 Eina.Log.Warning($"Callback error: {e.ToString()}");
660 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
668 return efl_app_main_get_ptr.Value.Delegate();
673 private delegate System.IntPtr efl_app_build_efl_version_get_delegate(System.IntPtr obj, System.IntPtr pd);
676 public delegate System.IntPtr efl_app_build_efl_version_get_api_delegate(System.IntPtr obj);
678 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");
680 private static System.IntPtr build_efl_version_get(System.IntPtr obj, System.IntPtr pd)
682 Eina.Log.Debug("function efl_app_build_efl_version_get was called");
683 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
686 Efl.Version _ret_var = default(Efl.Version);
689 _ret_var = ((App)ws.Target).GetBuildEflVersion();
693 Eina.Log.Warning($"Callback error: {e.ToString()}");
694 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
697 return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var);
702 return efl_app_build_efl_version_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
706 private static efl_app_build_efl_version_get_delegate efl_app_build_efl_version_get_static_delegate;
709 private delegate System.IntPtr efl_app_efl_version_get_delegate(System.IntPtr obj, System.IntPtr pd);
712 public delegate System.IntPtr efl_app_efl_version_get_api_delegate(System.IntPtr obj);
714 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");
716 private static System.IntPtr efl_version_get(System.IntPtr obj, System.IntPtr pd)
718 Eina.Log.Debug("function efl_app_efl_version_get was called");
719 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
722 Efl.Version _ret_var = default(Efl.Version);
725 _ret_var = ((App)ws.Target).GetEflVersion();
729 Eina.Log.Warning($"Callback error: {e.ToString()}");
730 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
733 return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var);
738 return efl_app_efl_version_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
742 private static efl_app_efl_version_get_delegate efl_app_efl_version_get_static_delegate;
744 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
745 private delegate System.String efl_core_command_line_command_get_delegate(System.IntPtr obj, System.IntPtr pd);
747 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
748 public delegate System.String efl_core_command_line_command_get_api_delegate(System.IntPtr obj);
750 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");
752 private static System.String command_get(System.IntPtr obj, System.IntPtr pd)
754 Eina.Log.Debug("function efl_core_command_line_command_get was called");
755 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
758 System.String _ret_var = default(System.String);
761 _ret_var = ((App)ws.Target).GetCommand();
765 Eina.Log.Warning($"Callback error: {e.ToString()}");
766 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
774 return efl_core_command_line_command_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
778 private static efl_core_command_line_command_get_delegate efl_core_command_line_command_get_static_delegate;
780 [return: MarshalAs(UnmanagedType.U1)]
781 private delegate bool efl_core_command_line_command_array_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr array);
783 [return: MarshalAs(UnmanagedType.U1)]
784 public delegate bool efl_core_command_line_command_array_set_api_delegate(System.IntPtr obj, System.IntPtr array);
786 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");
788 private static bool command_array_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr array)
790 Eina.Log.Debug("function efl_core_command_line_command_array_set was called");
791 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
794 var _in_array = new Eina.Array<System.String>(array, true, true);
795 bool _ret_var = default(bool);
798 _ret_var = ((App)ws.Target).SetCommandArray(_in_array);
802 Eina.Log.Warning($"Callback error: {e.ToString()}");
803 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
811 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);
815 private static efl_core_command_line_command_array_set_delegate efl_core_command_line_command_array_set_static_delegate;
817 [return: MarshalAs(UnmanagedType.U1)]
818 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);
820 [return: MarshalAs(UnmanagedType.U1)]
821 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);
823 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");
825 private static bool command_string_set(System.IntPtr obj, System.IntPtr pd, System.String str)
827 Eina.Log.Debug("function efl_core_command_line_command_string_set was called");
828 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
831 bool _ret_var = default(bool);
834 _ret_var = ((App)ws.Target).SetCommandString(str);
838 Eina.Log.Warning($"Callback error: {e.ToString()}");
839 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
847 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);
851 private static efl_core_command_line_command_string_set_delegate efl_core_command_line_command_string_set_static_delegate;
854 private delegate System.IntPtr efl_core_command_line_command_access_delegate(System.IntPtr obj, System.IntPtr pd);
857 public delegate System.IntPtr efl_core_command_line_command_access_api_delegate(System.IntPtr obj);
859 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");
861 private static System.IntPtr command_access(System.IntPtr obj, System.IntPtr pd)
863 Eina.Log.Debug("function efl_core_command_line_command_access was called");
864 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
867 Eina.Accessor<System.String> _ret_var = default(Eina.Accessor<System.String>);
870 _ret_var = ((App)ws.Target).CommandAccess();
874 Eina.Log.Warning($"Callback error: {e.ToString()}");
875 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
878 return _ret_var.Handle;
883 return efl_core_command_line_command_access_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
887 private static efl_core_command_line_command_access_delegate efl_core_command_line_command_access_static_delegate;
889 #pragma warning restore CA1707, CS1591, SA1300, SA1600