1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.Threading;
7 using System.ComponentModel;
12 /// <summary>Low-level Image object.
13 /// This replaces the legacy Evas Object Image, with only image-related interfaces: file and data images only. This object does not implement any special features such as proxy, snapshot or GL.</summary>
14 [Efl.Canvas.Image.NativeMethods]
15 public class Image : Efl.Canvas.ImageInternal, Efl.IFile, Efl.Gfx.IFrameController, Efl.Gfx.IImageLoadController
17 ///<summary>Pointer to the native class description.</summary>
18 public override System.IntPtr NativeClass
22 if (((object)this).GetType() == typeof(Image))
24 return GetEflClassStatic();
28 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
33 [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr
34 efl_canvas_image_class_get();
35 /// <summary>Initializes a new instance of the <see cref="Image"/> class.</summary>
36 /// <param name="parent">Parent instance.</param>
37 public Image(Efl.Object parent= null
38 ) : base(efl_canvas_image_class_get(), typeof(Image), parent)
40 FinishInstantiation();
43 /// <summary>Initializes a new instance of the <see cref="Image"/> class.
44 /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
45 /// <param name="raw">The native pointer to be wrapped.</param>
46 protected Image(System.IntPtr raw) : base(raw)
50 /// <summary>Initializes a new instance of the <see cref="Image"/> class.
51 /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
52 /// <param name="baseKlass">The pointer to the base native Eo class.</param>
53 /// <param name="managedType">The managed type of the public constructor that originated this call.</param>
54 /// <param name="parent">The Efl.Object parent of this instance.</param>
55 protected Image(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent)
59 /// <summary>Called when he image was loaded</summary>
60 public event EventHandler LoadDoneEvt
66 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
68 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
71 EventArgs args = EventArgs.Empty;
74 value?.Invoke(obj, args);
78 Eina.Log.Error(e.ToString());
79 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
84 string key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_DONE";
85 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
93 string key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_DONE";
94 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
98 ///<summary>Method to raise event LoadDoneEvt.</summary>
99 public void OnLoadDoneEvt(EventArgs e)
101 var key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_DONE";
102 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
103 if (desc == IntPtr.Zero)
105 Eina.Log.Error($"Failed to get native event {key}");
109 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
111 /// <summary>Called when an error happened during image loading</summary>
112 public event EventHandler<Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args> LoadErrorEvt
118 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
120 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
123 Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args args = new Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args();
124 args.arg = (Eina.Error)Marshal.PtrToStructure(evt.Info, typeof(Eina.Error));
127 value?.Invoke(obj, args);
131 Eina.Log.Error(e.ToString());
132 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
137 string key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_ERROR";
138 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
146 string key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_ERROR";
147 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
151 ///<summary>Method to raise event LoadErrorEvt.</summary>
152 public void OnLoadErrorEvt(Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args e)
154 var key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_ERROR";
155 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
156 if (desc == IntPtr.Zero)
158 Eina.Log.Error($"Failed to get native event {key}");
162 IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc((int)e.arg);
165 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
169 Marshal.FreeHGlobal(info);
172 /// <summary>Get the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
173 /// (Since EFL 1.22)</summary>
174 /// <returns>The handle to the <see cref="Eina.File"/> that will be used</returns>
175 virtual public Eina.File GetMmap() {
176 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
177 Eina.Error.RaiseIfUnhandledException();
180 /// <summary>Set the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
181 /// If mmap is set during object construction, the object will automatically call <see cref="Efl.IFile.Load"/> during the finalize phase of construction.
182 /// (Since EFL 1.22)</summary>
183 /// <param name="f">The handle to the <see cref="Eina.File"/> that will be used</param>
184 /// <returns>0 on success, error code otherwise</returns>
185 virtual public Eina.Error SetMmap(Eina.File f) {
186 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),f);
187 Eina.Error.RaiseIfUnhandledException();
190 /// <summary>Retrieve the file path from where an object is to fetch the data.
191 /// You must not modify the strings on the returned pointers.
192 /// (Since EFL 1.22)</summary>
193 /// <returns>The file path.</returns>
194 virtual public System.String GetFile() {
195 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
196 Eina.Error.RaiseIfUnhandledException();
199 /// <summary>Set the file path from where an object will fetch the data.
200 /// If file is set during object construction, the object will automatically call <see cref="Efl.IFile.Load"/> during the finalize phase of construction.
201 /// (Since EFL 1.22)</summary>
202 /// <param name="file">The file path.</param>
203 /// <returns>0 on success, error code otherwise</returns>
204 virtual public Eina.Error SetFile(System.String file) {
205 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),file);
206 Eina.Error.RaiseIfUnhandledException();
209 /// <summary>Get the previously-set key which corresponds to the target data within a file.
210 /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases (See for example <see cref="Efl.Ui.Image"/> or <see cref="Efl.Ui.Layout"/>).
212 /// You must not modify the strings on the returned pointers.
213 /// (Since EFL 1.22)</summary>
214 /// <returns>The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used.</returns>
215 virtual public System.String GetKey() {
216 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_key_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
217 Eina.Error.RaiseIfUnhandledException();
220 /// <summary>Set the key which corresponds to the target data within a file.
221 /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases.
222 /// (Since EFL 1.22)</summary>
223 /// <param name="key">The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used.</param>
224 virtual public void SetKey(System.String key) {
225 Efl.IFileConcrete.NativeMethods.efl_file_key_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key);
226 Eina.Error.RaiseIfUnhandledException();
228 /// <summary>Get the load state of the object.
229 /// (Since EFL 1.22)</summary>
230 /// <returns><c>true</c> if the object is loaded, <c>false</c> otherwise.</returns>
231 virtual public bool GetLoaded() {
232 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_loaded_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
233 Eina.Error.RaiseIfUnhandledException();
236 /// <summary>Perform all necessary operations to open and load file data into the object using the <see cref="Efl.IFile.File"/> (or <see cref="Efl.IFile.Mmap"/>) and <see cref="Efl.IFile.Key"/> properties.
237 /// In the case where <see cref="Efl.IFile.SetFile"/> has been called on an object, this will internally open the file and call <see cref="Efl.IFile.SetMmap"/> on the object using the opened file handle.
239 /// Calling <see cref="Efl.IFile.Load"/> on an object which has already performed file operations based on the currently set properties will have no effect.
240 /// (Since EFL 1.22)</summary>
241 /// <returns>0 on success, error code otherwise</returns>
242 virtual public Eina.Error Load() {
243 var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_load_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
244 Eina.Error.RaiseIfUnhandledException();
247 /// <summary>Perform all necessary operations to unload file data from the object.
248 /// In the case where <see cref="Efl.IFile.SetMmap"/> has been externally called on an object, the file handle stored in the object will be preserved.
250 /// Calling <see cref="Efl.IFile.Unload"/> on an object which is not currently loaded will have no effect.
251 /// (Since EFL 1.22)</summary>
252 virtual public void Unload() {
253 Efl.IFileConcrete.NativeMethods.efl_file_unload_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
254 Eina.Error.RaiseIfUnhandledException();
256 /// <summary>Check if an object can be animated (has multiple frames).
257 /// This will be <c>true</c> for animated object for instance but <c>false</c> for a single frame object.</summary>
258 /// <returns><c>true</c> if the object is animated</returns>
259 virtual public bool GetAnimated() {
260 var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_animated_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
261 Eina.Error.RaiseIfUnhandledException();
264 /// <summary>Index of the current frame of an animated object.
265 /// Ranges from 1 to <see cref="Efl.Gfx.IFrameController.GetFrameCount"/>. Valid only if <see cref="Efl.Gfx.IFrameController.GetAnimated"/>.</summary>
266 /// <returns>The index of current frame.</returns>
267 virtual public int GetFrame() {
268 var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_frame_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
269 Eina.Error.RaiseIfUnhandledException();
272 /// <summary>Set the frame to current frame of an animated object.</summary>
273 /// <param name="frame_index">The index of current frame.</param>
274 /// <returns>Returns <c>true</c> if the frame index is valid.</returns>
275 virtual public bool SetFrame(int frame_index) {
276 var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_frame_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),frame_index);
277 Eina.Error.RaiseIfUnhandledException();
280 /// <summary>Get the total number of frames of the object, if animated.
281 /// Returns -1 if not animated.</summary>
282 /// <returns>The number of frames in the animated object.</returns>
283 virtual public int GetFrameCount() {
284 var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_frame_count_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
285 Eina.Error.RaiseIfUnhandledException();
288 /// <summary>Get the kind of looping the animated object does.
289 /// This returns the kind of looping the animated object wants to do.
291 /// If it returns <see cref="Efl.Gfx.FrameControllerLoopHint.Loop"/>, you should display frames in a sequence like: 1->2->3->1->2->3->1...
293 /// If it returns <see cref="Efl.Gfx.FrameControllerLoopHint.Pingpong"/>, it is better to display frames in a sequence like: 1->2->3->2->1->2->3->1...
295 /// The default type is <see cref="Efl.Gfx.FrameControllerLoopHint.Loop"/>.</summary>
296 /// <returns>Loop type of the animated object.</returns>
297 virtual public Efl.Gfx.FrameControllerLoopHint GetLoopType() {
298 var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_loop_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
299 Eina.Error.RaiseIfUnhandledException();
302 /// <summary>Get the number times the animation of the object loops.
303 /// This returns loop count of animated object. The loop count is the number of times the animation will play fully from first to last frame until the animation should stop (at the final frame).
305 /// If 0 is returned, then looping should happen indefinitely (no limit to the number of times it loops).</summary>
306 /// <returns>The number of loop of an animated object.</returns>
307 virtual public int GetLoopCount() {
308 var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_loop_count_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
309 Eina.Error.RaiseIfUnhandledException();
312 /// <summary>Get the duration of a sequence of frames.
313 /// This returns total duration in seconds that the specified sequence of frames should take.
315 /// If <c>start_frame</c> is 1 and <c>frame_num</c> is 0, this returns the duration of frame 1. If <c>start_frame</c> is 1 and <c>frame_num</c> is 1, this returns the total duration of frame 1 + frame 2.</summary>
316 /// <param name="start_frame">The first frame, rangers from 1 to <see cref="Efl.Gfx.IFrameController.GetFrameCount"/>.</param>
317 /// <param name="frame_num">Number of frames in the sequence, starts from 0.</param>
318 /// <returns>Duration in seconds</returns>
319 virtual public double GetFrameDuration(int start_frame, int frame_num) {
320 var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_frame_duration_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),start_frame, frame_num);
321 Eina.Error.RaiseIfUnhandledException();
324 /// <summary>Returns the requested load size.</summary>
325 /// <returns>The image load size.</returns>
326 virtual public Eina.Size2D GetLoadSize() {
327 var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
328 Eina.Error.RaiseIfUnhandledException();
331 /// <summary>Requests the canvas to load the image at the given size.
332 /// EFL will try to load an image of the requested size but does not guarantee an exact match between the request and the loaded image dimensions.</summary>
333 /// <param name="size">The image load size.</param>
334 virtual public void SetLoadSize(Eina.Size2D size) {
335 Eina.Size2D.NativeStruct _in_size = size;
336 Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_size);
337 Eina.Error.RaiseIfUnhandledException();
339 /// <summary>Get the DPI resolution of a loaded image object in the canvas.
340 /// This function returns the DPI resolution of the given canvas image.</summary>
341 /// <returns>The DPI resolution.</returns>
342 virtual public double GetLoadDpi() {
343 var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_dpi_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
344 Eina.Error.RaiseIfUnhandledException();
347 /// <summary>Set the DPI resolution of an image object's source image.
348 /// This function sets the DPI resolution of a given loaded canvas image. Most useful for the SVG image loader.</summary>
349 /// <param name="dpi">The DPI resolution.</param>
350 virtual public void SetLoadDpi(double dpi) {
351 Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_dpi_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dpi);
352 Eina.Error.RaiseIfUnhandledException();
354 /// <summary>Indicates whether the <see cref="Efl.Gfx.IImageLoadController.LoadRegion"/> property is supported for the current file.</summary>
355 /// <returns><c>true</c> if region load of the image is supported, <c>false</c> otherwise</returns>
356 virtual public bool GetLoadRegionSupport() {
357 var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_region_support_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
358 Eina.Error.RaiseIfUnhandledException();
361 /// <summary>Retrieve the coordinates of a given image object's selective (source image) load region.</summary>
362 /// <returns>A region of the image.</returns>
363 virtual public Eina.Rect GetLoadRegion() {
364 var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_region_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
365 Eina.Error.RaiseIfUnhandledException();
368 /// <summary>Inform a given image object to load a selective region of its source image.
369 /// This function is useful when one is not showing all of an image's area on its image object.
371 /// Note: The image loader for the image format in question has to support selective region loading in order for this function to work.</summary>
372 /// <param name="region">A region of the image.</param>
373 virtual public void SetLoadRegion(Eina.Rect region) {
374 Eina.Rect.NativeStruct _in_region = region;
375 Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_region_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_region);
376 Eina.Error.RaiseIfUnhandledException();
378 /// <summary>Defines whether the orientation information in the image file should be honored.
379 /// The orientation can for instance be set in the EXIF tags of a JPEG image. If this flag is <c>false</c>, then the orientation will be ignored at load time, otherwise the image will be loaded with the proper orientation.</summary>
380 /// <returns><c>true</c> means that it should honor the orientation information.</returns>
381 virtual public bool GetLoadOrientation() {
382 var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_orientation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
383 Eina.Error.RaiseIfUnhandledException();
386 /// <summary>Defines whether the orientation information in the image file should be honored.
387 /// The orientation can for instance be set in the EXIF tags of a JPEG image. If this flag is <c>false</c>, then the orientation will be ignored at load time, otherwise the image will be loaded with the proper orientation.</summary>
388 /// <param name="enable"><c>true</c> means that it should honor the orientation information.</param>
389 virtual public void SetLoadOrientation(bool enable) {
390 Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_orientation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),enable);
391 Eina.Error.RaiseIfUnhandledException();
393 /// <summary>The scale down factor is a divider on the original image size.
394 /// Setting the scale down factor can reduce load time and memory usage at the cost of having a scaled down image in memory.
396 /// This function sets the scale down factor of a given canvas image. Most useful for the SVG image loader but also applies to JPEG, PNG and BMP.
398 /// Powers of two (2, 4, 8) are best supported (especially with JPEG)</summary>
399 /// <returns>The scale down dividing factor.</returns>
400 virtual public int GetLoadScaleDown() {
401 var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_scale_down_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
402 Eina.Error.RaiseIfUnhandledException();
405 /// <summary>Requests the image loader to scale down by <c>div</c> times. Call this before starting the actual image load.</summary>
406 /// <param name="div">The scale down dividing factor.</param>
407 virtual public void SetLoadScaleDown(int div) {
408 Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_scale_down_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),div);
409 Eina.Error.RaiseIfUnhandledException();
411 /// <summary>Initial load should skip header check and leave it all to data load
412 /// If this is true, then future loads of images will defer header loading to a preload stage and/or data load later on rather than at the start when the load begins (e.g. when file is set).</summary>
413 /// <returns>Will be true if header is to be skipped.</returns>
414 virtual public bool GetLoadSkipHeader() {
415 var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_skip_header_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
416 Eina.Error.RaiseIfUnhandledException();
419 /// <summary>Set the skip header state for susbsequent loads of a file.</summary>
420 /// <param name="skip">Will be true if header is to be skipped.</param>
421 virtual public void SetLoadSkipHeader(bool skip) {
422 Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_skip_header_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),skip);
423 Eina.Error.RaiseIfUnhandledException();
425 /// <summary>Begin preloading an image object's image data in the background.
426 /// Once the background task is complete the event <c>load</c>,done will be emitted.</summary>
427 virtual public void LoadAsyncStart() {
428 Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_async_start_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
429 Eina.Error.RaiseIfUnhandledException();
431 /// <summary>Cancel preloading an image object's image data in the background.
432 /// The object should be left in a state where it has no image data. If cancel is called too late, the image will be kept in memory.</summary>
433 virtual public void LoadAsyncCancel() {
434 Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_async_cancel_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
435 Eina.Error.RaiseIfUnhandledException();
437 /// <summary>Get the mmaped file from where an object will fetch the real data (it must be an <see cref="Eina.File"/>).
438 /// (Since EFL 1.22)</summary>
439 /// <value>The handle to the <see cref="Eina.File"/> that will be used</value>
440 public Eina.File Mmap {
441 get { return GetMmap(); }
442 set { SetMmap(value); }
444 /// <summary>Retrieve the file path from where an object is to fetch the data.
445 /// You must not modify the strings on the returned pointers.
446 /// (Since EFL 1.22)</summary>
447 /// <value>The file path.</value>
448 public System.String File {
449 get { return GetFile(); }
450 set { SetFile(value); }
452 /// <summary>Get the previously-set key which corresponds to the target data within a file.
453 /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases (See for example <see cref="Efl.Ui.Image"/> or <see cref="Efl.Ui.Layout"/>).
455 /// You must not modify the strings on the returned pointers.
456 /// (Since EFL 1.22)</summary>
457 /// <value>The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used.</value>
458 public System.String Key {
459 get { return GetKey(); }
460 set { SetKey(value); }
462 /// <summary>Get the load state of the object.
463 /// (Since EFL 1.22)</summary>
464 /// <value><c>true</c> if the object is loaded, <c>false</c> otherwise.</value>
466 get { return GetLoaded(); }
468 /// <summary>Check if an object can be animated (has multiple frames).
469 /// This will be <c>true</c> for animated object for instance but <c>false</c> for a single frame object.</summary>
470 /// <value><c>true</c> if the object is animated</value>
471 public bool Animated {
472 get { return GetAnimated(); }
474 /// <summary>Index of the current frame of an animated object.
475 /// Ranges from 1 to <see cref="Efl.Gfx.IFrameController.GetFrameCount"/>. Valid only if <see cref="Efl.Gfx.IFrameController.GetAnimated"/>.</summary>
476 /// <value>The index of current frame.</value>
478 get { return GetFrame(); }
479 set { SetFrame(value); }
481 /// <summary>Get the total number of frames of the object, if animated.
482 /// Returns -1 if not animated.</summary>
483 /// <value>The number of frames in the animated object.</value>
484 public int FrameCount {
485 get { return GetFrameCount(); }
487 /// <summary>Get the kind of looping the animated object does.
488 /// This returns the kind of looping the animated object wants to do.
490 /// If it returns <see cref="Efl.Gfx.FrameControllerLoopHint.Loop"/>, you should display frames in a sequence like: 1->2->3->1->2->3->1...
492 /// If it returns <see cref="Efl.Gfx.FrameControllerLoopHint.Pingpong"/>, it is better to display frames in a sequence like: 1->2->3->2->1->2->3->1...
494 /// The default type is <see cref="Efl.Gfx.FrameControllerLoopHint.Loop"/>.</summary>
495 /// <value>Loop type of the animated object.</value>
496 public Efl.Gfx.FrameControllerLoopHint LoopType {
497 get { return GetLoopType(); }
499 /// <summary>Get the number times the animation of the object loops.
500 /// This returns loop count of animated object. The loop count is the number of times the animation will play fully from first to last frame until the animation should stop (at the final frame).
502 /// If 0 is returned, then looping should happen indefinitely (no limit to the number of times it loops).</summary>
503 /// <value>The number of loop of an animated object.</value>
504 public int LoopCount {
505 get { return GetLoopCount(); }
507 /// <summary>The load size of an image.
508 /// The image will be loaded into memory as if it was the specified size instead of its original size. This can save a lot of memory and is important for scalable types like svg.
510 /// By default, the load size is not specified, so it is 0x0.</summary>
511 /// <value>The image load size.</value>
512 public Eina.Size2D LoadSize {
513 get { return GetLoadSize(); }
514 set { SetLoadSize(value); }
516 /// <summary>Get the DPI resolution of a loaded image object in the canvas.
517 /// This function returns the DPI resolution of the given canvas image.</summary>
518 /// <value>The DPI resolution.</value>
519 public double LoadDpi {
520 get { return GetLoadDpi(); }
521 set { SetLoadDpi(value); }
523 /// <summary>Indicates whether the <see cref="Efl.Gfx.IImageLoadController.LoadRegion"/> property is supported for the current file.</summary>
524 /// <value><c>true</c> if region load of the image is supported, <c>false</c> otherwise</value>
525 public bool LoadRegionSupport {
526 get { return GetLoadRegionSupport(); }
528 /// <summary>Retrieve the coordinates of a given image object's selective (source image) load region.</summary>
529 /// <value>A region of the image.</value>
530 public Eina.Rect LoadRegion {
531 get { return GetLoadRegion(); }
532 set { SetLoadRegion(value); }
534 /// <summary>Defines whether the orientation information in the image file should be honored.
535 /// The orientation can for instance be set in the EXIF tags of a JPEG image. If this flag is <c>false</c>, then the orientation will be ignored at load time, otherwise the image will be loaded with the proper orientation.</summary>
536 /// <value><c>true</c> means that it should honor the orientation information.</value>
537 public bool LoadOrientation {
538 get { return GetLoadOrientation(); }
539 set { SetLoadOrientation(value); }
541 /// <summary>The scale down factor is a divider on the original image size.
542 /// Setting the scale down factor can reduce load time and memory usage at the cost of having a scaled down image in memory.
544 /// This function sets the scale down factor of a given canvas image. Most useful for the SVG image loader but also applies to JPEG, PNG and BMP.
546 /// Powers of two (2, 4, 8) are best supported (especially with JPEG)</summary>
547 /// <value>The scale down dividing factor.</value>
548 public int LoadScaleDown {
549 get { return GetLoadScaleDown(); }
550 set { SetLoadScaleDown(value); }
552 /// <summary>Initial load should skip header check and leave it all to data load
553 /// If this is true, then future loads of images will defer header loading to a preload stage and/or data load later on rather than at the start when the load begins (e.g. when file is set).</summary>
554 /// <value>Will be true if header is to be skipped.</value>
555 public bool LoadSkipHeader {
556 get { return GetLoadSkipHeader(); }
557 set { SetLoadSkipHeader(value); }
559 private static IntPtr GetEflClassStatic()
561 return Efl.Canvas.Image.efl_canvas_image_class_get();
563 /// <summary>Wrapper for native methods and virtual method delegates.
564 /// For internal use by generated code only.</summary>
565 public new class NativeMethods : Efl.Canvas.ImageInternal.NativeMethods
567 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas);
568 /// <summary>Gets the list of Eo operations to override.</summary>
569 /// <returns>The list of Eo operations to be overload.</returns>
570 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
572 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
573 var methods = Efl.Eo.Globals.GetUserMethods(type);
575 if (efl_file_mmap_get_static_delegate == null)
577 efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get);
580 if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null)
582 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_get_static_delegate) });
585 if (efl_file_mmap_set_static_delegate == null)
587 efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set);
590 if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null)
592 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_set_static_delegate) });
595 if (efl_file_get_static_delegate == null)
597 efl_file_get_static_delegate = new efl_file_get_delegate(file_get);
600 if (methods.FirstOrDefault(m => m.Name == "GetFile") != null)
602 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_get_static_delegate) });
605 if (efl_file_set_static_delegate == null)
607 efl_file_set_static_delegate = new efl_file_set_delegate(file_set);
610 if (methods.FirstOrDefault(m => m.Name == "SetFile") != null)
612 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_set_static_delegate) });
615 if (efl_file_key_get_static_delegate == null)
617 efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get);
620 if (methods.FirstOrDefault(m => m.Name == "GetKey") != null)
622 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_get_static_delegate) });
625 if (efl_file_key_set_static_delegate == null)
627 efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set);
630 if (methods.FirstOrDefault(m => m.Name == "SetKey") != null)
632 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_set_static_delegate) });
635 if (efl_file_loaded_get_static_delegate == null)
637 efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get);
640 if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null)
642 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_loaded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_loaded_get_static_delegate) });
645 if (efl_file_load_static_delegate == null)
647 efl_file_load_static_delegate = new efl_file_load_delegate(load);
650 if (methods.FirstOrDefault(m => m.Name == "Load") != null)
652 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_load"), func = Marshal.GetFunctionPointerForDelegate(efl_file_load_static_delegate) });
655 if (efl_file_unload_static_delegate == null)
657 efl_file_unload_static_delegate = new efl_file_unload_delegate(unload);
660 if (methods.FirstOrDefault(m => m.Name == "Unload") != null)
662 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_unload"), func = Marshal.GetFunctionPointerForDelegate(efl_file_unload_static_delegate) });
665 if (efl_gfx_frame_controller_animated_get_static_delegate == null)
667 efl_gfx_frame_controller_animated_get_static_delegate = new efl_gfx_frame_controller_animated_get_delegate(animated_get);
670 if (methods.FirstOrDefault(m => m.Name == "GetAnimated") != null)
672 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_frame_controller_animated_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_animated_get_static_delegate) });
675 if (efl_gfx_frame_controller_frame_get_static_delegate == null)
677 efl_gfx_frame_controller_frame_get_static_delegate = new efl_gfx_frame_controller_frame_get_delegate(frame_get);
680 if (methods.FirstOrDefault(m => m.Name == "GetFrame") != null)
682 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_frame_controller_frame_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_frame_get_static_delegate) });
685 if (efl_gfx_frame_controller_frame_set_static_delegate == null)
687 efl_gfx_frame_controller_frame_set_static_delegate = new efl_gfx_frame_controller_frame_set_delegate(frame_set);
690 if (methods.FirstOrDefault(m => m.Name == "SetFrame") != null)
692 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_frame_controller_frame_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_frame_set_static_delegate) });
695 if (efl_gfx_frame_controller_frame_count_get_static_delegate == null)
697 efl_gfx_frame_controller_frame_count_get_static_delegate = new efl_gfx_frame_controller_frame_count_get_delegate(frame_count_get);
700 if (methods.FirstOrDefault(m => m.Name == "GetFrameCount") != null)
702 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_frame_controller_frame_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_frame_count_get_static_delegate) });
705 if (efl_gfx_frame_controller_loop_type_get_static_delegate == null)
707 efl_gfx_frame_controller_loop_type_get_static_delegate = new efl_gfx_frame_controller_loop_type_get_delegate(loop_type_get);
710 if (methods.FirstOrDefault(m => m.Name == "GetLoopType") != null)
712 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_frame_controller_loop_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_loop_type_get_static_delegate) });
715 if (efl_gfx_frame_controller_loop_count_get_static_delegate == null)
717 efl_gfx_frame_controller_loop_count_get_static_delegate = new efl_gfx_frame_controller_loop_count_get_delegate(loop_count_get);
720 if (methods.FirstOrDefault(m => m.Name == "GetLoopCount") != null)
722 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_frame_controller_loop_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_loop_count_get_static_delegate) });
725 if (efl_gfx_frame_controller_frame_duration_get_static_delegate == null)
727 efl_gfx_frame_controller_frame_duration_get_static_delegate = new efl_gfx_frame_controller_frame_duration_get_delegate(frame_duration_get);
730 if (methods.FirstOrDefault(m => m.Name == "GetFrameDuration") != null)
732 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_frame_controller_frame_duration_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_frame_duration_get_static_delegate) });
735 if (efl_gfx_image_load_controller_load_size_get_static_delegate == null)
737 efl_gfx_image_load_controller_load_size_get_static_delegate = new efl_gfx_image_load_controller_load_size_get_delegate(load_size_get);
740 if (methods.FirstOrDefault(m => m.Name == "GetLoadSize") != null)
742 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_size_get_static_delegate) });
745 if (efl_gfx_image_load_controller_load_size_set_static_delegate == null)
747 efl_gfx_image_load_controller_load_size_set_static_delegate = new efl_gfx_image_load_controller_load_size_set_delegate(load_size_set);
750 if (methods.FirstOrDefault(m => m.Name == "SetLoadSize") != null)
752 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_size_set_static_delegate) });
755 if (efl_gfx_image_load_controller_load_dpi_get_static_delegate == null)
757 efl_gfx_image_load_controller_load_dpi_get_static_delegate = new efl_gfx_image_load_controller_load_dpi_get_delegate(load_dpi_get);
760 if (methods.FirstOrDefault(m => m.Name == "GetLoadDpi") != null)
762 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_dpi_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_dpi_get_static_delegate) });
765 if (efl_gfx_image_load_controller_load_dpi_set_static_delegate == null)
767 efl_gfx_image_load_controller_load_dpi_set_static_delegate = new efl_gfx_image_load_controller_load_dpi_set_delegate(load_dpi_set);
770 if (methods.FirstOrDefault(m => m.Name == "SetLoadDpi") != null)
772 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_dpi_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_dpi_set_static_delegate) });
775 if (efl_gfx_image_load_controller_load_region_support_get_static_delegate == null)
777 efl_gfx_image_load_controller_load_region_support_get_static_delegate = new efl_gfx_image_load_controller_load_region_support_get_delegate(load_region_support_get);
780 if (methods.FirstOrDefault(m => m.Name == "GetLoadRegionSupport") != null)
782 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_region_support_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_support_get_static_delegate) });
785 if (efl_gfx_image_load_controller_load_region_get_static_delegate == null)
787 efl_gfx_image_load_controller_load_region_get_static_delegate = new efl_gfx_image_load_controller_load_region_get_delegate(load_region_get);
790 if (methods.FirstOrDefault(m => m.Name == "GetLoadRegion") != null)
792 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_region_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_get_static_delegate) });
795 if (efl_gfx_image_load_controller_load_region_set_static_delegate == null)
797 efl_gfx_image_load_controller_load_region_set_static_delegate = new efl_gfx_image_load_controller_load_region_set_delegate(load_region_set);
800 if (methods.FirstOrDefault(m => m.Name == "SetLoadRegion") != null)
802 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_region_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_set_static_delegate) });
805 if (efl_gfx_image_load_controller_load_orientation_get_static_delegate == null)
807 efl_gfx_image_load_controller_load_orientation_get_static_delegate = new efl_gfx_image_load_controller_load_orientation_get_delegate(load_orientation_get);
810 if (methods.FirstOrDefault(m => m.Name == "GetLoadOrientation") != null)
812 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_orientation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_orientation_get_static_delegate) });
815 if (efl_gfx_image_load_controller_load_orientation_set_static_delegate == null)
817 efl_gfx_image_load_controller_load_orientation_set_static_delegate = new efl_gfx_image_load_controller_load_orientation_set_delegate(load_orientation_set);
820 if (methods.FirstOrDefault(m => m.Name == "SetLoadOrientation") != null)
822 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_orientation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_orientation_set_static_delegate) });
825 if (efl_gfx_image_load_controller_load_scale_down_get_static_delegate == null)
827 efl_gfx_image_load_controller_load_scale_down_get_static_delegate = new efl_gfx_image_load_controller_load_scale_down_get_delegate(load_scale_down_get);
830 if (methods.FirstOrDefault(m => m.Name == "GetLoadScaleDown") != null)
832 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_scale_down_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_scale_down_get_static_delegate) });
835 if (efl_gfx_image_load_controller_load_scale_down_set_static_delegate == null)
837 efl_gfx_image_load_controller_load_scale_down_set_static_delegate = new efl_gfx_image_load_controller_load_scale_down_set_delegate(load_scale_down_set);
840 if (methods.FirstOrDefault(m => m.Name == "SetLoadScaleDown") != null)
842 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_scale_down_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_scale_down_set_static_delegate) });
845 if (efl_gfx_image_load_controller_load_skip_header_get_static_delegate == null)
847 efl_gfx_image_load_controller_load_skip_header_get_static_delegate = new efl_gfx_image_load_controller_load_skip_header_get_delegate(load_skip_header_get);
850 if (methods.FirstOrDefault(m => m.Name == "GetLoadSkipHeader") != null)
852 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_skip_header_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_skip_header_get_static_delegate) });
855 if (efl_gfx_image_load_controller_load_skip_header_set_static_delegate == null)
857 efl_gfx_image_load_controller_load_skip_header_set_static_delegate = new efl_gfx_image_load_controller_load_skip_header_set_delegate(load_skip_header_set);
860 if (methods.FirstOrDefault(m => m.Name == "SetLoadSkipHeader") != null)
862 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_skip_header_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_skip_header_set_static_delegate) });
865 if (efl_gfx_image_load_controller_load_async_start_static_delegate == null)
867 efl_gfx_image_load_controller_load_async_start_static_delegate = new efl_gfx_image_load_controller_load_async_start_delegate(load_async_start);
870 if (methods.FirstOrDefault(m => m.Name == "LoadAsyncStart") != null)
872 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_async_start"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_async_start_static_delegate) });
875 if (efl_gfx_image_load_controller_load_async_cancel_static_delegate == null)
877 efl_gfx_image_load_controller_load_async_cancel_static_delegate = new efl_gfx_image_load_controller_load_async_cancel_delegate(load_async_cancel);
880 if (methods.FirstOrDefault(m => m.Name == "LoadAsyncCancel") != null)
882 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_async_cancel"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_async_cancel_static_delegate) });
885 descs.AddRange(base.GetEoOps(type));
888 /// <summary>Returns the Eo class for the native methods of this class.</summary>
889 /// <returns>The native class pointer.</returns>
890 public override IntPtr GetEflClass()
892 return Efl.Canvas.Image.efl_canvas_image_class_get();
895 #pragma warning disable CA1707, CS1591, SA1300, SA1600
898 private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd);
901 public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj);
903 public static Efl.Eo.FunctionWrapper<efl_file_mmap_get_api_delegate> efl_file_mmap_get_ptr = new Efl.Eo.FunctionWrapper<efl_file_mmap_get_api_delegate>(Module, "efl_file_mmap_get");
905 private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd)
907 Eina.Log.Debug("function efl_file_mmap_get was called");
908 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
911 Eina.File _ret_var = default(Eina.File);
914 _ret_var = ((Image)ws.Target).GetMmap();
918 Eina.Log.Warning($"Callback error: {e.ToString()}");
919 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
927 return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
931 private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate;
934 private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f);
937 public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f);
939 public static Efl.Eo.FunctionWrapper<efl_file_mmap_set_api_delegate> efl_file_mmap_set_ptr = new Efl.Eo.FunctionWrapper<efl_file_mmap_set_api_delegate>(Module, "efl_file_mmap_set");
941 private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f)
943 Eina.Log.Debug("function efl_file_mmap_set was called");
944 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
947 Eina.Error _ret_var = default(Eina.Error);
950 _ret_var = ((Image)ws.Target).SetMmap(f);
954 Eina.Log.Warning($"Callback error: {e.ToString()}");
955 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
963 return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f);
967 private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate;
969 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
970 private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd);
972 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
973 public delegate System.String efl_file_get_api_delegate(System.IntPtr obj);
975 public static Efl.Eo.FunctionWrapper<efl_file_get_api_delegate> efl_file_get_ptr = new Efl.Eo.FunctionWrapper<efl_file_get_api_delegate>(Module, "efl_file_get");
977 private static System.String file_get(System.IntPtr obj, System.IntPtr pd)
979 Eina.Log.Debug("function efl_file_get was called");
980 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
983 System.String _ret_var = default(System.String);
986 _ret_var = ((Image)ws.Target).GetFile();
990 Eina.Log.Warning($"Callback error: {e.ToString()}");
991 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
999 return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1003 private static efl_file_get_delegate efl_file_get_static_delegate;
1006 private delegate Eina.Error efl_file_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file);
1009 public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file);
1011 public static Efl.Eo.FunctionWrapper<efl_file_set_api_delegate> efl_file_set_ptr = new Efl.Eo.FunctionWrapper<efl_file_set_api_delegate>(Module, "efl_file_set");
1013 private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file)
1015 Eina.Log.Debug("function efl_file_set was called");
1016 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1019 Eina.Error _ret_var = default(Eina.Error);
1022 _ret_var = ((Image)ws.Target).SetFile(file);
1026 Eina.Log.Warning($"Callback error: {e.ToString()}");
1027 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1035 return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file);
1039 private static efl_file_set_delegate efl_file_set_static_delegate;
1041 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
1042 private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd);
1044 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
1045 public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj);
1047 public static Efl.Eo.FunctionWrapper<efl_file_key_get_api_delegate> efl_file_key_get_ptr = new Efl.Eo.FunctionWrapper<efl_file_key_get_api_delegate>(Module, "efl_file_key_get");
1049 private static System.String key_get(System.IntPtr obj, System.IntPtr pd)
1051 Eina.Log.Debug("function efl_file_key_get was called");
1052 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1055 System.String _ret_var = default(System.String);
1058 _ret_var = ((Image)ws.Target).GetKey();
1062 Eina.Log.Warning($"Callback error: {e.ToString()}");
1063 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1071 return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1075 private static efl_file_key_get_delegate efl_file_key_get_static_delegate;
1078 private delegate void efl_file_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key);
1081 public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key);
1083 public static Efl.Eo.FunctionWrapper<efl_file_key_set_api_delegate> efl_file_key_set_ptr = new Efl.Eo.FunctionWrapper<efl_file_key_set_api_delegate>(Module, "efl_file_key_set");
1085 private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key)
1087 Eina.Log.Debug("function efl_file_key_set was called");
1088 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1094 ((Image)ws.Target).SetKey(key);
1098 Eina.Log.Warning($"Callback error: {e.ToString()}");
1099 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1106 efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key);
1110 private static efl_file_key_set_delegate efl_file_key_set_static_delegate;
1112 [return: MarshalAs(UnmanagedType.U1)]
1113 private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd);
1115 [return: MarshalAs(UnmanagedType.U1)]
1116 public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj);
1118 public static Efl.Eo.FunctionWrapper<efl_file_loaded_get_api_delegate> efl_file_loaded_get_ptr = new Efl.Eo.FunctionWrapper<efl_file_loaded_get_api_delegate>(Module, "efl_file_loaded_get");
1120 private static bool loaded_get(System.IntPtr obj, System.IntPtr pd)
1122 Eina.Log.Debug("function efl_file_loaded_get was called");
1123 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1126 bool _ret_var = default(bool);
1129 _ret_var = ((Image)ws.Target).GetLoaded();
1133 Eina.Log.Warning($"Callback error: {e.ToString()}");
1134 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1142 return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1146 private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate;
1149 private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd);
1152 public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj);
1154 public static Efl.Eo.FunctionWrapper<efl_file_load_api_delegate> efl_file_load_ptr = new Efl.Eo.FunctionWrapper<efl_file_load_api_delegate>(Module, "efl_file_load");
1156 private static Eina.Error load(System.IntPtr obj, System.IntPtr pd)
1158 Eina.Log.Debug("function efl_file_load was called");
1159 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1162 Eina.Error _ret_var = default(Eina.Error);
1165 _ret_var = ((Image)ws.Target).Load();
1169 Eina.Log.Warning($"Callback error: {e.ToString()}");
1170 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1178 return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1182 private static efl_file_load_delegate efl_file_load_static_delegate;
1185 private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd);
1188 public delegate void efl_file_unload_api_delegate(System.IntPtr obj);
1190 public static Efl.Eo.FunctionWrapper<efl_file_unload_api_delegate> efl_file_unload_ptr = new Efl.Eo.FunctionWrapper<efl_file_unload_api_delegate>(Module, "efl_file_unload");
1192 private static void unload(System.IntPtr obj, System.IntPtr pd)
1194 Eina.Log.Debug("function efl_file_unload was called");
1195 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1201 ((Image)ws.Target).Unload();
1205 Eina.Log.Warning($"Callback error: {e.ToString()}");
1206 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1213 efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1217 private static efl_file_unload_delegate efl_file_unload_static_delegate;
1219 [return: MarshalAs(UnmanagedType.U1)]
1220 private delegate bool efl_gfx_frame_controller_animated_get_delegate(System.IntPtr obj, System.IntPtr pd);
1222 [return: MarshalAs(UnmanagedType.U1)]
1223 public delegate bool efl_gfx_frame_controller_animated_get_api_delegate(System.IntPtr obj);
1225 public static Efl.Eo.FunctionWrapper<efl_gfx_frame_controller_animated_get_api_delegate> efl_gfx_frame_controller_animated_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_frame_controller_animated_get_api_delegate>(Module, "efl_gfx_frame_controller_animated_get");
1227 private static bool animated_get(System.IntPtr obj, System.IntPtr pd)
1229 Eina.Log.Debug("function efl_gfx_frame_controller_animated_get was called");
1230 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1233 bool _ret_var = default(bool);
1236 _ret_var = ((Image)ws.Target).GetAnimated();
1240 Eina.Log.Warning($"Callback error: {e.ToString()}");
1241 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1249 return efl_gfx_frame_controller_animated_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1253 private static efl_gfx_frame_controller_animated_get_delegate efl_gfx_frame_controller_animated_get_static_delegate;
1256 private delegate int efl_gfx_frame_controller_frame_get_delegate(System.IntPtr obj, System.IntPtr pd);
1259 public delegate int efl_gfx_frame_controller_frame_get_api_delegate(System.IntPtr obj);
1261 public static Efl.Eo.FunctionWrapper<efl_gfx_frame_controller_frame_get_api_delegate> efl_gfx_frame_controller_frame_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_frame_controller_frame_get_api_delegate>(Module, "efl_gfx_frame_controller_frame_get");
1263 private static int frame_get(System.IntPtr obj, System.IntPtr pd)
1265 Eina.Log.Debug("function efl_gfx_frame_controller_frame_get was called");
1266 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1269 int _ret_var = default(int);
1272 _ret_var = ((Image)ws.Target).GetFrame();
1276 Eina.Log.Warning($"Callback error: {e.ToString()}");
1277 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1285 return efl_gfx_frame_controller_frame_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1289 private static efl_gfx_frame_controller_frame_get_delegate efl_gfx_frame_controller_frame_get_static_delegate;
1291 [return: MarshalAs(UnmanagedType.U1)]
1292 private delegate bool efl_gfx_frame_controller_frame_set_delegate(System.IntPtr obj, System.IntPtr pd, int frame_index);
1294 [return: MarshalAs(UnmanagedType.U1)]
1295 public delegate bool efl_gfx_frame_controller_frame_set_api_delegate(System.IntPtr obj, int frame_index);
1297 public static Efl.Eo.FunctionWrapper<efl_gfx_frame_controller_frame_set_api_delegate> efl_gfx_frame_controller_frame_set_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_frame_controller_frame_set_api_delegate>(Module, "efl_gfx_frame_controller_frame_set");
1299 private static bool frame_set(System.IntPtr obj, System.IntPtr pd, int frame_index)
1301 Eina.Log.Debug("function efl_gfx_frame_controller_frame_set was called");
1302 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1305 bool _ret_var = default(bool);
1308 _ret_var = ((Image)ws.Target).SetFrame(frame_index);
1312 Eina.Log.Warning($"Callback error: {e.ToString()}");
1313 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1321 return efl_gfx_frame_controller_frame_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), frame_index);
1325 private static efl_gfx_frame_controller_frame_set_delegate efl_gfx_frame_controller_frame_set_static_delegate;
1328 private delegate int efl_gfx_frame_controller_frame_count_get_delegate(System.IntPtr obj, System.IntPtr pd);
1331 public delegate int efl_gfx_frame_controller_frame_count_get_api_delegate(System.IntPtr obj);
1333 public static Efl.Eo.FunctionWrapper<efl_gfx_frame_controller_frame_count_get_api_delegate> efl_gfx_frame_controller_frame_count_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_frame_controller_frame_count_get_api_delegate>(Module, "efl_gfx_frame_controller_frame_count_get");
1335 private static int frame_count_get(System.IntPtr obj, System.IntPtr pd)
1337 Eina.Log.Debug("function efl_gfx_frame_controller_frame_count_get was called");
1338 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1341 int _ret_var = default(int);
1344 _ret_var = ((Image)ws.Target).GetFrameCount();
1348 Eina.Log.Warning($"Callback error: {e.ToString()}");
1349 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1357 return efl_gfx_frame_controller_frame_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1361 private static efl_gfx_frame_controller_frame_count_get_delegate efl_gfx_frame_controller_frame_count_get_static_delegate;
1364 private delegate Efl.Gfx.FrameControllerLoopHint efl_gfx_frame_controller_loop_type_get_delegate(System.IntPtr obj, System.IntPtr pd);
1367 public delegate Efl.Gfx.FrameControllerLoopHint efl_gfx_frame_controller_loop_type_get_api_delegate(System.IntPtr obj);
1369 public static Efl.Eo.FunctionWrapper<efl_gfx_frame_controller_loop_type_get_api_delegate> efl_gfx_frame_controller_loop_type_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_frame_controller_loop_type_get_api_delegate>(Module, "efl_gfx_frame_controller_loop_type_get");
1371 private static Efl.Gfx.FrameControllerLoopHint loop_type_get(System.IntPtr obj, System.IntPtr pd)
1373 Eina.Log.Debug("function efl_gfx_frame_controller_loop_type_get was called");
1374 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1377 Efl.Gfx.FrameControllerLoopHint _ret_var = default(Efl.Gfx.FrameControllerLoopHint);
1380 _ret_var = ((Image)ws.Target).GetLoopType();
1384 Eina.Log.Warning($"Callback error: {e.ToString()}");
1385 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1393 return efl_gfx_frame_controller_loop_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1397 private static efl_gfx_frame_controller_loop_type_get_delegate efl_gfx_frame_controller_loop_type_get_static_delegate;
1400 private delegate int efl_gfx_frame_controller_loop_count_get_delegate(System.IntPtr obj, System.IntPtr pd);
1403 public delegate int efl_gfx_frame_controller_loop_count_get_api_delegate(System.IntPtr obj);
1405 public static Efl.Eo.FunctionWrapper<efl_gfx_frame_controller_loop_count_get_api_delegate> efl_gfx_frame_controller_loop_count_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_frame_controller_loop_count_get_api_delegate>(Module, "efl_gfx_frame_controller_loop_count_get");
1407 private static int loop_count_get(System.IntPtr obj, System.IntPtr pd)
1409 Eina.Log.Debug("function efl_gfx_frame_controller_loop_count_get was called");
1410 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1413 int _ret_var = default(int);
1416 _ret_var = ((Image)ws.Target).GetLoopCount();
1420 Eina.Log.Warning($"Callback error: {e.ToString()}");
1421 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1429 return efl_gfx_frame_controller_loop_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1433 private static efl_gfx_frame_controller_loop_count_get_delegate efl_gfx_frame_controller_loop_count_get_static_delegate;
1436 private delegate double efl_gfx_frame_controller_frame_duration_get_delegate(System.IntPtr obj, System.IntPtr pd, int start_frame, int frame_num);
1439 public delegate double efl_gfx_frame_controller_frame_duration_get_api_delegate(System.IntPtr obj, int start_frame, int frame_num);
1441 public static Efl.Eo.FunctionWrapper<efl_gfx_frame_controller_frame_duration_get_api_delegate> efl_gfx_frame_controller_frame_duration_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_frame_controller_frame_duration_get_api_delegate>(Module, "efl_gfx_frame_controller_frame_duration_get");
1443 private static double frame_duration_get(System.IntPtr obj, System.IntPtr pd, int start_frame, int frame_num)
1445 Eina.Log.Debug("function efl_gfx_frame_controller_frame_duration_get was called");
1446 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1449 double _ret_var = default(double);
1452 _ret_var = ((Image)ws.Target).GetFrameDuration(start_frame, frame_num);
1456 Eina.Log.Warning($"Callback error: {e.ToString()}");
1457 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1465 return efl_gfx_frame_controller_frame_duration_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start_frame, frame_num);
1469 private static efl_gfx_frame_controller_frame_duration_get_delegate efl_gfx_frame_controller_frame_duration_get_static_delegate;
1472 private delegate Eina.Size2D.NativeStruct efl_gfx_image_load_controller_load_size_get_delegate(System.IntPtr obj, System.IntPtr pd);
1475 public delegate Eina.Size2D.NativeStruct efl_gfx_image_load_controller_load_size_get_api_delegate(System.IntPtr obj);
1477 public static Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_size_get_api_delegate> efl_gfx_image_load_controller_load_size_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_size_get_api_delegate>(Module, "efl_gfx_image_load_controller_load_size_get");
1479 private static Eina.Size2D.NativeStruct load_size_get(System.IntPtr obj, System.IntPtr pd)
1481 Eina.Log.Debug("function efl_gfx_image_load_controller_load_size_get was called");
1482 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1485 Eina.Size2D _ret_var = default(Eina.Size2D);
1488 _ret_var = ((Image)ws.Target).GetLoadSize();
1492 Eina.Log.Warning($"Callback error: {e.ToString()}");
1493 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1501 return efl_gfx_image_load_controller_load_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1505 private static efl_gfx_image_load_controller_load_size_get_delegate efl_gfx_image_load_controller_load_size_get_static_delegate;
1508 private delegate void efl_gfx_image_load_controller_load_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size);
1511 public delegate void efl_gfx_image_load_controller_load_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size);
1513 public static Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_size_set_api_delegate> efl_gfx_image_load_controller_load_size_set_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_size_set_api_delegate>(Module, "efl_gfx_image_load_controller_load_size_set");
1515 private static void load_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size)
1517 Eina.Log.Debug("function efl_gfx_image_load_controller_load_size_set was called");
1518 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1521 Eina.Size2D _in_size = size;
1525 ((Image)ws.Target).SetLoadSize(_in_size);
1529 Eina.Log.Warning($"Callback error: {e.ToString()}");
1530 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1537 efl_gfx_image_load_controller_load_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size);
1541 private static efl_gfx_image_load_controller_load_size_set_delegate efl_gfx_image_load_controller_load_size_set_static_delegate;
1544 private delegate double efl_gfx_image_load_controller_load_dpi_get_delegate(System.IntPtr obj, System.IntPtr pd);
1547 public delegate double efl_gfx_image_load_controller_load_dpi_get_api_delegate(System.IntPtr obj);
1549 public static Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_dpi_get_api_delegate> efl_gfx_image_load_controller_load_dpi_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_dpi_get_api_delegate>(Module, "efl_gfx_image_load_controller_load_dpi_get");
1551 private static double load_dpi_get(System.IntPtr obj, System.IntPtr pd)
1553 Eina.Log.Debug("function efl_gfx_image_load_controller_load_dpi_get was called");
1554 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1557 double _ret_var = default(double);
1560 _ret_var = ((Image)ws.Target).GetLoadDpi();
1564 Eina.Log.Warning($"Callback error: {e.ToString()}");
1565 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1573 return efl_gfx_image_load_controller_load_dpi_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1577 private static efl_gfx_image_load_controller_load_dpi_get_delegate efl_gfx_image_load_controller_load_dpi_get_static_delegate;
1580 private delegate void efl_gfx_image_load_controller_load_dpi_set_delegate(System.IntPtr obj, System.IntPtr pd, double dpi);
1583 public delegate void efl_gfx_image_load_controller_load_dpi_set_api_delegate(System.IntPtr obj, double dpi);
1585 public static Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_dpi_set_api_delegate> efl_gfx_image_load_controller_load_dpi_set_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_dpi_set_api_delegate>(Module, "efl_gfx_image_load_controller_load_dpi_set");
1587 private static void load_dpi_set(System.IntPtr obj, System.IntPtr pd, double dpi)
1589 Eina.Log.Debug("function efl_gfx_image_load_controller_load_dpi_set was called");
1590 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1596 ((Image)ws.Target).SetLoadDpi(dpi);
1600 Eina.Log.Warning($"Callback error: {e.ToString()}");
1601 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1608 efl_gfx_image_load_controller_load_dpi_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dpi);
1612 private static efl_gfx_image_load_controller_load_dpi_set_delegate efl_gfx_image_load_controller_load_dpi_set_static_delegate;
1614 [return: MarshalAs(UnmanagedType.U1)]
1615 private delegate bool efl_gfx_image_load_controller_load_region_support_get_delegate(System.IntPtr obj, System.IntPtr pd);
1617 [return: MarshalAs(UnmanagedType.U1)]
1618 public delegate bool efl_gfx_image_load_controller_load_region_support_get_api_delegate(System.IntPtr obj);
1620 public static Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_region_support_get_api_delegate> efl_gfx_image_load_controller_load_region_support_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_region_support_get_api_delegate>(Module, "efl_gfx_image_load_controller_load_region_support_get");
1622 private static bool load_region_support_get(System.IntPtr obj, System.IntPtr pd)
1624 Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_support_get was called");
1625 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1628 bool _ret_var = default(bool);
1631 _ret_var = ((Image)ws.Target).GetLoadRegionSupport();
1635 Eina.Log.Warning($"Callback error: {e.ToString()}");
1636 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1644 return efl_gfx_image_load_controller_load_region_support_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1648 private static efl_gfx_image_load_controller_load_region_support_get_delegate efl_gfx_image_load_controller_load_region_support_get_static_delegate;
1651 private delegate Eina.Rect.NativeStruct efl_gfx_image_load_controller_load_region_get_delegate(System.IntPtr obj, System.IntPtr pd);
1654 public delegate Eina.Rect.NativeStruct efl_gfx_image_load_controller_load_region_get_api_delegate(System.IntPtr obj);
1656 public static Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_region_get_api_delegate> efl_gfx_image_load_controller_load_region_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_region_get_api_delegate>(Module, "efl_gfx_image_load_controller_load_region_get");
1658 private static Eina.Rect.NativeStruct load_region_get(System.IntPtr obj, System.IntPtr pd)
1660 Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_get was called");
1661 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1664 Eina.Rect _ret_var = default(Eina.Rect);
1667 _ret_var = ((Image)ws.Target).GetLoadRegion();
1671 Eina.Log.Warning($"Callback error: {e.ToString()}");
1672 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1680 return efl_gfx_image_load_controller_load_region_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1684 private static efl_gfx_image_load_controller_load_region_get_delegate efl_gfx_image_load_controller_load_region_get_static_delegate;
1687 private delegate void efl_gfx_image_load_controller_load_region_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct region);
1690 public delegate void efl_gfx_image_load_controller_load_region_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct region);
1692 public static Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_region_set_api_delegate> efl_gfx_image_load_controller_load_region_set_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_region_set_api_delegate>(Module, "efl_gfx_image_load_controller_load_region_set");
1694 private static void load_region_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct region)
1696 Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_set was called");
1697 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1700 Eina.Rect _in_region = region;
1704 ((Image)ws.Target).SetLoadRegion(_in_region);
1708 Eina.Log.Warning($"Callback error: {e.ToString()}");
1709 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1716 efl_gfx_image_load_controller_load_region_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), region);
1720 private static efl_gfx_image_load_controller_load_region_set_delegate efl_gfx_image_load_controller_load_region_set_static_delegate;
1722 [return: MarshalAs(UnmanagedType.U1)]
1723 private delegate bool efl_gfx_image_load_controller_load_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd);
1725 [return: MarshalAs(UnmanagedType.U1)]
1726 public delegate bool efl_gfx_image_load_controller_load_orientation_get_api_delegate(System.IntPtr obj);
1728 public static Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_orientation_get_api_delegate> efl_gfx_image_load_controller_load_orientation_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_orientation_get_api_delegate>(Module, "efl_gfx_image_load_controller_load_orientation_get");
1730 private static bool load_orientation_get(System.IntPtr obj, System.IntPtr pd)
1732 Eina.Log.Debug("function efl_gfx_image_load_controller_load_orientation_get was called");
1733 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1736 bool _ret_var = default(bool);
1739 _ret_var = ((Image)ws.Target).GetLoadOrientation();
1743 Eina.Log.Warning($"Callback error: {e.ToString()}");
1744 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1752 return efl_gfx_image_load_controller_load_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1756 private static efl_gfx_image_load_controller_load_orientation_get_delegate efl_gfx_image_load_controller_load_orientation_get_static_delegate;
1759 private delegate void efl_gfx_image_load_controller_load_orientation_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable);
1762 public delegate void efl_gfx_image_load_controller_load_orientation_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable);
1764 public static Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_orientation_set_api_delegate> efl_gfx_image_load_controller_load_orientation_set_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_orientation_set_api_delegate>(Module, "efl_gfx_image_load_controller_load_orientation_set");
1766 private static void load_orientation_set(System.IntPtr obj, System.IntPtr pd, bool enable)
1768 Eina.Log.Debug("function efl_gfx_image_load_controller_load_orientation_set was called");
1769 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1775 ((Image)ws.Target).SetLoadOrientation(enable);
1779 Eina.Log.Warning($"Callback error: {e.ToString()}");
1780 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1787 efl_gfx_image_load_controller_load_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable);
1791 private static efl_gfx_image_load_controller_load_orientation_set_delegate efl_gfx_image_load_controller_load_orientation_set_static_delegate;
1794 private delegate int efl_gfx_image_load_controller_load_scale_down_get_delegate(System.IntPtr obj, System.IntPtr pd);
1797 public delegate int efl_gfx_image_load_controller_load_scale_down_get_api_delegate(System.IntPtr obj);
1799 public static Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_scale_down_get_api_delegate> efl_gfx_image_load_controller_load_scale_down_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_scale_down_get_api_delegate>(Module, "efl_gfx_image_load_controller_load_scale_down_get");
1801 private static int load_scale_down_get(System.IntPtr obj, System.IntPtr pd)
1803 Eina.Log.Debug("function efl_gfx_image_load_controller_load_scale_down_get was called");
1804 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1807 int _ret_var = default(int);
1810 _ret_var = ((Image)ws.Target).GetLoadScaleDown();
1814 Eina.Log.Warning($"Callback error: {e.ToString()}");
1815 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1823 return efl_gfx_image_load_controller_load_scale_down_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1827 private static efl_gfx_image_load_controller_load_scale_down_get_delegate efl_gfx_image_load_controller_load_scale_down_get_static_delegate;
1830 private delegate void efl_gfx_image_load_controller_load_scale_down_set_delegate(System.IntPtr obj, System.IntPtr pd, int div);
1833 public delegate void efl_gfx_image_load_controller_load_scale_down_set_api_delegate(System.IntPtr obj, int div);
1835 public static Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_scale_down_set_api_delegate> efl_gfx_image_load_controller_load_scale_down_set_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_scale_down_set_api_delegate>(Module, "efl_gfx_image_load_controller_load_scale_down_set");
1837 private static void load_scale_down_set(System.IntPtr obj, System.IntPtr pd, int div)
1839 Eina.Log.Debug("function efl_gfx_image_load_controller_load_scale_down_set was called");
1840 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1846 ((Image)ws.Target).SetLoadScaleDown(div);
1850 Eina.Log.Warning($"Callback error: {e.ToString()}");
1851 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1858 efl_gfx_image_load_controller_load_scale_down_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), div);
1862 private static efl_gfx_image_load_controller_load_scale_down_set_delegate efl_gfx_image_load_controller_load_scale_down_set_static_delegate;
1864 [return: MarshalAs(UnmanagedType.U1)]
1865 private delegate bool efl_gfx_image_load_controller_load_skip_header_get_delegate(System.IntPtr obj, System.IntPtr pd);
1867 [return: MarshalAs(UnmanagedType.U1)]
1868 public delegate bool efl_gfx_image_load_controller_load_skip_header_get_api_delegate(System.IntPtr obj);
1870 public static Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_skip_header_get_api_delegate> efl_gfx_image_load_controller_load_skip_header_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_skip_header_get_api_delegate>(Module, "efl_gfx_image_load_controller_load_skip_header_get");
1872 private static bool load_skip_header_get(System.IntPtr obj, System.IntPtr pd)
1874 Eina.Log.Debug("function efl_gfx_image_load_controller_load_skip_header_get was called");
1875 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1878 bool _ret_var = default(bool);
1881 _ret_var = ((Image)ws.Target).GetLoadSkipHeader();
1885 Eina.Log.Warning($"Callback error: {e.ToString()}");
1886 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1894 return efl_gfx_image_load_controller_load_skip_header_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1898 private static efl_gfx_image_load_controller_load_skip_header_get_delegate efl_gfx_image_load_controller_load_skip_header_get_static_delegate;
1901 private delegate void efl_gfx_image_load_controller_load_skip_header_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool skip);
1904 public delegate void efl_gfx_image_load_controller_load_skip_header_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool skip);
1906 public static Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_skip_header_set_api_delegate> efl_gfx_image_load_controller_load_skip_header_set_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_skip_header_set_api_delegate>(Module, "efl_gfx_image_load_controller_load_skip_header_set");
1908 private static void load_skip_header_set(System.IntPtr obj, System.IntPtr pd, bool skip)
1910 Eina.Log.Debug("function efl_gfx_image_load_controller_load_skip_header_set was called");
1911 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1917 ((Image)ws.Target).SetLoadSkipHeader(skip);
1921 Eina.Log.Warning($"Callback error: {e.ToString()}");
1922 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1929 efl_gfx_image_load_controller_load_skip_header_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), skip);
1933 private static efl_gfx_image_load_controller_load_skip_header_set_delegate efl_gfx_image_load_controller_load_skip_header_set_static_delegate;
1936 private delegate void efl_gfx_image_load_controller_load_async_start_delegate(System.IntPtr obj, System.IntPtr pd);
1939 public delegate void efl_gfx_image_load_controller_load_async_start_api_delegate(System.IntPtr obj);
1941 public static Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_async_start_api_delegate> efl_gfx_image_load_controller_load_async_start_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_async_start_api_delegate>(Module, "efl_gfx_image_load_controller_load_async_start");
1943 private static void load_async_start(System.IntPtr obj, System.IntPtr pd)
1945 Eina.Log.Debug("function efl_gfx_image_load_controller_load_async_start was called");
1946 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1952 ((Image)ws.Target).LoadAsyncStart();
1956 Eina.Log.Warning($"Callback error: {e.ToString()}");
1957 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1964 efl_gfx_image_load_controller_load_async_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1968 private static efl_gfx_image_load_controller_load_async_start_delegate efl_gfx_image_load_controller_load_async_start_static_delegate;
1971 private delegate void efl_gfx_image_load_controller_load_async_cancel_delegate(System.IntPtr obj, System.IntPtr pd);
1974 public delegate void efl_gfx_image_load_controller_load_async_cancel_api_delegate(System.IntPtr obj);
1976 public static Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_async_cancel_api_delegate> efl_gfx_image_load_controller_load_async_cancel_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_image_load_controller_load_async_cancel_api_delegate>(Module, "efl_gfx_image_load_controller_load_async_cancel");
1978 private static void load_async_cancel(System.IntPtr obj, System.IntPtr pd)
1980 Eina.Log.Debug("function efl_gfx_image_load_controller_load_async_cancel was called");
1981 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1987 ((Image)ws.Target).LoadAsyncCancel();
1991 Eina.Log.Warning($"Callback error: {e.ToString()}");
1992 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1999 efl_gfx_image_load_controller_load_async_cancel_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
2003 private static efl_gfx_image_load_controller_load_async_cancel_delegate efl_gfx_image_load_controller_load_async_cancel_static_delegate;
2005 #pragma warning restore CA1707, CS1591, SA1300, SA1600