30b667ef2423c418123a4c493fd98b3392580b03
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_ui_text_factory_images.eo.cs
1 #pragma warning disable CS1591
2 using System;
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
5 using System.Linq;
6 using System.ComponentModel;
7 namespace Efl { namespace Ui { namespace TextFactory { 
8 /// <summary>Factory that creates images given key string
9 /// The key can be either a full image path, or associated with one. The factory will fallback if key was not matches with an image, and try to load it as a full path.</summary>
10 [ImagesNativeInherit]
11 public class Images : Efl.Object, Efl.Eo.IWrapper,Efl.Canvas.ITextFactory
12 {
13     ///<summary>Pointer to the native class description.</summary>
14     public override System.IntPtr NativeClass {
15         get {
16             if (((object)this).GetType() == typeof (Images))
17                 return Efl.Ui.TextFactory.ImagesNativeInherit.GetEflClassStatic();
18             else
19                 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
20         }
21     }
22     [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
23         efl_ui_text_factory_images_class_get();
24     ///<summary>Creates a new instance.</summary>
25     ///<param name="parent">Parent instance.</param>
26     public Images(Efl.Object parent= null
27             ) :
28         base(efl_ui_text_factory_images_class_get(), typeof(Images), parent)
29     {
30         FinishInstantiation();
31     }
32     ///<summary>Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
33     protected Images(System.IntPtr raw) : base(raw)
34     {
35                 RegisterEventProxies();
36     }
37     ///<summary>Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
38     protected Images(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {}
39     ///<summary>Verifies if the given object is equal to this one.</summary>
40     public override bool Equals(object obj)
41     {
42         var other = obj as Efl.Object;
43         if (other == null)
44             return false;
45         return this.NativeHandle == other.NativeHandle;
46     }
47     ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
48     public override int GetHashCode()
49     {
50         return this.NativeHandle.ToInt32();
51     }
52     ///<summary>Turns the native pointer into a string representation.</summary>
53     public override String ToString()
54     {
55         return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
56     }
57     ///<summary>Register the Eo event wrappers making the bridge to C# events. Internal usage only.</summary>
58     protected override void RegisterEventProxies()
59     {
60         base.RegisterEventProxies();
61     }
62     /// <summary>Associates given name with a path of an image or EET file.
63     /// This can be used for quick retrieval (instead of providing actual filenames.
64     /// 
65     /// This <c>file</c> is associated with <c>name</c> is considered a full file path.
66     /// 
67     /// see <see cref="Efl.Ui.TextFactory.Images.AddMatchesMmap"/> for mmap version see <see cref="Efl.Ui.TextFactory.Images.DelMatches"/></summary>
68     /// <param name="name">the name associated with filename</param>
69     /// <param name="path">the image or EET file path</param>
70     /// <param name="key">the key to use (in cases of loading an EET file</param>
71     /// <returns><c>true</c> if successful, <c>false</c> otherwise</returns>
72     virtual public bool AddMatches( System.String name,  System.String path,  System.String key) {
73                                                                                  var _ret_var = Efl.Ui.TextFactory.ImagesNativeInherit.efl_ui_text_factory_images_matches_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name,  path,  key);
74         Eina.Error.RaiseIfUnhandledException();
75                                                         return _ret_var;
76  }
77     /// <summary>Deletes an association of <c>key</c> with its respective file path.
78     /// see <see cref="Efl.Ui.TextFactory.Images.AddMatches"/></summary>
79     /// <param name="key">the entry&apos;s key to delete</param>
80     /// <returns><c>true</c> if successful, <c>false</c> otherwise</returns>
81     virtual public bool DelMatches( System.String key) {
82                                  var _ret_var = Efl.Ui.TextFactory.ImagesNativeInherit.efl_ui_text_factory_images_matches_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key);
83         Eina.Error.RaiseIfUnhandledException();
84                         return _ret_var;
85  }
86     /// <summary>Associates given name with a mmap&apos;d image or EET file and key.
87     /// see <see cref="Efl.Ui.TextFactory.Images.AddMatches"/> for string file path version see <see cref="Efl.Ui.TextFactory.Images.DelMatchesMmap"/></summary>
88     /// <param name="name">the name associated with filename</param>
89     /// <param name="file">the image or EET file</param>
90     /// <param name="key">the key to use (in cases of loading an EET file</param>
91     /// <returns><c>true</c> if successful, <c>false</c> otherwise</returns>
92     virtual public bool AddMatchesMmap( System.String name,  Eina.File file,  System.String key) {
93                                                                                  var _ret_var = Efl.Ui.TextFactory.ImagesNativeInherit.efl_ui_text_factory_images_matches_mmap_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name,  file,  key);
94         Eina.Error.RaiseIfUnhandledException();
95                                                         return _ret_var;
96  }
97     /// <summary>Deletes an association of <c>key</c> with its respective file.
98     /// see <see cref="Efl.Ui.TextFactory.Images.AddMatchesMmap"/></summary>
99     /// <param name="key">the entry&apos;s key to delete</param>
100     /// <returns><c>true</c> if successful, <c>false</c> otherwise</returns>
101     virtual public bool DelMatchesMmap( System.String key) {
102                                  var _ret_var = Efl.Ui.TextFactory.ImagesNativeInherit.efl_ui_text_factory_images_matches_mmap_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key);
103         Eina.Error.RaiseIfUnhandledException();
104                         return _ret_var;
105  }
106     /// <summary>Translates a given <c>key</c> to an item object, and returns the object. The returned object should be owned by the passed <c>object</c>.</summary>
107     /// <param name="kw_object">The parent of the created object</param>
108     /// <param name="key">Key that is associated to an item object</param>
109     /// <returns></returns>
110     virtual public Efl.Canvas.Object Create( Efl.Canvas.Object kw_object,  System.String key) {
111                                                          var _ret_var = Efl.Canvas.ITextFactoryNativeInherit.efl_canvas_text_factory_create_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), kw_object,  key);
112         Eina.Error.RaiseIfUnhandledException();
113                                         return _ret_var;
114  }
115     private static IntPtr GetEflClassStatic()
116     {
117         return Efl.Ui.TextFactory.Images.efl_ui_text_factory_images_class_get();
118     }
119 }
120 public class ImagesNativeInherit : Efl.ObjectNativeInherit{
121     public new  static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary);
122     public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
123     {
124         var descs = new System.Collections.Generic.List<Efl_Op_Description>();
125         var methods = Efl.Eo.Globals.GetUserMethods(type);
126         if (efl_ui_text_factory_images_matches_add_static_delegate == null)
127             efl_ui_text_factory_images_matches_add_static_delegate = new efl_ui_text_factory_images_matches_add_delegate(matches_add);
128         if (methods.FirstOrDefault(m => m.Name == "AddMatches") != null)
129             descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_factory_images_matches_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_factory_images_matches_add_static_delegate)});
130         if (efl_ui_text_factory_images_matches_del_static_delegate == null)
131             efl_ui_text_factory_images_matches_del_static_delegate = new efl_ui_text_factory_images_matches_del_delegate(matches_del);
132         if (methods.FirstOrDefault(m => m.Name == "DelMatches") != null)
133             descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_factory_images_matches_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_factory_images_matches_del_static_delegate)});
134         if (efl_ui_text_factory_images_matches_mmap_add_static_delegate == null)
135             efl_ui_text_factory_images_matches_mmap_add_static_delegate = new efl_ui_text_factory_images_matches_mmap_add_delegate(matches_mmap_add);
136         if (methods.FirstOrDefault(m => m.Name == "AddMatchesMmap") != null)
137             descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_factory_images_matches_mmap_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_factory_images_matches_mmap_add_static_delegate)});
138         if (efl_ui_text_factory_images_matches_mmap_del_static_delegate == null)
139             efl_ui_text_factory_images_matches_mmap_del_static_delegate = new efl_ui_text_factory_images_matches_mmap_del_delegate(matches_mmap_del);
140         if (methods.FirstOrDefault(m => m.Name == "DelMatchesMmap") != null)
141             descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_factory_images_matches_mmap_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_factory_images_matches_mmap_del_static_delegate)});
142         if (efl_canvas_text_factory_create_static_delegate == null)
143             efl_canvas_text_factory_create_static_delegate = new efl_canvas_text_factory_create_delegate(create);
144         if (methods.FirstOrDefault(m => m.Name == "Create") != null)
145             descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_text_factory_create"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_text_factory_create_static_delegate)});
146         descs.AddRange(base.GetEoOps(type));
147         return descs;
148     }
149     public override IntPtr GetEflClass()
150     {
151         return Efl.Ui.TextFactory.Images.efl_ui_text_factory_images_class_get();
152     }
153     public static new  IntPtr GetEflClassStatic()
154     {
155         return Efl.Ui.TextFactory.Images.efl_ui_text_factory_images_class_get();
156     }
157
158
159      [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_text_factory_images_matches_add_delegate(System.IntPtr obj, System.IntPtr pd,  [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]  System.String name,  [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]  System.String path,  [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]  System.String key);
160
161
162      [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_text_factory_images_matches_add_api_delegate(System.IntPtr obj,  [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]  System.String name,  [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]  System.String path,  [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]  System.String key);
163      public static Efl.Eo.FunctionWrapper<efl_ui_text_factory_images_matches_add_api_delegate> efl_ui_text_factory_images_matches_add_ptr = new Efl.Eo.FunctionWrapper<efl_ui_text_factory_images_matches_add_api_delegate>(_Module, "efl_ui_text_factory_images_matches_add");
164      private static bool matches_add(System.IntPtr obj, System.IntPtr pd,  System.String name,  System.String path,  System.String key)
165     {
166         Eina.Log.Debug("function efl_ui_text_factory_images_matches_add was called");
167         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
168         if(wrapper != null) {
169                                                                                                 bool _ret_var = default(bool);
170             try {
171                 _ret_var = ((Images)wrapper).AddMatches( name,  path,  key);
172             } catch (Exception e) {
173                 Eina.Log.Warning($"Callback error: {e.ToString()}");
174                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
175             }
176                                                         return _ret_var;
177         } else {
178             return efl_ui_text_factory_images_matches_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  name,  path,  key);
179         }
180     }
181     private static efl_ui_text_factory_images_matches_add_delegate efl_ui_text_factory_images_matches_add_static_delegate;
182
183
184      [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_text_factory_images_matches_del_delegate(System.IntPtr obj, System.IntPtr pd,  [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]  System.String key);
185
186
187      [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_text_factory_images_matches_del_api_delegate(System.IntPtr obj,  [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]  System.String key);
188      public static Efl.Eo.FunctionWrapper<efl_ui_text_factory_images_matches_del_api_delegate> efl_ui_text_factory_images_matches_del_ptr = new Efl.Eo.FunctionWrapper<efl_ui_text_factory_images_matches_del_api_delegate>(_Module, "efl_ui_text_factory_images_matches_del");
189      private static bool matches_del(System.IntPtr obj, System.IntPtr pd,  System.String key)
190     {
191         Eina.Log.Debug("function efl_ui_text_factory_images_matches_del was called");
192         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
193         if(wrapper != null) {
194                                                 bool _ret_var = default(bool);
195             try {
196                 _ret_var = ((Images)wrapper).DelMatches( key);
197             } catch (Exception e) {
198                 Eina.Log.Warning($"Callback error: {e.ToString()}");
199                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
200             }
201                         return _ret_var;
202         } else {
203             return efl_ui_text_factory_images_matches_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  key);
204         }
205     }
206     private static efl_ui_text_factory_images_matches_del_delegate efl_ui_text_factory_images_matches_del_static_delegate;
207
208
209      [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_text_factory_images_matches_mmap_add_delegate(System.IntPtr obj, System.IntPtr pd,  [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]  System.String name,   Eina.File file,  [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]  System.String key);
210
211
212      [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_text_factory_images_matches_mmap_add_api_delegate(System.IntPtr obj,  [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]  System.String name,   Eina.File file,  [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]  System.String key);
213      public static Efl.Eo.FunctionWrapper<efl_ui_text_factory_images_matches_mmap_add_api_delegate> efl_ui_text_factory_images_matches_mmap_add_ptr = new Efl.Eo.FunctionWrapper<efl_ui_text_factory_images_matches_mmap_add_api_delegate>(_Module, "efl_ui_text_factory_images_matches_mmap_add");
214      private static bool matches_mmap_add(System.IntPtr obj, System.IntPtr pd,  System.String name,  Eina.File file,  System.String key)
215     {
216         Eina.Log.Debug("function efl_ui_text_factory_images_matches_mmap_add was called");
217         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
218         if(wrapper != null) {
219                                                                                                 bool _ret_var = default(bool);
220             try {
221                 _ret_var = ((Images)wrapper).AddMatchesMmap( name,  file,  key);
222             } catch (Exception e) {
223                 Eina.Log.Warning($"Callback error: {e.ToString()}");
224                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
225             }
226                                                         return _ret_var;
227         } else {
228             return efl_ui_text_factory_images_matches_mmap_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  name,  file,  key);
229         }
230     }
231     private static efl_ui_text_factory_images_matches_mmap_add_delegate efl_ui_text_factory_images_matches_mmap_add_static_delegate;
232
233
234      [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_text_factory_images_matches_mmap_del_delegate(System.IntPtr obj, System.IntPtr pd,  [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]  System.String key);
235
236
237      [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_text_factory_images_matches_mmap_del_api_delegate(System.IntPtr obj,  [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]  System.String key);
238      public static Efl.Eo.FunctionWrapper<efl_ui_text_factory_images_matches_mmap_del_api_delegate> efl_ui_text_factory_images_matches_mmap_del_ptr = new Efl.Eo.FunctionWrapper<efl_ui_text_factory_images_matches_mmap_del_api_delegate>(_Module, "efl_ui_text_factory_images_matches_mmap_del");
239      private static bool matches_mmap_del(System.IntPtr obj, System.IntPtr pd,  System.String key)
240     {
241         Eina.Log.Debug("function efl_ui_text_factory_images_matches_mmap_del was called");
242         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
243         if(wrapper != null) {
244                                                 bool _ret_var = default(bool);
245             try {
246                 _ret_var = ((Images)wrapper).DelMatchesMmap( key);
247             } catch (Exception e) {
248                 Eina.Log.Warning($"Callback error: {e.ToString()}");
249                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
250             }
251                         return _ret_var;
252         } else {
253             return efl_ui_text_factory_images_matches_mmap_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  key);
254         }
255     }
256     private static efl_ui_text_factory_images_matches_mmap_del_delegate efl_ui_text_factory_images_matches_mmap_del_static_delegate;
257
258
259     [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Canvas.Object, Efl.Eo.OwnTag>))] private delegate Efl.Canvas.Object efl_canvas_text_factory_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Canvas.Object, Efl.Eo.NonOwnTag>))]  Efl.Canvas.Object kw_object,  [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]  System.String key);
260
261
262     [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Canvas.Object, Efl.Eo.OwnTag>))] public delegate Efl.Canvas.Object efl_canvas_text_factory_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Canvas.Object, Efl.Eo.NonOwnTag>))]  Efl.Canvas.Object kw_object,  [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]  System.String key);
263      public static Efl.Eo.FunctionWrapper<efl_canvas_text_factory_create_api_delegate> efl_canvas_text_factory_create_ptr = new Efl.Eo.FunctionWrapper<efl_canvas_text_factory_create_api_delegate>(_Module, "efl_canvas_text_factory_create");
264      private static Efl.Canvas.Object create(System.IntPtr obj, System.IntPtr pd,  Efl.Canvas.Object kw_object,  System.String key)
265     {
266         Eina.Log.Debug("function efl_canvas_text_factory_create was called");
267         Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
268         if(wrapper != null) {
269                                                                         Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object);
270             try {
271                 _ret_var = ((Images)wrapper).Create( kw_object,  key);
272             } catch (Exception e) {
273                 Eina.Log.Warning($"Callback error: {e.ToString()}");
274                 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
275             }
276                                         return _ret_var;
277         } else {
278             return efl_canvas_text_factory_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  kw_object,  key);
279         }
280     }
281     private static efl_canvas_text_factory_create_delegate efl_canvas_text_factory_create_static_delegate;
282 }
283 } } }