2 #pragma warning disable CS1591
4 using System.Runtime.InteropServices;
5 using System.Collections.Generic;
7 using System.Threading;
8 using System.ComponentModel;
13 /// <summary>Efl frame controller of frame based animated object interface.</summary>
14 /// <remarks>This is a <b>BETA</b> class. It can be modified or removed in the future. Do not use it for product development.</remarks>
15 [Efl.Gfx.IFrameControllerConcrete.NativeMethods]
16 [Efl.Eo.BindingEntity]
17 public interface IFrameController :
18 Efl.Eo.IWrapper, IDisposable
20 /// <summary>Check if an object can be animated (has multiple frames).
21 /// This will be <c>true</c> for animated object for instance but <c>false</c> for a single frame object.</summary>
22 /// <returns><c>true</c> if the object is animated</returns>
24 /// <summary>Index of the current frame of an animated object.
25 /// Ranges from 1 to <see cref="Efl.Gfx.IFrameController.GetFrameCount"/>. Valid only if <see cref="Efl.Gfx.IFrameController.GetAnimated"/>.</summary>
26 /// <returns>The index of current frame.</returns>
28 /// <summary>Set the frame to current frame of an animated object.</summary>
29 /// <param name="frame_index">The index of current frame.</param>
30 /// <returns>Returns <c>true</c> if the frame index is valid.</returns>
31 bool SetFrame(int frame_index);
32 /// <summary>Get the total number of frames of the object, if animated.
33 /// Returns -1 if not animated.</summary>
34 /// <returns>The number of frames in the animated object.</returns>
36 /// <summary>Get the kind of looping the animated object does.
37 /// This returns the kind of looping the animated object wants to do.
39 /// If it returns <see cref="Efl.Gfx.FrameControllerLoopHint.Loop"/>, you should display frames in a sequence like: 1->2->3->1->2->3->1...
41 /// 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...
43 /// The default type is <see cref="Efl.Gfx.FrameControllerLoopHint.Loop"/>.</summary>
44 /// <returns>Loop type of the animated object.</returns>
45 Efl.Gfx.FrameControllerLoopHint GetLoopType();
46 /// <summary>Get the number times the animation of the object loops.
47 /// 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).
49 /// If 0 is returned, then looping should happen indefinitely (no limit to the number of times it loops).</summary>
50 /// <returns>The number of loop of an animated object.</returns>
52 /// <summary>Get the duration of a sequence of frames.
53 /// This returns total duration in seconds that the specified sequence of frames should take.
55 /// 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>
56 /// <param name="start_frame">The first frame, rangers from 1 to <see cref="Efl.Gfx.IFrameController.GetFrameCount"/>.</param>
57 /// <param name="frame_num">Number of frames in the sequence, starts from 0.</param>
58 /// <returns>Duration in seconds</returns>
59 double GetFrameDuration(int start_frame, int frame_num);
60 /// <summary>Check if an object can be animated (has multiple frames).
61 /// This will be <c>true</c> for animated object for instance but <c>false</c> for a single frame object.</summary>
62 /// <value><c>true</c> if the object is animated</value>
66 /// <summary>Index of the current frame of an animated object.
67 /// Ranges from 1 to <see cref="Efl.Gfx.IFrameController.GetFrameCount"/>. Valid only if <see cref="Efl.Gfx.IFrameController.GetAnimated"/>.</summary>
68 /// <value>The index of current frame.</value>
73 /// <summary>Get the total number of frames of the object, if animated.
74 /// Returns -1 if not animated.</summary>
75 /// <value>The number of frames in the animated object.</value>
79 /// <summary>Get the kind of looping the animated object does.
80 /// This returns the kind of looping the animated object wants to do.
82 /// If it returns <see cref="Efl.Gfx.FrameControllerLoopHint.Loop"/>, you should display frames in a sequence like: 1->2->3->1->2->3->1...
84 /// 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...
86 /// The default type is <see cref="Efl.Gfx.FrameControllerLoopHint.Loop"/>.</summary>
87 /// <value>Loop type of the animated object.</value>
88 Efl.Gfx.FrameControllerLoopHint LoopType {
91 /// <summary>Get the number times the animation of the object loops.
92 /// 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).
94 /// If 0 is returned, then looping should happen indefinitely (no limit to the number of times it loops).</summary>
95 /// <value>The number of loop of an animated object.</value>
100 /// <summary>Efl frame controller of frame based animated object interface.</summary>
101 /// <remarks>This is a <b>BETA</b> class. It can be modified or removed in the future. Do not use it for product development.</remarks>
102 sealed public class IFrameControllerConcrete :
107 /// <summary>Pointer to the native class description.</summary>
108 public override System.IntPtr NativeClass
112 if (((object)this).GetType() == typeof(IFrameControllerConcrete))
114 return GetEflClassStatic();
118 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
123 /// <summary>Subclasses should override this constructor if they are expected to be instantiated from native code.
124 /// Do not call this constructor directly.</summary>
125 /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
126 private IFrameControllerConcrete(ConstructingHandle ch) : base(ch)
130 [System.Runtime.InteropServices.DllImport("libefl.so.1")] internal static extern System.IntPtr
131 efl_gfx_frame_controller_interface_get();
132 /// <summary>Initializes a new instance of the <see cref="IFrameController"/> class.
133 /// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
134 /// <param name="wh">The native pointer to be wrapped.</param>
135 private IFrameControllerConcrete(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
139 /// <summary>Check if an object can be animated (has multiple frames).
140 /// This will be <c>true</c> for animated object for instance but <c>false</c> for a single frame object.</summary>
141 /// <returns><c>true</c> if the object is animated</returns>
142 public bool GetAnimated() {
143 var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_animated_get_ptr.Value.Delegate(this.NativeHandle);
144 Eina.Error.RaiseIfUnhandledException();
147 /// <summary>Index of the current frame of an animated object.
148 /// Ranges from 1 to <see cref="Efl.Gfx.IFrameController.GetFrameCount"/>. Valid only if <see cref="Efl.Gfx.IFrameController.GetAnimated"/>.</summary>
149 /// <returns>The index of current frame.</returns>
150 public int GetFrame() {
151 var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_frame_get_ptr.Value.Delegate(this.NativeHandle);
152 Eina.Error.RaiseIfUnhandledException();
155 /// <summary>Set the frame to current frame of an animated object.</summary>
156 /// <param name="frame_index">The index of current frame.</param>
157 /// <returns>Returns <c>true</c> if the frame index is valid.</returns>
158 public bool SetFrame(int frame_index) {
159 var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_frame_set_ptr.Value.Delegate(this.NativeHandle,frame_index);
160 Eina.Error.RaiseIfUnhandledException();
163 /// <summary>Get the total number of frames of the object, if animated.
164 /// Returns -1 if not animated.</summary>
165 /// <returns>The number of frames in the animated object.</returns>
166 public int GetFrameCount() {
167 var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_frame_count_get_ptr.Value.Delegate(this.NativeHandle);
168 Eina.Error.RaiseIfUnhandledException();
171 /// <summary>Get the kind of looping the animated object does.
172 /// This returns the kind of looping the animated object wants to do.
174 /// If it returns <see cref="Efl.Gfx.FrameControllerLoopHint.Loop"/>, you should display frames in a sequence like: 1->2->3->1->2->3->1...
176 /// 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...
178 /// The default type is <see cref="Efl.Gfx.FrameControllerLoopHint.Loop"/>.</summary>
179 /// <returns>Loop type of the animated object.</returns>
180 public Efl.Gfx.FrameControllerLoopHint GetLoopType() {
181 var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_loop_type_get_ptr.Value.Delegate(this.NativeHandle);
182 Eina.Error.RaiseIfUnhandledException();
185 /// <summary>Get the number times the animation of the object loops.
186 /// 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).
188 /// If 0 is returned, then looping should happen indefinitely (no limit to the number of times it loops).</summary>
189 /// <returns>The number of loop of an animated object.</returns>
190 public int GetLoopCount() {
191 var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_loop_count_get_ptr.Value.Delegate(this.NativeHandle);
192 Eina.Error.RaiseIfUnhandledException();
195 /// <summary>Get the duration of a sequence of frames.
196 /// This returns total duration in seconds that the specified sequence of frames should take.
198 /// 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>
199 /// <param name="start_frame">The first frame, rangers from 1 to <see cref="Efl.Gfx.IFrameController.GetFrameCount"/>.</param>
200 /// <param name="frame_num">Number of frames in the sequence, starts from 0.</param>
201 /// <returns>Duration in seconds</returns>
202 public double GetFrameDuration(int start_frame, int frame_num) {
203 var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_frame_duration_get_ptr.Value.Delegate(this.NativeHandle,start_frame, frame_num);
204 Eina.Error.RaiseIfUnhandledException();
207 /// <summary>Check if an object can be animated (has multiple frames).
208 /// This will be <c>true</c> for animated object for instance but <c>false</c> for a single frame object.</summary>
209 /// <value><c>true</c> if the object is animated</value>
210 public bool Animated {
211 get { return GetAnimated(); }
213 /// <summary>Index of the current frame of an animated object.
214 /// Ranges from 1 to <see cref="Efl.Gfx.IFrameController.GetFrameCount"/>. Valid only if <see cref="Efl.Gfx.IFrameController.GetAnimated"/>.</summary>
215 /// <value>The index of current frame.</value>
217 get { return GetFrame(); }
218 set { SetFrame(value); }
220 /// <summary>Get the total number of frames of the object, if animated.
221 /// Returns -1 if not animated.</summary>
222 /// <value>The number of frames in the animated object.</value>
223 public int FrameCount {
224 get { return GetFrameCount(); }
226 /// <summary>Get the kind of looping the animated object does.
227 /// This returns the kind of looping the animated object wants to do.
229 /// If it returns <see cref="Efl.Gfx.FrameControllerLoopHint.Loop"/>, you should display frames in a sequence like: 1->2->3->1->2->3->1...
231 /// 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...
233 /// The default type is <see cref="Efl.Gfx.FrameControllerLoopHint.Loop"/>.</summary>
234 /// <value>Loop type of the animated object.</value>
235 public Efl.Gfx.FrameControllerLoopHint LoopType {
236 get { return GetLoopType(); }
238 /// <summary>Get the number times the animation of the object loops.
239 /// 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).
241 /// If 0 is returned, then looping should happen indefinitely (no limit to the number of times it loops).</summary>
242 /// <value>The number of loop of an animated object.</value>
243 public int LoopCount {
244 get { return GetLoopCount(); }
246 private static IntPtr GetEflClassStatic()
248 return Efl.Gfx.IFrameControllerConcrete.efl_gfx_frame_controller_interface_get();
250 /// <summary>Wrapper for native methods and virtual method delegates.
251 /// For internal use by generated code only.</summary>
252 public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods
254 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl);
255 /// <summary>Gets the list of Eo operations to override.</summary>
256 /// <returns>The list of Eo operations to be overload.</returns>
257 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
259 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
260 var methods = Efl.Eo.Globals.GetUserMethods(type);
262 if (efl_gfx_frame_controller_animated_get_static_delegate == null)
264 efl_gfx_frame_controller_animated_get_static_delegate = new efl_gfx_frame_controller_animated_get_delegate(animated_get);
267 if (methods.FirstOrDefault(m => m.Name == "GetAnimated") != null)
269 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) });
272 if (efl_gfx_frame_controller_frame_get_static_delegate == null)
274 efl_gfx_frame_controller_frame_get_static_delegate = new efl_gfx_frame_controller_frame_get_delegate(frame_get);
277 if (methods.FirstOrDefault(m => m.Name == "GetFrame") != null)
279 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) });
282 if (efl_gfx_frame_controller_frame_set_static_delegate == null)
284 efl_gfx_frame_controller_frame_set_static_delegate = new efl_gfx_frame_controller_frame_set_delegate(frame_set);
287 if (methods.FirstOrDefault(m => m.Name == "SetFrame") != null)
289 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) });
292 if (efl_gfx_frame_controller_frame_count_get_static_delegate == null)
294 efl_gfx_frame_controller_frame_count_get_static_delegate = new efl_gfx_frame_controller_frame_count_get_delegate(frame_count_get);
297 if (methods.FirstOrDefault(m => m.Name == "GetFrameCount") != null)
299 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) });
302 if (efl_gfx_frame_controller_loop_type_get_static_delegate == null)
304 efl_gfx_frame_controller_loop_type_get_static_delegate = new efl_gfx_frame_controller_loop_type_get_delegate(loop_type_get);
307 if (methods.FirstOrDefault(m => m.Name == "GetLoopType") != null)
309 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) });
312 if (efl_gfx_frame_controller_loop_count_get_static_delegate == null)
314 efl_gfx_frame_controller_loop_count_get_static_delegate = new efl_gfx_frame_controller_loop_count_get_delegate(loop_count_get);
317 if (methods.FirstOrDefault(m => m.Name == "GetLoopCount") != null)
319 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) });
322 if (efl_gfx_frame_controller_frame_duration_get_static_delegate == null)
324 efl_gfx_frame_controller_frame_duration_get_static_delegate = new efl_gfx_frame_controller_frame_duration_get_delegate(frame_duration_get);
327 if (methods.FirstOrDefault(m => m.Name == "GetFrameDuration") != null)
329 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) });
334 /// <summary>Returns the Eo class for the native methods of this class.</summary>
335 /// <returns>The native class pointer.</returns>
336 public override IntPtr GetEflClass()
338 return Efl.Gfx.IFrameControllerConcrete.efl_gfx_frame_controller_interface_get();
341 #pragma warning disable CA1707, CS1591, SA1300, SA1600
343 [return: MarshalAs(UnmanagedType.U1)]
344 private delegate bool efl_gfx_frame_controller_animated_get_delegate(System.IntPtr obj, System.IntPtr pd);
346 [return: MarshalAs(UnmanagedType.U1)]
347 public delegate bool efl_gfx_frame_controller_animated_get_api_delegate(System.IntPtr obj);
349 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");
351 private static bool animated_get(System.IntPtr obj, System.IntPtr pd)
353 Eina.Log.Debug("function efl_gfx_frame_controller_animated_get was called");
354 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
357 bool _ret_var = default(bool);
360 _ret_var = ((IFrameController)ws.Target).GetAnimated();
364 Eina.Log.Warning($"Callback error: {e.ToString()}");
365 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
373 return efl_gfx_frame_controller_animated_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
377 private static efl_gfx_frame_controller_animated_get_delegate efl_gfx_frame_controller_animated_get_static_delegate;
380 private delegate int efl_gfx_frame_controller_frame_get_delegate(System.IntPtr obj, System.IntPtr pd);
383 public delegate int efl_gfx_frame_controller_frame_get_api_delegate(System.IntPtr obj);
385 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");
387 private static int frame_get(System.IntPtr obj, System.IntPtr pd)
389 Eina.Log.Debug("function efl_gfx_frame_controller_frame_get was called");
390 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
393 int _ret_var = default(int);
396 _ret_var = ((IFrameController)ws.Target).GetFrame();
400 Eina.Log.Warning($"Callback error: {e.ToString()}");
401 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
409 return efl_gfx_frame_controller_frame_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
413 private static efl_gfx_frame_controller_frame_get_delegate efl_gfx_frame_controller_frame_get_static_delegate;
415 [return: MarshalAs(UnmanagedType.U1)]
416 private delegate bool efl_gfx_frame_controller_frame_set_delegate(System.IntPtr obj, System.IntPtr pd, int frame_index);
418 [return: MarshalAs(UnmanagedType.U1)]
419 public delegate bool efl_gfx_frame_controller_frame_set_api_delegate(System.IntPtr obj, int frame_index);
421 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");
423 private static bool frame_set(System.IntPtr obj, System.IntPtr pd, int frame_index)
425 Eina.Log.Debug("function efl_gfx_frame_controller_frame_set was called");
426 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
429 bool _ret_var = default(bool);
432 _ret_var = ((IFrameController)ws.Target).SetFrame(frame_index);
436 Eina.Log.Warning($"Callback error: {e.ToString()}");
437 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
445 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);
449 private static efl_gfx_frame_controller_frame_set_delegate efl_gfx_frame_controller_frame_set_static_delegate;
452 private delegate int efl_gfx_frame_controller_frame_count_get_delegate(System.IntPtr obj, System.IntPtr pd);
455 public delegate int efl_gfx_frame_controller_frame_count_get_api_delegate(System.IntPtr obj);
457 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");
459 private static int frame_count_get(System.IntPtr obj, System.IntPtr pd)
461 Eina.Log.Debug("function efl_gfx_frame_controller_frame_count_get was called");
462 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
465 int _ret_var = default(int);
468 _ret_var = ((IFrameController)ws.Target).GetFrameCount();
472 Eina.Log.Warning($"Callback error: {e.ToString()}");
473 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
481 return efl_gfx_frame_controller_frame_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
485 private static efl_gfx_frame_controller_frame_count_get_delegate efl_gfx_frame_controller_frame_count_get_static_delegate;
488 private delegate Efl.Gfx.FrameControllerLoopHint efl_gfx_frame_controller_loop_type_get_delegate(System.IntPtr obj, System.IntPtr pd);
491 public delegate Efl.Gfx.FrameControllerLoopHint efl_gfx_frame_controller_loop_type_get_api_delegate(System.IntPtr obj);
493 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");
495 private static Efl.Gfx.FrameControllerLoopHint loop_type_get(System.IntPtr obj, System.IntPtr pd)
497 Eina.Log.Debug("function efl_gfx_frame_controller_loop_type_get was called");
498 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
501 Efl.Gfx.FrameControllerLoopHint _ret_var = default(Efl.Gfx.FrameControllerLoopHint);
504 _ret_var = ((IFrameController)ws.Target).GetLoopType();
508 Eina.Log.Warning($"Callback error: {e.ToString()}");
509 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
517 return efl_gfx_frame_controller_loop_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
521 private static efl_gfx_frame_controller_loop_type_get_delegate efl_gfx_frame_controller_loop_type_get_static_delegate;
524 private delegate int efl_gfx_frame_controller_loop_count_get_delegate(System.IntPtr obj, System.IntPtr pd);
527 public delegate int efl_gfx_frame_controller_loop_count_get_api_delegate(System.IntPtr obj);
529 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");
531 private static int loop_count_get(System.IntPtr obj, System.IntPtr pd)
533 Eina.Log.Debug("function efl_gfx_frame_controller_loop_count_get was called");
534 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
537 int _ret_var = default(int);
540 _ret_var = ((IFrameController)ws.Target).GetLoopCount();
544 Eina.Log.Warning($"Callback error: {e.ToString()}");
545 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
553 return efl_gfx_frame_controller_loop_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
557 private static efl_gfx_frame_controller_loop_count_get_delegate efl_gfx_frame_controller_loop_count_get_static_delegate;
560 private delegate double efl_gfx_frame_controller_frame_duration_get_delegate(System.IntPtr obj, System.IntPtr pd, int start_frame, int frame_num);
563 public delegate double efl_gfx_frame_controller_frame_duration_get_api_delegate(System.IntPtr obj, int start_frame, int frame_num);
565 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");
567 private static double frame_duration_get(System.IntPtr obj, System.IntPtr pd, int start_frame, int frame_num)
569 Eina.Log.Debug("function efl_gfx_frame_controller_frame_duration_get was called");
570 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
573 double _ret_var = default(double);
576 _ret_var = ((IFrameController)ws.Target).GetFrameDuration(start_frame, frame_num);
580 Eina.Log.Warning($"Callback error: {e.ToString()}");
581 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
589 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);
593 private static efl_gfx_frame_controller_frame_duration_get_delegate efl_gfx_frame_controller_frame_duration_get_static_delegate;
595 #pragma warning restore CA1707, CS1591, SA1300, SA1600
604 #pragma warning disable CS1591
605 public static class Efl_GfxIFrameControllerConcrete_ExtensionMethods {
607 public static Efl.BindableProperty<int> Frame<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Gfx.IFrameController, T>magic = null) where T : Efl.Gfx.IFrameController {
608 return new Efl.BindableProperty<int>("frame", fac);
616 #pragma warning restore CS1591
622 /// <summary>Frame loop modes</summary>
623 [Efl.Eo.BindingEntity]
624 public enum FrameControllerLoopHint
626 /// <summary>No looping order specified.</summary>
628 /// <summary>Standard loop: 1->2->3->1->2->3->1</summary>
630 /// <summary>Ping-pong bouncing loop: 1->2->3->2->1->2->3->1</summary>