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 UI zoom interface</summary>
13 [Efl.Ui.IZoomConcrete.NativeMethods]
14 public interface IZoom :
15 Efl.Eo.IWrapper, IDisposable
17 /// <summary>This sets the zoom animation state to on or off for zoomable. The default is off. When <c>paused</c> is <c>true</c>, it will stop zooming using animation on zoom level changes and change instantly, stopping any existing animations that are running.</summary>
18 /// <returns>The paused state.</returns>
19 bool GetZoomAnimation();
20 /// <summary>This sets the zoom animation state to on or off for zoomable. The default is off. When <c>paused</c> is <c>true</c>, it will stop zooming using animation on zoom level changes and change instantly, stopping any existing animations that are running.</summary>
21 /// <param name="paused">The paused state.</param>
22 void SetZoomAnimation(bool paused);
23 /// <summary>Get the zoom level of the photo
24 /// This returns the current zoom level of the zoomable object. Note that if you set the fill mode to other than #EFL_UI_ZOOM_MODE_MANUAL (which is the default), the zoom level may be changed at any time by the zoomable object itself to account for photo size and zoomable viewport size.</summary>
25 /// <returns>The zoom level to set</returns>
26 double GetZoomLevel();
27 /// <summary>Set the zoom level of the photo
28 /// This sets the zoom level. If <c>zoom</c> is 1, it means no zoom. If it's smaller than 1, it means zoom in. If it's bigger than 1, it means zoom out. For example, <c>zoom</c> 1 will be 1:1 pixel for pixel. <c>zoom</c> 2 will be 2:1 (that is 2x2 photo pixels will display as 1 on-screen pixel) which is a zoom out. 4:1 will be 4x4 photo pixels as 1 screen pixel, and so on. The <c>zoom</c> parameter must be greater than 0. It is suggested to stick to powers of 2. (1, 2, 4, 8, 16, 32, etc.).</summary>
29 /// <param name="zoom">The zoom level to set</param>
30 void SetZoomLevel(double zoom);
31 /// <summary>Get the zoom mode
32 /// This gets the current zoom mode of the zoomable object.</summary>
33 /// <returns>The zoom mode.</returns>
34 Efl.Ui.ZoomMode GetZoomMode();
35 /// <summary>Set the zoom mode
36 /// This sets the zoom mode to manual or one of several automatic levels. Manual (EFL_UI_ZOOM_MODE_MANUAL) means that zoom is set manually by <see cref="Efl.Ui.IZoom.SetZoomLevel"/> and will stay at that level until changed by code or until zoom mode is changed. This is the default mode. The Automatic modes will allow the zoomable object to automatically adjust zoom mode based on properties.
38 /// #EFL_UI_ZOOM_MODE_AUTO_FIT) will adjust zoom so the photo fits EXACTLY inside the scroll frame with no pixels outside this region. #EFL_UI_ZOOM_MODE_AUTO_FILL will be similar but ensure no pixels within the frame are left unfilled.</summary>
39 /// <param name="mode">The zoom mode.</param>
40 void SetZoomMode(Efl.Ui.ZoomMode mode);
41 /// <summary>Called when zooming started</summary>
42 event EventHandler ZoomStartEvt;
43 /// <summary>Called when zooming stopped</summary>
44 event EventHandler ZoomStopEvt;
45 /// <summary>Called when zooming changed</summary>
46 event EventHandler ZoomChangeEvt;
47 /// <summary>This sets the zoom animation state to on or off for zoomable. The default is off. When <c>paused</c> is <c>true</c>, it will stop zooming using animation on zoom level changes and change instantly, stopping any existing animations that are running.</summary>
48 /// <value>The paused state.</value>
53 /// <summary>Get the zoom level of the photo
54 /// This returns the current zoom level of the zoomable object. Note that if you set the fill mode to other than #EFL_UI_ZOOM_MODE_MANUAL (which is the default), the zoom level may be changed at any time by the zoomable object itself to account for photo size and zoomable viewport size.</summary>
55 /// <value>The zoom level to set</value>
60 /// <summary>Get the zoom mode
61 /// This gets the current zoom mode of the zoomable object.</summary>
62 /// <value>The zoom mode.</value>
63 Efl.Ui.ZoomMode ZoomMode {
68 /// <summary>Efl UI zoom interface</summary>
69 sealed public class IZoomConcrete :
74 ///<summary>Pointer to the native class description.</summary>
75 public override System.IntPtr NativeClass
79 if (((object)this).GetType() == typeof(IZoomConcrete))
81 return GetEflClassStatic();
85 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
90 [System.Runtime.InteropServices.DllImport("libefl.so.1")] internal static extern System.IntPtr
91 efl_ui_zoom_interface_get();
92 /// <summary>Initializes a new instance of the <see cref="IZoom"/> class.
93 /// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
94 private IZoomConcrete(System.IntPtr raw) : base(raw)
98 /// <summary>Called when zooming started</summary>
99 public event EventHandler ZoomStartEvt
105 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
107 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
110 EventArgs args = EventArgs.Empty;
113 value?.Invoke(obj, args);
117 Eina.Log.Error(e.ToString());
118 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
123 string key = "_EFL_UI_EVENT_ZOOM_START";
124 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
132 string key = "_EFL_UI_EVENT_ZOOM_START";
133 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
137 ///<summary>Method to raise event ZoomStartEvt.</summary>
138 public void OnZoomStartEvt(EventArgs e)
140 var key = "_EFL_UI_EVENT_ZOOM_START";
141 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
142 if (desc == IntPtr.Zero)
144 Eina.Log.Error($"Failed to get native event {key}");
148 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
150 /// <summary>Called when zooming stopped</summary>
151 public event EventHandler ZoomStopEvt
157 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
159 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
162 EventArgs args = EventArgs.Empty;
165 value?.Invoke(obj, args);
169 Eina.Log.Error(e.ToString());
170 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
175 string key = "_EFL_UI_EVENT_ZOOM_STOP";
176 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
184 string key = "_EFL_UI_EVENT_ZOOM_STOP";
185 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
189 ///<summary>Method to raise event ZoomStopEvt.</summary>
190 public void OnZoomStopEvt(EventArgs e)
192 var key = "_EFL_UI_EVENT_ZOOM_STOP";
193 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
194 if (desc == IntPtr.Zero)
196 Eina.Log.Error($"Failed to get native event {key}");
200 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
202 /// <summary>Called when zooming changed</summary>
203 public event EventHandler ZoomChangeEvt
209 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
211 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
214 EventArgs args = EventArgs.Empty;
217 value?.Invoke(obj, args);
221 Eina.Log.Error(e.ToString());
222 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
227 string key = "_EFL_UI_EVENT_ZOOM_CHANGE";
228 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
236 string key = "_EFL_UI_EVENT_ZOOM_CHANGE";
237 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
241 ///<summary>Method to raise event ZoomChangeEvt.</summary>
242 public void OnZoomChangeEvt(EventArgs e)
244 var key = "_EFL_UI_EVENT_ZOOM_CHANGE";
245 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
246 if (desc == IntPtr.Zero)
248 Eina.Log.Error($"Failed to get native event {key}");
252 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
254 /// <summary>This sets the zoom animation state to on or off for zoomable. The default is off. When <c>paused</c> is <c>true</c>, it will stop zooming using animation on zoom level changes and change instantly, stopping any existing animations that are running.</summary>
255 /// <returns>The paused state.</returns>
256 public bool GetZoomAnimation() {
257 var _ret_var = Efl.Ui.IZoomConcrete.NativeMethods.efl_ui_zoom_animation_get_ptr.Value.Delegate(this.NativeHandle);
258 Eina.Error.RaiseIfUnhandledException();
261 /// <summary>This sets the zoom animation state to on or off for zoomable. The default is off. When <c>paused</c> is <c>true</c>, it will stop zooming using animation on zoom level changes and change instantly, stopping any existing animations that are running.</summary>
262 /// <param name="paused">The paused state.</param>
263 public void SetZoomAnimation(bool paused) {
264 Efl.Ui.IZoomConcrete.NativeMethods.efl_ui_zoom_animation_set_ptr.Value.Delegate(this.NativeHandle,paused);
265 Eina.Error.RaiseIfUnhandledException();
267 /// <summary>Get the zoom level of the photo
268 /// This returns the current zoom level of the zoomable object. Note that if you set the fill mode to other than #EFL_UI_ZOOM_MODE_MANUAL (which is the default), the zoom level may be changed at any time by the zoomable object itself to account for photo size and zoomable viewport size.</summary>
269 /// <returns>The zoom level to set</returns>
270 public double GetZoomLevel() {
271 var _ret_var = Efl.Ui.IZoomConcrete.NativeMethods.efl_ui_zoom_level_get_ptr.Value.Delegate(this.NativeHandle);
272 Eina.Error.RaiseIfUnhandledException();
275 /// <summary>Set the zoom level of the photo
276 /// This sets the zoom level. If <c>zoom</c> is 1, it means no zoom. If it's smaller than 1, it means zoom in. If it's bigger than 1, it means zoom out. For example, <c>zoom</c> 1 will be 1:1 pixel for pixel. <c>zoom</c> 2 will be 2:1 (that is 2x2 photo pixels will display as 1 on-screen pixel) which is a zoom out. 4:1 will be 4x4 photo pixels as 1 screen pixel, and so on. The <c>zoom</c> parameter must be greater than 0. It is suggested to stick to powers of 2. (1, 2, 4, 8, 16, 32, etc.).</summary>
277 /// <param name="zoom">The zoom level to set</param>
278 public void SetZoomLevel(double zoom) {
279 Efl.Ui.IZoomConcrete.NativeMethods.efl_ui_zoom_level_set_ptr.Value.Delegate(this.NativeHandle,zoom);
280 Eina.Error.RaiseIfUnhandledException();
282 /// <summary>Get the zoom mode
283 /// This gets the current zoom mode of the zoomable object.</summary>
284 /// <returns>The zoom mode.</returns>
285 public Efl.Ui.ZoomMode GetZoomMode() {
286 var _ret_var = Efl.Ui.IZoomConcrete.NativeMethods.efl_ui_zoom_mode_get_ptr.Value.Delegate(this.NativeHandle);
287 Eina.Error.RaiseIfUnhandledException();
290 /// <summary>Set the zoom mode
291 /// This sets the zoom mode to manual or one of several automatic levels. Manual (EFL_UI_ZOOM_MODE_MANUAL) means that zoom is set manually by <see cref="Efl.Ui.IZoom.SetZoomLevel"/> and will stay at that level until changed by code or until zoom mode is changed. This is the default mode. The Automatic modes will allow the zoomable object to automatically adjust zoom mode based on properties.
293 /// #EFL_UI_ZOOM_MODE_AUTO_FIT) will adjust zoom so the photo fits EXACTLY inside the scroll frame with no pixels outside this region. #EFL_UI_ZOOM_MODE_AUTO_FILL will be similar but ensure no pixels within the frame are left unfilled.</summary>
294 /// <param name="mode">The zoom mode.</param>
295 public void SetZoomMode(Efl.Ui.ZoomMode mode) {
296 Efl.Ui.IZoomConcrete.NativeMethods.efl_ui_zoom_mode_set_ptr.Value.Delegate(this.NativeHandle,mode);
297 Eina.Error.RaiseIfUnhandledException();
299 /// <summary>This sets the zoom animation state to on or off for zoomable. The default is off. When <c>paused</c> is <c>true</c>, it will stop zooming using animation on zoom level changes and change instantly, stopping any existing animations that are running.</summary>
300 /// <value>The paused state.</value>
301 public bool ZoomAnimation {
302 get { return GetZoomAnimation(); }
303 set { SetZoomAnimation(value); }
305 /// <summary>Get the zoom level of the photo
306 /// This returns the current zoom level of the zoomable object. Note that if you set the fill mode to other than #EFL_UI_ZOOM_MODE_MANUAL (which is the default), the zoom level may be changed at any time by the zoomable object itself to account for photo size and zoomable viewport size.</summary>
307 /// <value>The zoom level to set</value>
308 public double ZoomLevel {
309 get { return GetZoomLevel(); }
310 set { SetZoomLevel(value); }
312 /// <summary>Get the zoom mode
313 /// This gets the current zoom mode of the zoomable object.</summary>
314 /// <value>The zoom mode.</value>
315 public Efl.Ui.ZoomMode ZoomMode {
316 get { return GetZoomMode(); }
317 set { SetZoomMode(value); }
319 private static IntPtr GetEflClassStatic()
321 return Efl.Ui.IZoomConcrete.efl_ui_zoom_interface_get();
323 /// <summary>Wrapper for native methods and virtual method delegates.
324 /// For internal use by generated code only.</summary>
325 public class NativeMethods : Efl.Eo.NativeClass
327 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl);
328 /// <summary>Gets the list of Eo operations to override.</summary>
329 /// <returns>The list of Eo operations to be overload.</returns>
330 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
332 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
333 var methods = Efl.Eo.Globals.GetUserMethods(type);
335 if (efl_ui_zoom_animation_get_static_delegate == null)
337 efl_ui_zoom_animation_get_static_delegate = new efl_ui_zoom_animation_get_delegate(zoom_animation_get);
340 if (methods.FirstOrDefault(m => m.Name == "GetZoomAnimation") != null)
342 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_zoom_animation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_animation_get_static_delegate) });
345 if (efl_ui_zoom_animation_set_static_delegate == null)
347 efl_ui_zoom_animation_set_static_delegate = new efl_ui_zoom_animation_set_delegate(zoom_animation_set);
350 if (methods.FirstOrDefault(m => m.Name == "SetZoomAnimation") != null)
352 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_zoom_animation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_animation_set_static_delegate) });
355 if (efl_ui_zoom_level_get_static_delegate == null)
357 efl_ui_zoom_level_get_static_delegate = new efl_ui_zoom_level_get_delegate(zoom_level_get);
360 if (methods.FirstOrDefault(m => m.Name == "GetZoomLevel") != null)
362 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_zoom_level_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_level_get_static_delegate) });
365 if (efl_ui_zoom_level_set_static_delegate == null)
367 efl_ui_zoom_level_set_static_delegate = new efl_ui_zoom_level_set_delegate(zoom_level_set);
370 if (methods.FirstOrDefault(m => m.Name == "SetZoomLevel") != null)
372 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_zoom_level_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_level_set_static_delegate) });
375 if (efl_ui_zoom_mode_get_static_delegate == null)
377 efl_ui_zoom_mode_get_static_delegate = new efl_ui_zoom_mode_get_delegate(zoom_mode_get);
380 if (methods.FirstOrDefault(m => m.Name == "GetZoomMode") != null)
382 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_zoom_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_mode_get_static_delegate) });
385 if (efl_ui_zoom_mode_set_static_delegate == null)
387 efl_ui_zoom_mode_set_static_delegate = new efl_ui_zoom_mode_set_delegate(zoom_mode_set);
390 if (methods.FirstOrDefault(m => m.Name == "SetZoomMode") != null)
392 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_zoom_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_mode_set_static_delegate) });
397 /// <summary>Returns the Eo class for the native methods of this class.</summary>
398 /// <returns>The native class pointer.</returns>
399 public override IntPtr GetEflClass()
401 return Efl.Ui.IZoomConcrete.efl_ui_zoom_interface_get();
404 #pragma warning disable CA1707, CS1591, SA1300, SA1600
406 [return: MarshalAs(UnmanagedType.U1)]
407 private delegate bool efl_ui_zoom_animation_get_delegate(System.IntPtr obj, System.IntPtr pd);
409 [return: MarshalAs(UnmanagedType.U1)]
410 public delegate bool efl_ui_zoom_animation_get_api_delegate(System.IntPtr obj);
412 public static Efl.Eo.FunctionWrapper<efl_ui_zoom_animation_get_api_delegate> efl_ui_zoom_animation_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_zoom_animation_get_api_delegate>(Module, "efl_ui_zoom_animation_get");
414 private static bool zoom_animation_get(System.IntPtr obj, System.IntPtr pd)
416 Eina.Log.Debug("function efl_ui_zoom_animation_get was called");
417 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
420 bool _ret_var = default(bool);
423 _ret_var = ((IZoom)ws.Target).GetZoomAnimation();
427 Eina.Log.Warning($"Callback error: {e.ToString()}");
428 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
436 return efl_ui_zoom_animation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
440 private static efl_ui_zoom_animation_get_delegate efl_ui_zoom_animation_get_static_delegate;
443 private delegate void efl_ui_zoom_animation_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool paused);
446 public delegate void efl_ui_zoom_animation_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool paused);
448 public static Efl.Eo.FunctionWrapper<efl_ui_zoom_animation_set_api_delegate> efl_ui_zoom_animation_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_zoom_animation_set_api_delegate>(Module, "efl_ui_zoom_animation_set");
450 private static void zoom_animation_set(System.IntPtr obj, System.IntPtr pd, bool paused)
452 Eina.Log.Debug("function efl_ui_zoom_animation_set was called");
453 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
459 ((IZoom)ws.Target).SetZoomAnimation(paused);
463 Eina.Log.Warning($"Callback error: {e.ToString()}");
464 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
471 efl_ui_zoom_animation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), paused);
475 private static efl_ui_zoom_animation_set_delegate efl_ui_zoom_animation_set_static_delegate;
478 private delegate double efl_ui_zoom_level_get_delegate(System.IntPtr obj, System.IntPtr pd);
481 public delegate double efl_ui_zoom_level_get_api_delegate(System.IntPtr obj);
483 public static Efl.Eo.FunctionWrapper<efl_ui_zoom_level_get_api_delegate> efl_ui_zoom_level_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_zoom_level_get_api_delegate>(Module, "efl_ui_zoom_level_get");
485 private static double zoom_level_get(System.IntPtr obj, System.IntPtr pd)
487 Eina.Log.Debug("function efl_ui_zoom_level_get was called");
488 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
491 double _ret_var = default(double);
494 _ret_var = ((IZoom)ws.Target).GetZoomLevel();
498 Eina.Log.Warning($"Callback error: {e.ToString()}");
499 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
507 return efl_ui_zoom_level_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
511 private static efl_ui_zoom_level_get_delegate efl_ui_zoom_level_get_static_delegate;
514 private delegate void efl_ui_zoom_level_set_delegate(System.IntPtr obj, System.IntPtr pd, double zoom);
517 public delegate void efl_ui_zoom_level_set_api_delegate(System.IntPtr obj, double zoom);
519 public static Efl.Eo.FunctionWrapper<efl_ui_zoom_level_set_api_delegate> efl_ui_zoom_level_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_zoom_level_set_api_delegate>(Module, "efl_ui_zoom_level_set");
521 private static void zoom_level_set(System.IntPtr obj, System.IntPtr pd, double zoom)
523 Eina.Log.Debug("function efl_ui_zoom_level_set was called");
524 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
530 ((IZoom)ws.Target).SetZoomLevel(zoom);
534 Eina.Log.Warning($"Callback error: {e.ToString()}");
535 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
542 efl_ui_zoom_level_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), zoom);
546 private static efl_ui_zoom_level_set_delegate efl_ui_zoom_level_set_static_delegate;
549 private delegate Efl.Ui.ZoomMode efl_ui_zoom_mode_get_delegate(System.IntPtr obj, System.IntPtr pd);
552 public delegate Efl.Ui.ZoomMode efl_ui_zoom_mode_get_api_delegate(System.IntPtr obj);
554 public static Efl.Eo.FunctionWrapper<efl_ui_zoom_mode_get_api_delegate> efl_ui_zoom_mode_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_zoom_mode_get_api_delegate>(Module, "efl_ui_zoom_mode_get");
556 private static Efl.Ui.ZoomMode zoom_mode_get(System.IntPtr obj, System.IntPtr pd)
558 Eina.Log.Debug("function efl_ui_zoom_mode_get was called");
559 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
562 Efl.Ui.ZoomMode _ret_var = default(Efl.Ui.ZoomMode);
565 _ret_var = ((IZoom)ws.Target).GetZoomMode();
569 Eina.Log.Warning($"Callback error: {e.ToString()}");
570 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
578 return efl_ui_zoom_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
582 private static efl_ui_zoom_mode_get_delegate efl_ui_zoom_mode_get_static_delegate;
585 private delegate void efl_ui_zoom_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ZoomMode mode);
588 public delegate void efl_ui_zoom_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.ZoomMode mode);
590 public static Efl.Eo.FunctionWrapper<efl_ui_zoom_mode_set_api_delegate> efl_ui_zoom_mode_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_zoom_mode_set_api_delegate>(Module, "efl_ui_zoom_mode_set");
592 private static void zoom_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ZoomMode mode)
594 Eina.Log.Debug("function efl_ui_zoom_mode_set was called");
595 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
601 ((IZoom)ws.Target).SetZoomMode(mode);
605 Eina.Log.Warning($"Callback error: {e.ToString()}");
606 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
613 efl_ui_zoom_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode);
617 private static efl_ui_zoom_mode_set_delegate efl_ui_zoom_mode_set_static_delegate;
619 #pragma warning restore CA1707, CS1591, SA1300, SA1600
631 /// <summary>Types of zoom available.</summary>
634 /// <summary>Zoom controlled normally by efl_ui_zoom_set</summary>
636 /// <summary>Zoom until photo fits in zoomable object</summary>
638 /// <summary>Zoom until photo fills zoomable object</summary>
640 /// <summary>Zoom in until photo fits in zoomable object</summary>
642 /// <summary>Sentinel value to indicate last enum field during iteration</summary>