summaryrefslogtreecommitdiff
path: root/src/bindings/mono/eo_mono
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-09-30 10:26:17 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-09-30 10:42:36 -0300
commit62139f2292c9eb0136559fbc0f51300285f39e30 (patch)
tree912a06a2d1fdbf5894e11e929bc1adb55bbc5fee /src/bindings/mono/eo_mono
parenta969f84d03efd207f55a167e378c8d242e0be8f8 (diff)
mono-docs: Add some missing docs for workaround.cs
Test Plan: Only docs changed. Reviewers: lauromoura Reviewed By: lauromoura Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10249
Diffstat (limited to 'src/bindings/mono/eo_mono')
-rw-r--r--src/bindings/mono/eo_mono/workaround.cs21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/bindings/mono/eo_mono/workaround.cs b/src/bindings/mono/eo_mono/workaround.cs
index a8079e4..ff254f0 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
47namespace Efl 47namespace Efl
48{ 48{
49 49
50///<summary>This struct holds the description of a specific event (Since EFL 1.22).</summary>
50[StructLayout(LayoutKind.Sequential)] 51[StructLayout(LayoutKind.Sequential)]
51public struct EventDescription 52public struct EventDescription
52{ 53{
54 ///<summary>Name of the event.</summary>
53 public IntPtr Name; 55 public IntPtr Name;
56 ///<summary><c>true</c> if the event cannot be frozen.</summary>
54 [MarshalAs(UnmanagedType.U1)] public bool Unfreezable; 57 [MarshalAs(UnmanagedType.U1)] public bool Unfreezable;
58 ///<summary>Internal use: <c>true</c> if this is a legacy event.</summary>
55 [MarshalAs(UnmanagedType.U1)] public bool Legacy_is; 59 [MarshalAs(UnmanagedType.U1)] public bool Legacy_is;
60 ///<summary><c>true</c> if when the even is triggered again from a callback it
61 ///will start from where it was.</summary>
56 [MarshalAs(UnmanagedType.U1)] public bool Restart; 62 [MarshalAs(UnmanagedType.U1)] public bool Restart;
57 63
58 private static Dictionary<string, IntPtr> descriptions = new Dictionary<string, IntPtr>(); 64 private static Dictionary<string, IntPtr> descriptions = new Dictionary<string, IntPtr>();
59 65
60 public EventDescription(string module, string name) 66 ///<summary>Constructor for EventDescription</summary>
67 ///<param name="moduleName">The name of the module containing the event.</param>
68 ///<param name="name">The name of the event.</param>
69 public EventDescription(string moduleName, string name)
61 { 70 {
62 this.Name = GetNative(module, name); 71 this.Name = GetNative(moduleName, name);
63 this.Unfreezable = false; 72 this.Unfreezable = false;
64 this.Legacy_is = false; 73 this.Legacy_is = false;
65 this.Restart = false; 74 this.Restart = false;
66 } 75 }
67 76
68 public static IntPtr GetNative(string module, string name) 77 ///<summary>Get the native structure.</summary>
78 ///<param name="moduleName">The name of the module containing the event.</param>
79 ///<param name="name">The name of the event.</param>
80 ///<returns>Pointer to the native structure.</returns>
81 public static IntPtr GetNative(string moduleName, string name)
69 { 82 {
70 if (!descriptions.ContainsKey(name)) 83 if (!descriptions.ContainsKey(name))
71 { 84 {
72 IntPtr data = Efl.Eo.FunctionInterop.LoadFunctionPointer(module, name); 85 IntPtr data = Efl.Eo.FunctionInterop.LoadFunctionPointer(moduleName, name);
73 86
74 if (data == IntPtr.Zero) 87 if (data == IntPtr.Zero)
75 { 88 {