diff --git a/src/bindings/mono/eo_mono/workaround.cs b/src/bindings/mono/eo_mono/workaround.cs index a8079e4090..ff254f005d 100644 --- a/src/bindings/mono/eo_mono/workaround.cs +++ b/src/bindings/mono/eo_mono/workaround.cs @@ -47,29 +47,42 @@ public struct Efl_Object_Ops namespace Efl { +///This struct holds the description of a specific event (Since EFL 1.22). [StructLayout(LayoutKind.Sequential)] public struct EventDescription { + ///Name of the event. public IntPtr Name; + ///true if the event cannot be frozen. [MarshalAs(UnmanagedType.U1)] public bool Unfreezable; + ///Internal use: true if this is a legacy event. [MarshalAs(UnmanagedType.U1)] public bool Legacy_is; + ///true if when the even is triggered again from a callback it + ///will start from where it was. [MarshalAs(UnmanagedType.U1)] public bool Restart; private static Dictionary descriptions = new Dictionary(); - public EventDescription(string module, string name) + ///Constructor for EventDescription + ///The name of the module containing the event. + ///The name of the event. + public EventDescription(string moduleName, string name) { - this.Name = GetNative(module, name); + this.Name = GetNative(moduleName, name); this.Unfreezable = false; this.Legacy_is = false; this.Restart = false; } - public static IntPtr GetNative(string module, string name) + ///Get the native structure. + ///The name of the module containing the event. + ///The name of the event. + ///Pointer to the native structure. + public static IntPtr GetNative(string moduleName, string name) { if (!descriptions.ContainsKey(name)) { - IntPtr data = Efl.Eo.FunctionInterop.LoadFunctionPointer(module, name); + IntPtr data = Efl.Eo.FunctionInterop.LoadFunctionPointer(moduleName, name); if (data == IntPtr.Zero) {