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>Efl frame controller of frame based animated object interface.</summary>
13 [Efl.Gfx.IFrameControllerConcrete.NativeMethods]
14 public interface IFrameController :
15 Efl.Eo.IWrapper, IDisposable
17 /// <summary>Check if an object can be animated (has multiple frames).
18 /// This will be <c>true</c> for animated object for instance but <c>false</c> for a single frame object.</summary>
19 /// <returns><c>true</c> if the object is animated</returns>
21 /// <summary>Index of the current frame of an animated object.
22 /// Ranges from 1 to <see cref="Efl.Gfx.IFrameController.GetFrameCount"/>. Valid only if <see cref="Efl.Gfx.IFrameController.GetAnimated"/>.</summary>
23 /// <returns>The index of current frame.</returns>
25 /// <summary>Set the frame to current frame of an animated object.</summary>
26 /// <param name="frame_index">The index of current frame.</param>
27 /// <returns>Returns <c>true</c> if the frame index is valid.</returns>
28 bool SetFrame(int frame_index);
29 /// <summary>Get the total number of frames of the object, if animated.
30 /// Returns -1 if not animated.</summary>
31 /// <returns>The number of frames in the animated object.</returns>
33 /// <summary>Get the kind of looping the animated object does.
34 /// This returns the kind of looping the animated object wants to do.
36 /// If it returns <see cref="Efl.Gfx.FrameControllerLoopHint.Loop"/>, you should display frames in a sequence like: 1->2->3->1->2->3->1...
38 /// 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...
40 /// The default type is <see cref="Efl.Gfx.FrameControllerLoopHint.Loop"/>.</summary>
41 /// <returns>Loop type of the animated object.</returns>
42 Efl.Gfx.FrameControllerLoopHint GetLoopType();
43 /// <summary>Get the number times the animation of the object loops.
44 /// 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).
46 /// If 0 is returned, then looping should happen indefinitely (no limit to the number of times it loops).</summary>
47 /// <returns>The number of loop of an animated object.</returns>
49 /// <summary>Get the duration of a sequence of frames.
50 /// This returns total duration in seconds that the specified sequence of frames should take.
52 /// 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>
53 /// <param name="start_frame">The first frame, rangers from 1 to <see cref="Efl.Gfx.IFrameController.GetFrameCount"/>.</param>
54 /// <param name="frame_num">Number of frames in the sequence, starts from 0.</param>
55 /// <returns>Duration in seconds</returns>
56 double GetFrameDuration(int start_frame, int frame_num);
57 /// <summary>Check if an object can be animated (has multiple frames).
58 /// This will be <c>true</c> for animated object for instance but <c>false</c> for a single frame object.</summary>
59 /// <value><c>true</c> if the object is animated</value>
63 /// <summary>Index of the current frame of an animated object.
64 /// Ranges from 1 to <see cref="Efl.Gfx.IFrameController.GetFrameCount"/>. Valid only if <see cref="Efl.Gfx.IFrameController.GetAnimated"/>.</summary>
65 /// <value>The index of current frame.</value>
70 /// <summary>Get the total number of frames of the object, if animated.
71 /// Returns -1 if not animated.</summary>
72 /// <value>The number of frames in the animated object.</value>
76 /// <summary>Get the kind of looping the animated object does.
77 /// This returns the kind of looping the animated object wants to do.
79 /// If it returns <see cref="Efl.Gfx.FrameControllerLoopHint.Loop"/>, you should display frames in a sequence like: 1->2->3->1->2->3->1...
81 /// 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...
83 /// The default type is <see cref="Efl.Gfx.FrameControllerLoopHint.Loop"/>.</summary>
84 /// <value>Loop type of the animated object.</value>
85 Efl.Gfx.FrameControllerLoopHint LoopType {
88 /// <summary>Get the number times the animation of the object loops.
89 /// 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).
91 /// If 0 is returned, then looping should happen indefinitely (no limit to the number of times it loops).</summary>
92 /// <value>The number of loop of an animated object.</value>
97 /// <summary>Efl frame controller of frame based animated object interface.</summary>
98 sealed public class IFrameControllerConcrete :
103 ///<summary>Pointer to the native class description.</summary>
104 public System.IntPtr NativeClass
108 if (((object)this).GetType() == typeof(IFrameControllerConcrete))
110 return GetEflClassStatic();
114 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
119 private System.IntPtr handle;
120 ///<summary>Pointer to the native instance.</summary>
121 public System.IntPtr NativeHandle
123 get { return handle; }
126 [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr
127 efl_gfx_frame_controller_interface_get();
128 /// <summary>Initializes a new instance of the <see cref="IFrameController"/> class.
129 /// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
130 private IFrameControllerConcrete(System.IntPtr raw)
134 ///<summary>Destructor.</summary>
135 ~IFrameControllerConcrete()
140 ///<summary>Releases the underlying native instance.</summary>
141 private void Dispose(bool disposing)
143 if (handle != System.IntPtr.Zero)
146 handle = IntPtr.Zero;
148 IntPtr gcHandlePtr = IntPtr.Zero;
151 Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr);
155 Monitor.Enter(Efl.All.InitLock);
156 if (Efl.All.MainLoopInitialized)
158 Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr);
161 Monitor.Exit(Efl.All.InitLock);
167 ///<summary>Releases the underlying native instance.</summary>
168 public void Dispose()
171 GC.SuppressFinalize(this);
174 /// <summary>Verifies if the given object is equal to this one.</summary>
175 /// <param name="instance">The object to compare to.</param>
176 /// <returns>True if both objects point to the same native object.</returns>
177 public override bool Equals(object instance)
179 var other = instance as Efl.Object;
184 return this.NativeHandle == other.NativeHandle;
187 /// <summary>Gets the hash code for this object based on the native pointer it points to.</summary>
188 /// <returns>The value of the pointer, to be used as the hash code of this object.</returns>
189 public override int GetHashCode()
191 return this.NativeHandle.ToInt32();
194 /// <summary>Turns the native pointer into a string representation.</summary>
195 /// <returns>A string with the type and the native pointer for this object.</returns>
196 public override String ToString()
198 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
201 /// <summary>Check if an object can be animated (has multiple frames).
202 /// This will be <c>true</c> for animated object for instance but <c>false</c> for a single frame object.</summary>
203 /// <returns><c>true</c> if the object is animated</returns>
204 public bool GetAnimated() {
205 var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_animated_get_ptr.Value.Delegate(this.NativeHandle);
206 Eina.Error.RaiseIfUnhandledException();
209 /// <summary>Index of the current frame of an animated object.
210 /// Ranges from 1 to <see cref="Efl.Gfx.IFrameController.GetFrameCount"/>. Valid only if <see cref="Efl.Gfx.IFrameController.GetAnimated"/>.</summary>
211 /// <returns>The index of current frame.</returns>
212 public int GetFrame() {
213 var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_frame_get_ptr.Value.Delegate(this.NativeHandle);
214 Eina.Error.RaiseIfUnhandledException();
217 /// <summary>Set the frame to current frame of an animated object.</summary>
218 /// <param name="frame_index">The index of current frame.</param>
219 /// <returns>Returns <c>true</c> if the frame index is valid.</returns>
220 public bool SetFrame(int frame_index) {
221 var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_frame_set_ptr.Value.Delegate(this.NativeHandle,frame_index);
222 Eina.Error.RaiseIfUnhandledException();
225 /// <summary>Get the total number of frames of the object, if animated.
226 /// Returns -1 if not animated.</summary>
227 /// <returns>The number of frames in the animated object.</returns>
228 public int GetFrameCount() {
229 var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_frame_count_get_ptr.Value.Delegate(this.NativeHandle);
230 Eina.Error.RaiseIfUnhandledException();
233 /// <summary>Get the kind of looping the animated object does.
234 /// This returns the kind of looping the animated object wants to do.
236 /// If it returns <see cref="Efl.Gfx.FrameControllerLoopHint.Loop"/>, you should display frames in a sequence like: 1->2->3->1->2->3->1...
238 /// 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...
240 /// The default type is <see cref="Efl.Gfx.FrameControllerLoopHint.Loop"/>.</summary>
241 /// <returns>Loop type of the animated object.</returns>
242 public Efl.Gfx.FrameControllerLoopHint GetLoopType() {
243 var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_loop_type_get_ptr.Value.Delegate(this.NativeHandle);
244 Eina.Error.RaiseIfUnhandledException();
247 /// <summary>Get the number times the animation of the object loops.
248 /// 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).
250 /// If 0 is returned, then looping should happen indefinitely (no limit to the number of times it loops).</summary>
251 /// <returns>The number of loop of an animated object.</returns>
252 public int GetLoopCount() {
253 var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_loop_count_get_ptr.Value.Delegate(this.NativeHandle);
254 Eina.Error.RaiseIfUnhandledException();
257 /// <summary>Get the duration of a sequence of frames.
258 /// This returns total duration in seconds that the specified sequence of frames should take.
260 /// 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>
261 /// <param name="start_frame">The first frame, rangers from 1 to <see cref="Efl.Gfx.IFrameController.GetFrameCount"/>.</param>
262 /// <param name="frame_num">Number of frames in the sequence, starts from 0.</param>
263 /// <returns>Duration in seconds</returns>
264 public double GetFrameDuration(int start_frame, int frame_num) {
265 var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_frame_duration_get_ptr.Value.Delegate(this.NativeHandle,start_frame, frame_num);
266 Eina.Error.RaiseIfUnhandledException();
269 /// <summary>Check if an object can be animated (has multiple frames).
270 /// This will be <c>true</c> for animated object for instance but <c>false</c> for a single frame object.</summary>
271 /// <value><c>true</c> if the object is animated</value>
272 public bool Animated {
273 get { return GetAnimated(); }
275 /// <summary>Index of the current frame of an animated object.
276 /// Ranges from 1 to <see cref="Efl.Gfx.IFrameController.GetFrameCount"/>. Valid only if <see cref="Efl.Gfx.IFrameController.GetAnimated"/>.</summary>
277 /// <value>The index of current frame.</value>
279 get { return GetFrame(); }
280 set { SetFrame(value); }
282 /// <summary>Get the total number of frames of the object, if animated.
283 /// Returns -1 if not animated.</summary>
284 /// <value>The number of frames in the animated object.</value>
285 public int FrameCount {
286 get { return GetFrameCount(); }
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 /// <value>Loop type of the animated object.</value>
297 public Efl.Gfx.FrameControllerLoopHint LoopType {
298 get { return GetLoopType(); }
300 /// <summary>Get the number times the animation of the object loops.
301 /// 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).
303 /// If 0 is returned, then looping should happen indefinitely (no limit to the number of times it loops).</summary>
304 /// <value>The number of loop of an animated object.</value>
305 public int LoopCount {
306 get { return GetLoopCount(); }
308 private static IntPtr GetEflClassStatic()
310 return Efl.Gfx.IFrameControllerConcrete.efl_gfx_frame_controller_interface_get();
312 /// <summary>Wrapper for native methods and virtual method delegates.
313 /// For internal use by generated code only.</summary>
314 public class NativeMethods : Efl.Eo.NativeClass
316 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl);
317 /// <summary>Gets the list of Eo operations to override.</summary>
318 /// <returns>The list of Eo operations to be overload.</returns>
319 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
321 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
322 var methods = Efl.Eo.Globals.GetUserMethods(type);
324 if (efl_gfx_frame_controller_animated_get_static_delegate == null)
326 efl_gfx_frame_controller_animated_get_static_delegate = new efl_gfx_frame_controller_animated_get_delegate(animated_get);
329 if (methods.FirstOrDefault(m => m.Name == "GetAnimated") != null)
331 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) });
334 if (efl_gfx_frame_controller_frame_get_static_delegate == null)
336 efl_gfx_frame_controller_frame_get_static_delegate = new efl_gfx_frame_controller_frame_get_delegate(frame_get);
339 if (methods.FirstOrDefault(m => m.Name == "GetFrame") != null)
341 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) });
344 if (efl_gfx_frame_controller_frame_set_static_delegate == null)
346 efl_gfx_frame_controller_frame_set_static_delegate = new efl_gfx_frame_controller_frame_set_delegate(frame_set);
349 if (methods.FirstOrDefault(m => m.Name == "SetFrame") != null)
351 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) });
354 if (efl_gfx_frame_controller_frame_count_get_static_delegate == null)
356 efl_gfx_frame_controller_frame_count_get_static_delegate = new efl_gfx_frame_controller_frame_count_get_delegate(frame_count_get);
359 if (methods.FirstOrDefault(m => m.Name == "GetFrameCount") != null)
361 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) });
364 if (efl_gfx_frame_controller_loop_type_get_static_delegate == null)
366 efl_gfx_frame_controller_loop_type_get_static_delegate = new efl_gfx_frame_controller_loop_type_get_delegate(loop_type_get);
369 if (methods.FirstOrDefault(m => m.Name == "GetLoopType") != null)
371 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) });
374 if (efl_gfx_frame_controller_loop_count_get_static_delegate == null)
376 efl_gfx_frame_controller_loop_count_get_static_delegate = new efl_gfx_frame_controller_loop_count_get_delegate(loop_count_get);
379 if (methods.FirstOrDefault(m => m.Name == "GetLoopCount") != null)
381 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) });
384 if (efl_gfx_frame_controller_frame_duration_get_static_delegate == null)
386 efl_gfx_frame_controller_frame_duration_get_static_delegate = new efl_gfx_frame_controller_frame_duration_get_delegate(frame_duration_get);
389 if (methods.FirstOrDefault(m => m.Name == "GetFrameDuration") != null)
391 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) });
396 /// <summary>Returns the Eo class for the native methods of this class.</summary>
397 /// <returns>The native class pointer.</returns>
398 public override IntPtr GetEflClass()
400 return Efl.Gfx.IFrameControllerConcrete.efl_gfx_frame_controller_interface_get();
403 #pragma warning disable CA1707, SA1300, SA1600
405 [return: MarshalAs(UnmanagedType.U1)]
406 private delegate bool efl_gfx_frame_controller_animated_get_delegate(System.IntPtr obj, System.IntPtr pd);
408 [return: MarshalAs(UnmanagedType.U1)]
409 public delegate bool efl_gfx_frame_controller_animated_get_api_delegate(System.IntPtr obj);
411 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");
413 private static bool animated_get(System.IntPtr obj, System.IntPtr pd)
415 Eina.Log.Debug("function efl_gfx_frame_controller_animated_get was called");
416 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
419 bool _ret_var = default(bool);
422 _ret_var = ((IFrameController)wrapper).GetAnimated();
426 Eina.Log.Warning($"Callback error: {e.ToString()}");
427 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
435 return efl_gfx_frame_controller_animated_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
439 private static efl_gfx_frame_controller_animated_get_delegate efl_gfx_frame_controller_animated_get_static_delegate;
442 private delegate int efl_gfx_frame_controller_frame_get_delegate(System.IntPtr obj, System.IntPtr pd);
445 public delegate int efl_gfx_frame_controller_frame_get_api_delegate(System.IntPtr obj);
447 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");
449 private static int frame_get(System.IntPtr obj, System.IntPtr pd)
451 Eina.Log.Debug("function efl_gfx_frame_controller_frame_get was called");
452 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
455 int _ret_var = default(int);
458 _ret_var = ((IFrameController)wrapper).GetFrame();
462 Eina.Log.Warning($"Callback error: {e.ToString()}");
463 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
471 return efl_gfx_frame_controller_frame_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
475 private static efl_gfx_frame_controller_frame_get_delegate efl_gfx_frame_controller_frame_get_static_delegate;
477 [return: MarshalAs(UnmanagedType.U1)]
478 private delegate bool efl_gfx_frame_controller_frame_set_delegate(System.IntPtr obj, System.IntPtr pd, int frame_index);
480 [return: MarshalAs(UnmanagedType.U1)]
481 public delegate bool efl_gfx_frame_controller_frame_set_api_delegate(System.IntPtr obj, int frame_index);
483 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");
485 private static bool frame_set(System.IntPtr obj, System.IntPtr pd, int frame_index)
487 Eina.Log.Debug("function efl_gfx_frame_controller_frame_set was called");
488 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
491 bool _ret_var = default(bool);
494 _ret_var = ((IFrameController)wrapper).SetFrame(frame_index);
498 Eina.Log.Warning($"Callback error: {e.ToString()}");
499 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
507 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);
511 private static efl_gfx_frame_controller_frame_set_delegate efl_gfx_frame_controller_frame_set_static_delegate;
514 private delegate int efl_gfx_frame_controller_frame_count_get_delegate(System.IntPtr obj, System.IntPtr pd);
517 public delegate int efl_gfx_frame_controller_frame_count_get_api_delegate(System.IntPtr obj);
519 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");
521 private static int frame_count_get(System.IntPtr obj, System.IntPtr pd)
523 Eina.Log.Debug("function efl_gfx_frame_controller_frame_count_get was called");
524 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
527 int _ret_var = default(int);
530 _ret_var = ((IFrameController)wrapper).GetFrameCount();
534 Eina.Log.Warning($"Callback error: {e.ToString()}");
535 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
543 return efl_gfx_frame_controller_frame_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
547 private static efl_gfx_frame_controller_frame_count_get_delegate efl_gfx_frame_controller_frame_count_get_static_delegate;
550 private delegate Efl.Gfx.FrameControllerLoopHint efl_gfx_frame_controller_loop_type_get_delegate(System.IntPtr obj, System.IntPtr pd);
553 public delegate Efl.Gfx.FrameControllerLoopHint efl_gfx_frame_controller_loop_type_get_api_delegate(System.IntPtr obj);
555 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");
557 private static Efl.Gfx.FrameControllerLoopHint loop_type_get(System.IntPtr obj, System.IntPtr pd)
559 Eina.Log.Debug("function efl_gfx_frame_controller_loop_type_get was called");
560 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
563 Efl.Gfx.FrameControllerLoopHint _ret_var = default(Efl.Gfx.FrameControllerLoopHint);
566 _ret_var = ((IFrameController)wrapper).GetLoopType();
570 Eina.Log.Warning($"Callback error: {e.ToString()}");
571 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
579 return efl_gfx_frame_controller_loop_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
583 private static efl_gfx_frame_controller_loop_type_get_delegate efl_gfx_frame_controller_loop_type_get_static_delegate;
586 private delegate int efl_gfx_frame_controller_loop_count_get_delegate(System.IntPtr obj, System.IntPtr pd);
589 public delegate int efl_gfx_frame_controller_loop_count_get_api_delegate(System.IntPtr obj);
591 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");
593 private static int loop_count_get(System.IntPtr obj, System.IntPtr pd)
595 Eina.Log.Debug("function efl_gfx_frame_controller_loop_count_get was called");
596 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
599 int _ret_var = default(int);
602 _ret_var = ((IFrameController)wrapper).GetLoopCount();
606 Eina.Log.Warning($"Callback error: {e.ToString()}");
607 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
615 return efl_gfx_frame_controller_loop_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
619 private static efl_gfx_frame_controller_loop_count_get_delegate efl_gfx_frame_controller_loop_count_get_static_delegate;
622 private delegate double efl_gfx_frame_controller_frame_duration_get_delegate(System.IntPtr obj, System.IntPtr pd, int start_frame, int frame_num);
625 public delegate double efl_gfx_frame_controller_frame_duration_get_api_delegate(System.IntPtr obj, int start_frame, int frame_num);
627 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");
629 private static double frame_duration_get(System.IntPtr obj, System.IntPtr pd, int start_frame, int frame_num)
631 Eina.Log.Debug("function efl_gfx_frame_controller_frame_duration_get was called");
632 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
635 double _ret_var = default(double);
638 _ret_var = ((IFrameController)wrapper).GetFrameDuration(start_frame, frame_num);
642 Eina.Log.Warning($"Callback error: {e.ToString()}");
643 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
651 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);
655 private static efl_gfx_frame_controller_frame_duration_get_delegate efl_gfx_frame_controller_frame_duration_get_static_delegate;
657 #pragma warning restore CA1707, SA1300, SA1600
669 /// <summary>Frame loop modes</summary>
670 public enum FrameControllerLoopHint
672 /// <summary>No looping order specified.</summary>
674 /// <summary>Standard loop: 1->2->3->1->2->3->1</summary>
676 /// <summary>Ping-pong bouncing loop: 1->2->3->2->1->2->3->1</summary>