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