#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; using System.Threading; using System.ComponentModel; namespace Efl { namespace Ui { /// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ImageZoomableDownloadProgressEvt_Args : EventArgs { /// Actual event payload. /// Called when photocam download progress updated public Elm.Photocam.Progress arg { get; set; } } /// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ImageZoomableDownloadErrorEvt_Args : EventArgs { /// Actual event payload. /// Called when photocam download failed public Elm.Photocam.Error arg { get; set; } } /// Elementary Image Zoomable class /// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.ImageZoomable.NativeMethods] [Efl.Eo.BindingEntity] public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollableInteractive, Efl.Ui.IScrollbar, Efl.Ui.IZoom { /// Pointer to the native class description. public override System.IntPtr NativeClass { get { if (((object)this).GetType() == typeof(ImageZoomable)) { return GetEflClassStatic(); } else { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; } } } [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_image_zoomable_class_get(); /// Initializes a new instance of the class. /// Parent instance. /// The widget style to use. See public ImageZoomable(Efl.Object parent , System.String style = null) : base(efl_ui_image_zoomable_class_get(), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); } FinishInstantiation(); } /// Subclasses should override this constructor if they are expected to be instantiated from native code. /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected ImageZoomable(ConstructingHandle ch) : base(ch) { } /// Initializes a new instance of the class. /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. /// The native pointer to be wrapped. protected ImageZoomable(Efl.Eo.Globals.WrappingHandle wh) : base(wh) { } /// Initializes a new instance of the class. /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. /// The pointer to the base native Eo class. /// The Efl.Object parent of this instance. protected ImageZoomable(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) { } /// Called when photocam got pressed public event EventHandler PressEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_PRESS"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_PRESS"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event PressEvt. public void OnPressEvt(EventArgs e) { var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_PRESS"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when photocam loading started public event EventHandler LoadEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOAD"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOAD"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event LoadEvt. public void OnLoadEvt(EventArgs e) { var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOAD"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when photocam loading finished public event EventHandler LoadedEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOADED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOADED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event LoadedEvt. public void OnLoadedEvt(EventArgs e) { var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOADED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when photocal detail loading started public event EventHandler LoadDetailEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOAD_DETAIL"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOAD_DETAIL"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event LoadDetailEvt. public void OnLoadDetailEvt(EventArgs e) { var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOAD_DETAIL"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when photocam detail loading finished public event EventHandler LoadedDetailEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOADED_DETAIL"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOADED_DETAIL"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event LoadedDetailEvt. public void OnLoadedDetailEvt(EventArgs e) { var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOADED_DETAIL"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when photocam download started public event EventHandler DownloadStartEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_START"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_START"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event DownloadStartEvt. public void OnDownloadStartEvt(EventArgs e) { var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_START"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when photocam download progress updated /// public event EventHandler DownloadProgressEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { Efl.Ui.ImageZoomableDownloadProgressEvt_Args args = new Efl.Ui.ImageZoomableDownloadProgressEvt_Args(); args.arg = (Elm.Photocam.Progress)evt.Info; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_PROGRESS"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_PROGRESS"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event DownloadProgressEvt. public void OnDownloadProgressEvt(Efl.Ui.ImageZoomableDownloadProgressEvt_Args e) { var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_PROGRESS"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); try { Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } finally { Marshal.FreeHGlobal(info); } } /// Called when photocam download finished public event EventHandler DownloadDoneEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_DONE"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_DONE"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event DownloadDoneEvt. public void OnDownloadDoneEvt(EventArgs e) { var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_DONE"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when photocam download failed /// public event EventHandler DownloadErrorEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { Efl.Ui.ImageZoomableDownloadErrorEvt_Args args = new Efl.Ui.ImageZoomableDownloadErrorEvt_Args(); args.arg = (Elm.Photocam.Error)evt.Info; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_ERROR"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_ERROR"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event DownloadErrorEvt. public void OnDownloadErrorEvt(Efl.Ui.ImageZoomableDownloadErrorEvt_Args e) { var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_ERROR"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); try { Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } finally { Marshal.FreeHGlobal(info); } } /// Called when scroll operation starts public event EventHandler ScrollStartEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_EVENT_SCROLL_START"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_EVENT_SCROLL_START"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event ScrollStartEvt. public void OnScrollStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_START"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when scrolling public event EventHandler ScrollEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_EVENT_SCROLL"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_EVENT_SCROLL"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event ScrollEvt. public void OnScrollEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when scroll operation stops public event EventHandler ScrollStopEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_EVENT_SCROLL_STOP"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_EVENT_SCROLL_STOP"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event ScrollStopEvt. public void OnScrollStopEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_STOP"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when scrolling upwards public event EventHandler ScrollUpEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_EVENT_SCROLL_UP"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_EVENT_SCROLL_UP"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event ScrollUpEvt. public void OnScrollUpEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_UP"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when scrolling downwards public event EventHandler ScrollDownEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_EVENT_SCROLL_DOWN"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_EVENT_SCROLL_DOWN"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event ScrollDownEvt. public void OnScrollDownEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_DOWN"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when scrolling left public event EventHandler ScrollLeftEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_EVENT_SCROLL_LEFT"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_EVENT_SCROLL_LEFT"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event ScrollLeftEvt. public void OnScrollLeftEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_LEFT"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when scrolling right public event EventHandler ScrollRightEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event ScrollRightEvt. public void OnScrollRightEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_RIGHT"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when hitting the top edge public event EventHandler EdgeUpEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_EVENT_EDGE_UP"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_EVENT_EDGE_UP"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event EdgeUpEvt. public void OnEdgeUpEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_UP"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when hitting the bottom edge public event EventHandler EdgeDownEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_EVENT_EDGE_DOWN"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_EVENT_EDGE_DOWN"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event EdgeDownEvt. public void OnEdgeDownEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_DOWN"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when hitting the left edge public event EventHandler EdgeLeftEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_EVENT_EDGE_LEFT"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_EVENT_EDGE_LEFT"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event EdgeLeftEvt. public void OnEdgeLeftEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_LEFT"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when hitting the right edge public event EventHandler EdgeRightEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_EVENT_EDGE_RIGHT"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_EVENT_EDGE_RIGHT"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event EdgeRightEvt. public void OnEdgeRightEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_RIGHT"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when scroll animation starts public event EventHandler ScrollAnimStartEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event ScrollAnimStartEvt. public void OnScrollAnimStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when scroll animation stopps public event EventHandler ScrollAnimStopEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event ScrollAnimStopEvt. public void OnScrollAnimStopEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when scroll drag starts public event EventHandler ScrollDragStartEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event ScrollDragStartEvt. public void OnScrollDragStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when scroll drag stops public event EventHandler ScrollDragStopEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event ScrollDragStopEvt. public void OnScrollDragStopEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when bar is pressed. /// public event EventHandler BarPressEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { Efl.Ui.IScrollbarBarPressEvt_Args args = new Efl.Ui.IScrollbarBarPressEvt_Args(); args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event BarPressEvt. public void OnBarPressEvt(Efl.Ui.IScrollbarBarPressEvt_Args e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); try { Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } finally { Marshal.FreeHGlobal(info); } } /// Called when bar is unpressed. /// public event EventHandler BarUnpressEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { Efl.Ui.IScrollbarBarUnpressEvt_Args args = new Efl.Ui.IScrollbarBarUnpressEvt_Args(); args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event BarUnpressEvt. public void OnBarUnpressEvt(Efl.Ui.IScrollbarBarUnpressEvt_Args e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); try { Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } finally { Marshal.FreeHGlobal(info); } } /// Called when bar is dragged. /// public event EventHandler BarDragEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { Efl.Ui.IScrollbarBarDragEvt_Args args = new Efl.Ui.IScrollbarBarDragEvt_Args(); args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event BarDragEvt. public void OnBarDragEvt(Efl.Ui.IScrollbarBarDragEvt_Args e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); try { Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } finally { Marshal.FreeHGlobal(info); } } /// Called when bar size is changed. public event EventHandler BarSizeChangedEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event BarSizeChangedEvt. public void OnBarSizeChangedEvt(EventArgs e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when bar position is changed. public event EventHandler BarPosChangedEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event BarPosChangedEvt. public void OnBarPosChangedEvt(EventArgs e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Callend when bar is shown. /// public event EventHandler BarShowEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { Efl.Ui.IScrollbarBarShowEvt_Args args = new Efl.Ui.IScrollbarBarShowEvt_Args(); args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event BarShowEvt. public void OnBarShowEvt(Efl.Ui.IScrollbarBarShowEvt_Args e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); try { Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } finally { Marshal.FreeHGlobal(info); } } /// Called when bar is hidden. /// public event EventHandler BarHideEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { Efl.Ui.IScrollbarBarHideEvt_Args args = new Efl.Ui.IScrollbarBarHideEvt_Args(); args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event BarHideEvt. public void OnBarHideEvt(Efl.Ui.IScrollbarBarHideEvt_Args e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); try { Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } finally { Marshal.FreeHGlobal(info); } } /// Called when zooming started public event EventHandler ZoomStartEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_EVENT_ZOOM_START"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_EVENT_ZOOM_START"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event ZoomStartEvt. public void OnZoomStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_ZOOM_START"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when zooming stopped public event EventHandler ZoomStopEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_EVENT_ZOOM_STOP"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_EVENT_ZOOM_STOP"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event ZoomStopEvt. public void OnZoomStopEvt(EventArgs e) { var key = "_EFL_UI_EVENT_ZOOM_STOP"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when zooming changed public event EventHandler ZoomChangeEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_UI_EVENT_ZOOM_CHANGE"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_UI_EVENT_ZOOM_CHANGE"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event ZoomChangeEvt. public void OnZoomChangeEvt(EventArgs e) { var key = "_EFL_UI_EVENT_ZOOM_CHANGE"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Get the gesture state for photocam. /// This gets the current gesture state for the photocam object. /// The gesture state. virtual public bool GetGestureEnabled() { var _ret_var = Efl.Ui.ImageZoomable.NativeMethods.efl_ui_image_zoomable_gesture_enabled_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the gesture state for photocam. /// This sets the gesture state to on or off for photocam. The default is off. This will start multi touch zooming. /// The gesture state. virtual public void SetGestureEnabled(bool gesture) { Efl.Ui.ImageZoomable.NativeMethods.efl_ui_image_zoomable_gesture_enabled_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),gesture); Eina.Error.RaiseIfUnhandledException(); } /// Get the region of the image that is currently shown /// See also . /// The region in the original image pixels. virtual public Eina.Rect GetImageRegion() { var _ret_var = Efl.Ui.ImageZoomable.NativeMethods.efl_ui_image_zoomable_image_region_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the viewed region of the image /// This shows the region of the image without using animation. /// The region in the original image pixels. virtual public void SetImageRegion(Eina.Rect region) { Eina.Rect.NativeStruct _in_region = region; Efl.Ui.ImageZoomable.NativeMethods.efl_ui_image_zoomable_image_region_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_region); Eina.Error.RaiseIfUnhandledException(); } /// The content position /// The position is virtual value, (0, 0) starting at the top-left. virtual public Eina.Position2D GetContentPos() { var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_pos_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The content position /// The position is virtual value, (0, 0) starting at the top-left. virtual public void SetContentPos(Eina.Position2D pos) { Eina.Position2D.NativeStruct _in_pos = pos; Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_pos_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_pos); Eina.Error.RaiseIfUnhandledException(); } /// The content size /// The content size in pixels. virtual public Eina.Size2D GetContentSize() { var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_size_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The viewport geometry /// It is absolute geometry. virtual public Eina.Rect GetViewportGeometry() { var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Bouncing behavior /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. /// Horizontal bounce policy. /// Vertical bounce policy. virtual public void GetBounceEnabled(out bool horiz, out bool vert) { Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out horiz, out vert); Eina.Error.RaiseIfUnhandledException(); } /// Bouncing behavior /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. /// Horizontal bounce policy. /// Vertical bounce policy. virtual public void SetBounceEnabled(bool horiz, bool vert) { Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),horiz, vert); Eina.Error.RaiseIfUnhandledException(); } /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . /// true if freeze, false otherwise virtual public bool GetScrollFreeze() { var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . /// true if freeze, false otherwise virtual public void SetScrollFreeze(bool freeze) { Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),freeze); Eina.Error.RaiseIfUnhandledException(); } /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise virtual public bool GetScrollHold() { var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise virtual public void SetScrollHold(bool hold) { Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),hold); Eina.Error.RaiseIfUnhandledException(); } /// Controls an infinite loop for a scroller. /// The scrolling horizontal loop /// The Scrolling vertical loop virtual public void GetLooping(out bool loop_h, out bool loop_v) { Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_looping_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out loop_h, out loop_v); Eina.Error.RaiseIfUnhandledException(); } /// Controls an infinite loop for a scroller. /// The scrolling horizontal loop /// The Scrolling vertical loop virtual public void SetLooping(bool loop_h, bool loop_v) { Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_looping_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),loop_h, loop_v); Eina.Error.RaiseIfUnhandledException(); } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block virtual public Efl.Ui.ScrollBlock GetMovementBlock() { var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_movement_block_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block virtual public void SetMovementBlock(Efl.Ui.ScrollBlock block) { Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_movement_block_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),block); Eina.Error.RaiseIfUnhandledException(); } /// Control scrolling gravity on the scrollable /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. /// /// The scroller will adjust the view to glue itself as follows. /// /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content /// /// Default values for x and y are 0.0 /// Horizontal scrolling gravity /// Vertical scrolling gravity virtual public void GetGravity(out double x, out double y) { Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_gravity_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Control scrolling gravity on the scrollable /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. /// /// The scroller will adjust the view to glue itself as follows. /// /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content /// /// Default values for x and y are 0.0 /// Horizontal scrolling gravity /// Vertical scrolling gravity virtual public void SetGravity(double x, double y) { Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_gravity_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),x, y); Eina.Error.RaiseIfUnhandledException(); } /// Prevent the scrollable from being smaller than the minimum size of the content. /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. /// Whether to limit the minimum horizontal size /// Whether to limit the minimum vertical size virtual public void SetMatchContent(bool w, bool h) { Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_match_content_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),w, h); Eina.Error.RaiseIfUnhandledException(); } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels virtual public Eina.Position2D GetStepSize() { var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_step_size_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels virtual public void SetStepSize(Eina.Position2D step) { Eina.Position2D.NativeStruct _in_step = step; Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_step_size_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_step); Eina.Error.RaiseIfUnhandledException(); } /// Show a specific virtual region within the scroller content object. /// This will ensure all (or part if it does not fit) of the designated region in the virtual content object (0, 0 starting at the top-left of the virtual content object) is shown within the scroller. This allows the scroller to "smoothly slide" to this location (if configuration in general calls for transitions). It may not jump immediately to the new location and make take a while and show other content along the way. /// The position where to scroll. and The size user want to see /// Whether to scroll with animation or not virtual public void Scroll(Eina.Rect rect, bool animation) { Eina.Rect.NativeStruct _in_rect = rect; Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_rect, animation); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar visibility policy /// Horizontal scrollbar. /// Vertical scrollbar. virtual public void GetBarMode(out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) { Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out hbar, out vbar); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar visibility policy /// Horizontal scrollbar. /// Vertical scrollbar. virtual public void SetBarMode(Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) { Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),hbar, vbar); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar size. It is calculated based on viewport size-content sizes. /// Value between 0.0 and 1.0. /// Value between 0.0 and 1.0. virtual public void GetBarSize(out double width, out double height) { Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out width, out height); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar position. It is calculated based on current position-maximum positions. /// Value between 0.0 and 1.0. /// Value between 0.0 and 1.0. virtual public void GetBarPosition(out double posx, out double posy) { Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out posx, out posy); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar position. It is calculated based on current position-maximum positions. /// Value between 0.0 and 1.0. /// Value between 0.0 and 1.0. virtual public void SetBarPosition(double posx, double posy) { Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),posx, posy); Eina.Error.RaiseIfUnhandledException(); } /// Update bar visibility. /// The object will call this function whenever the bar needs to be shown or hidden. virtual public void UpdateBarVisibility() { Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } /// This sets the zoom animation state to on or off for zoomable. The default is off. When paused is true, it will stop zooming using animation on zoom level changes and change instantly, stopping any existing animations that are running. /// The paused state. virtual public bool GetZoomAnimation() { var _ret_var = Efl.Ui.IZoomConcrete.NativeMethods.efl_ui_zoom_animation_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// This sets the zoom animation state to on or off for zoomable. The default is off. When paused is true, it will stop zooming using animation on zoom level changes and change instantly, stopping any existing animations that are running. /// The paused state. virtual public void SetZoomAnimation(bool paused) { Efl.Ui.IZoomConcrete.NativeMethods.efl_ui_zoom_animation_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),paused); Eina.Error.RaiseIfUnhandledException(); } /// Get the zoom level of the photo /// 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. /// The zoom level to set virtual public double GetZoomLevel() { var _ret_var = Efl.Ui.IZoomConcrete.NativeMethods.efl_ui_zoom_level_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the zoom level of the photo /// This sets the zoom level. If zoom 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, zoom 1 will be 1:1 pixel for pixel. zoom 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 zoom parameter must be greater than 0. It is suggested to stick to powers of 2. (1, 2, 4, 8, 16, 32, etc.). /// The zoom level to set virtual public void SetZoomLevel(double zoom) { Efl.Ui.IZoomConcrete.NativeMethods.efl_ui_zoom_level_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),zoom); Eina.Error.RaiseIfUnhandledException(); } /// Get the zoom mode /// This gets the current zoom mode of the zoomable object. /// The zoom mode. virtual public Efl.Ui.ZoomMode GetZoomMode() { var _ret_var = Efl.Ui.IZoomConcrete.NativeMethods.efl_ui_zoom_mode_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the zoom mode /// 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 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. /// /// #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. /// The zoom mode. virtual public void SetZoomMode(Efl.Ui.ZoomMode mode) { Efl.Ui.IZoomConcrete.NativeMethods.efl_ui_zoom_mode_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),mode); Eina.Error.RaiseIfUnhandledException(); } /// Get the gesture state for photocam. /// This gets the current gesture state for the photocam object. /// The gesture state. public bool GestureEnabled { get { return GetGestureEnabled(); } set { SetGestureEnabled(value); } } /// Get the region of the image that is currently shown /// See also . /// The region in the original image pixels. public Eina.Rect ImageRegion { get { return GetImageRegion(); } set { SetImageRegion(value); } } /// The content position /// The position is virtual value, (0, 0) starting at the top-left. public Eina.Position2D ContentPos { get { return GetContentPos(); } set { SetContentPos(value); } } /// The content size /// The content size in pixels. public Eina.Size2D ContentSize { get { return GetContentSize(); } } /// The viewport geometry /// It is absolute geometry. public Eina.Rect ViewportGeometry { get { return GetViewportGeometry(); } } /// Bouncing behavior /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. /// Horizontal bounce policy. public (bool, bool) BounceEnabled { get { bool _out_horiz = default(bool); bool _out_vert = default(bool); GetBounceEnabled(out _out_horiz,out _out_vert); return (_out_horiz,_out_vert); } set { SetBounceEnabled( value.Item1, value.Item2); } } /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . /// true if freeze, false otherwise public bool ScrollFreeze { get { return GetScrollFreeze(); } set { SetScrollFreeze(value); } } /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise public bool ScrollHold { get { return GetScrollHold(); } set { SetScrollHold(value); } } /// Controls an infinite loop for a scroller. /// The scrolling horizontal loop public (bool, bool) Looping { get { bool _out_loop_h = default(bool); bool _out_loop_v = default(bool); GetLooping(out _out_loop_h,out _out_loop_v); return (_out_loop_h,_out_loop_v); } set { SetLooping( value.Item1, value.Item2); } } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block public Efl.Ui.ScrollBlock MovementBlock { get { return GetMovementBlock(); } set { SetMovementBlock(value); } } /// Control scrolling gravity on the scrollable /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. /// /// The scroller will adjust the view to glue itself as follows. /// /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content /// /// Default values for x and y are 0.0 /// Horizontal scrolling gravity public (double, double) Gravity { get { double _out_x = default(double); double _out_y = default(double); GetGravity(out _out_x,out _out_y); return (_out_x,_out_y); } set { SetGravity( value.Item1, value.Item2); } } /// Prevent the scrollable from being smaller than the minimum size of the content. /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. /// Whether to limit the minimum horizontal size public (bool, bool) MatchContent { set { SetMatchContent( value.Item1, value.Item2); } } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels public Eina.Position2D StepSize { get { return GetStepSize(); } set { SetStepSize(value); } } /// Scrollbar visibility policy /// Horizontal scrollbar. public (Efl.Ui.ScrollbarMode, Efl.Ui.ScrollbarMode) BarMode { get { Efl.Ui.ScrollbarMode _out_hbar = default(Efl.Ui.ScrollbarMode); Efl.Ui.ScrollbarMode _out_vbar = default(Efl.Ui.ScrollbarMode); GetBarMode(out _out_hbar,out _out_vbar); return (_out_hbar,_out_vbar); } set { SetBarMode( value.Item1, value.Item2); } } /// Scrollbar size. It is calculated based on viewport size-content sizes. public (double, double) BarSize { get { double _out_width = default(double); double _out_height = default(double); GetBarSize(out _out_width,out _out_height); return (_out_width,_out_height); } } /// Scrollbar position. It is calculated based on current position-maximum positions. /// Value between 0.0 and 1.0. public (double, double) BarPosition { get { double _out_posx = default(double); double _out_posy = default(double); GetBarPosition(out _out_posx,out _out_posy); return (_out_posx,_out_posy); } set { SetBarPosition( value.Item1, value.Item2); } } /// This sets the zoom animation state to on or off for zoomable. The default is off. When paused is true, it will stop zooming using animation on zoom level changes and change instantly, stopping any existing animations that are running. /// The paused state. public bool ZoomAnimation { get { return GetZoomAnimation(); } set { SetZoomAnimation(value); } } /// Get the zoom level of the photo /// 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. /// The zoom level to set public double ZoomLevel { get { return GetZoomLevel(); } set { SetZoomLevel(value); } } /// Get the zoom mode /// This gets the current zoom mode of the zoomable object. /// The zoom mode. public Efl.Ui.ZoomMode ZoomMode { get { return GetZoomMode(); } set { SetZoomMode(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.ImageZoomable.efl_ui_image_zoomable_class_get(); } /// Wrapper for native methods and virtual method delegates. /// For internal use by generated code only. public new class NativeMethods : Efl.Ui.Image.NativeMethods { private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); /// Gets the list of Eo operations to override. /// The list of Eo operations to be overload. public override System.Collections.Generic.List GetEoOps(System.Type type) { var descs = new System.Collections.Generic.List(); var methods = Efl.Eo.Globals.GetUserMethods(type); if (efl_ui_image_zoomable_gesture_enabled_get_static_delegate == null) { efl_ui_image_zoomable_gesture_enabled_get_static_delegate = new efl_ui_image_zoomable_gesture_enabled_get_delegate(gesture_enabled_get); } if (methods.FirstOrDefault(m => m.Name == "GetGestureEnabled") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_image_zoomable_gesture_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_zoomable_gesture_enabled_get_static_delegate) }); } if (efl_ui_image_zoomable_gesture_enabled_set_static_delegate == null) { efl_ui_image_zoomable_gesture_enabled_set_static_delegate = new efl_ui_image_zoomable_gesture_enabled_set_delegate(gesture_enabled_set); } if (methods.FirstOrDefault(m => m.Name == "SetGestureEnabled") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_image_zoomable_gesture_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_zoomable_gesture_enabled_set_static_delegate) }); } if (efl_ui_image_zoomable_image_region_get_static_delegate == null) { efl_ui_image_zoomable_image_region_get_static_delegate = new efl_ui_image_zoomable_image_region_get_delegate(image_region_get); } if (methods.FirstOrDefault(m => m.Name == "GetImageRegion") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_image_zoomable_image_region_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_zoomable_image_region_get_static_delegate) }); } if (efl_ui_image_zoomable_image_region_set_static_delegate == null) { efl_ui_image_zoomable_image_region_set_static_delegate = new efl_ui_image_zoomable_image_region_set_delegate(image_region_set); } if (methods.FirstOrDefault(m => m.Name == "SetImageRegion") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_image_zoomable_image_region_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_zoomable_image_region_set_static_delegate) }); } if (efl_ui_scrollable_content_pos_get_static_delegate == null) { efl_ui_scrollable_content_pos_get_static_delegate = new efl_ui_scrollable_content_pos_get_delegate(content_pos_get); } if (methods.FirstOrDefault(m => m.Name == "GetContentPos") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_get_static_delegate) }); } if (efl_ui_scrollable_content_pos_set_static_delegate == null) { efl_ui_scrollable_content_pos_set_static_delegate = new efl_ui_scrollable_content_pos_set_delegate(content_pos_set); } if (methods.FirstOrDefault(m => m.Name == "SetContentPos") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_set_static_delegate) }); } if (efl_ui_scrollable_content_size_get_static_delegate == null) { efl_ui_scrollable_content_size_get_static_delegate = new efl_ui_scrollable_content_size_get_delegate(content_size_get); } if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_size_get_static_delegate) }); } if (efl_ui_scrollable_viewport_geometry_get_static_delegate == null) { efl_ui_scrollable_viewport_geometry_get_static_delegate = new efl_ui_scrollable_viewport_geometry_get_delegate(viewport_geometry_get); } if (methods.FirstOrDefault(m => m.Name == "GetViewportGeometry") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_viewport_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_viewport_geometry_get_static_delegate) }); } if (efl_ui_scrollable_bounce_enabled_get_static_delegate == null) { efl_ui_scrollable_bounce_enabled_get_static_delegate = new efl_ui_scrollable_bounce_enabled_get_delegate(bounce_enabled_get); } if (methods.FirstOrDefault(m => m.Name == "GetBounceEnabled") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_bounce_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_get_static_delegate) }); } if (efl_ui_scrollable_bounce_enabled_set_static_delegate == null) { efl_ui_scrollable_bounce_enabled_set_static_delegate = new efl_ui_scrollable_bounce_enabled_set_delegate(bounce_enabled_set); } if (methods.FirstOrDefault(m => m.Name == "SetBounceEnabled") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_bounce_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_set_static_delegate) }); } if (efl_ui_scrollable_scroll_freeze_get_static_delegate == null) { efl_ui_scrollable_scroll_freeze_get_static_delegate = new efl_ui_scrollable_scroll_freeze_get_delegate(scroll_freeze_get); } if (methods.FirstOrDefault(m => m.Name == "GetScrollFreeze") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_freeze_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_get_static_delegate) }); } if (efl_ui_scrollable_scroll_freeze_set_static_delegate == null) { efl_ui_scrollable_scroll_freeze_set_static_delegate = new efl_ui_scrollable_scroll_freeze_set_delegate(scroll_freeze_set); } if (methods.FirstOrDefault(m => m.Name == "SetScrollFreeze") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_freeze_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_set_static_delegate) }); } if (efl_ui_scrollable_scroll_hold_get_static_delegate == null) { efl_ui_scrollable_scroll_hold_get_static_delegate = new efl_ui_scrollable_scroll_hold_get_delegate(scroll_hold_get); } if (methods.FirstOrDefault(m => m.Name == "GetScrollHold") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_hold_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_get_static_delegate) }); } if (efl_ui_scrollable_scroll_hold_set_static_delegate == null) { efl_ui_scrollable_scroll_hold_set_static_delegate = new efl_ui_scrollable_scroll_hold_set_delegate(scroll_hold_set); } if (methods.FirstOrDefault(m => m.Name == "SetScrollHold") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_hold_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_set_static_delegate) }); } if (efl_ui_scrollable_looping_get_static_delegate == null) { efl_ui_scrollable_looping_get_static_delegate = new efl_ui_scrollable_looping_get_delegate(looping_get); } if (methods.FirstOrDefault(m => m.Name == "GetLooping") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_looping_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_get_static_delegate) }); } if (efl_ui_scrollable_looping_set_static_delegate == null) { efl_ui_scrollable_looping_set_static_delegate = new efl_ui_scrollable_looping_set_delegate(looping_set); } if (methods.FirstOrDefault(m => m.Name == "SetLooping") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_looping_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_set_static_delegate) }); } if (efl_ui_scrollable_movement_block_get_static_delegate == null) { efl_ui_scrollable_movement_block_get_static_delegate = new efl_ui_scrollable_movement_block_get_delegate(movement_block_get); } if (methods.FirstOrDefault(m => m.Name == "GetMovementBlock") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_movement_block_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_get_static_delegate) }); } if (efl_ui_scrollable_movement_block_set_static_delegate == null) { efl_ui_scrollable_movement_block_set_static_delegate = new efl_ui_scrollable_movement_block_set_delegate(movement_block_set); } if (methods.FirstOrDefault(m => m.Name == "SetMovementBlock") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_movement_block_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_set_static_delegate) }); } if (efl_ui_scrollable_gravity_get_static_delegate == null) { efl_ui_scrollable_gravity_get_static_delegate = new efl_ui_scrollable_gravity_get_delegate(gravity_get); } if (methods.FirstOrDefault(m => m.Name == "GetGravity") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_gravity_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_get_static_delegate) }); } if (efl_ui_scrollable_gravity_set_static_delegate == null) { efl_ui_scrollable_gravity_set_static_delegate = new efl_ui_scrollable_gravity_set_delegate(gravity_set); } if (methods.FirstOrDefault(m => m.Name == "SetGravity") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_gravity_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_set_static_delegate) }); } if (efl_ui_scrollable_match_content_set_static_delegate == null) { efl_ui_scrollable_match_content_set_static_delegate = new efl_ui_scrollable_match_content_set_delegate(match_content_set); } if (methods.FirstOrDefault(m => m.Name == "SetMatchContent") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_match_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_match_content_set_static_delegate) }); } if (efl_ui_scrollable_step_size_get_static_delegate == null) { efl_ui_scrollable_step_size_get_static_delegate = new efl_ui_scrollable_step_size_get_delegate(step_size_get); } if (methods.FirstOrDefault(m => m.Name == "GetStepSize") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_step_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_get_static_delegate) }); } if (efl_ui_scrollable_step_size_set_static_delegate == null) { efl_ui_scrollable_step_size_set_static_delegate = new efl_ui_scrollable_step_size_set_delegate(step_size_set); } if (methods.FirstOrDefault(m => m.Name == "SetStepSize") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_step_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_set_static_delegate) }); } if (efl_ui_scrollable_scroll_static_delegate == null) { efl_ui_scrollable_scroll_static_delegate = new efl_ui_scrollable_scroll_delegate(scroll); } if (methods.FirstOrDefault(m => m.Name == "Scroll") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_static_delegate) }); } if (efl_ui_scrollbar_bar_mode_get_static_delegate == null) { efl_ui_scrollbar_bar_mode_get_static_delegate = new efl_ui_scrollbar_bar_mode_get_delegate(bar_mode_get); } if (methods.FirstOrDefault(m => m.Name == "GetBarMode") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_get_static_delegate) }); } if (efl_ui_scrollbar_bar_mode_set_static_delegate == null) { efl_ui_scrollbar_bar_mode_set_static_delegate = new efl_ui_scrollbar_bar_mode_set_delegate(bar_mode_set); } if (methods.FirstOrDefault(m => m.Name == "SetBarMode") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_set_static_delegate) }); } if (efl_ui_scrollbar_bar_size_get_static_delegate == null) { efl_ui_scrollbar_bar_size_get_static_delegate = new efl_ui_scrollbar_bar_size_get_delegate(bar_size_get); } if (methods.FirstOrDefault(m => m.Name == "GetBarSize") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_size_get_static_delegate) }); } if (efl_ui_scrollbar_bar_position_get_static_delegate == null) { efl_ui_scrollbar_bar_position_get_static_delegate = new efl_ui_scrollbar_bar_position_get_delegate(bar_position_get); } if (methods.FirstOrDefault(m => m.Name == "GetBarPosition") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_get_static_delegate) }); } if (efl_ui_scrollbar_bar_position_set_static_delegate == null) { efl_ui_scrollbar_bar_position_set_static_delegate = new efl_ui_scrollbar_bar_position_set_delegate(bar_position_set); } if (methods.FirstOrDefault(m => m.Name == "SetBarPosition") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_set_static_delegate) }); } if (efl_ui_scrollbar_bar_visibility_update_static_delegate == null) { efl_ui_scrollbar_bar_visibility_update_static_delegate = new efl_ui_scrollbar_bar_visibility_update_delegate(bar_visibility_update); } if (methods.FirstOrDefault(m => m.Name == "UpdateBarVisibility") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_visibility_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_visibility_update_static_delegate) }); } if (efl_ui_zoom_animation_get_static_delegate == null) { efl_ui_zoom_animation_get_static_delegate = new efl_ui_zoom_animation_get_delegate(zoom_animation_get); } if (methods.FirstOrDefault(m => m.Name == "GetZoomAnimation") != null) { 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) }); } if (efl_ui_zoom_animation_set_static_delegate == null) { efl_ui_zoom_animation_set_static_delegate = new efl_ui_zoom_animation_set_delegate(zoom_animation_set); } if (methods.FirstOrDefault(m => m.Name == "SetZoomAnimation") != null) { 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) }); } if (efl_ui_zoom_level_get_static_delegate == null) { efl_ui_zoom_level_get_static_delegate = new efl_ui_zoom_level_get_delegate(zoom_level_get); } if (methods.FirstOrDefault(m => m.Name == "GetZoomLevel") != null) { 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) }); } if (efl_ui_zoom_level_set_static_delegate == null) { efl_ui_zoom_level_set_static_delegate = new efl_ui_zoom_level_set_delegate(zoom_level_set); } if (methods.FirstOrDefault(m => m.Name == "SetZoomLevel") != null) { 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) }); } if (efl_ui_zoom_mode_get_static_delegate == null) { efl_ui_zoom_mode_get_static_delegate = new efl_ui_zoom_mode_get_delegate(zoom_mode_get); } if (methods.FirstOrDefault(m => m.Name == "GetZoomMode") != null) { 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) }); } if (efl_ui_zoom_mode_set_static_delegate == null) { efl_ui_zoom_mode_set_static_delegate = new efl_ui_zoom_mode_set_delegate(zoom_mode_set); } if (methods.FirstOrDefault(m => m.Name == "SetZoomMode") != null) { 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) }); } descs.AddRange(base.GetEoOps(type)); return descs; } /// Returns the Eo class for the native methods of this class. /// The native class pointer. public override IntPtr GetEflClass() { return Efl.Ui.ImageZoomable.efl_ui_image_zoomable_class_get(); } #pragma warning disable CA1707, CS1591, SA1300, SA1600 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_image_zoomable_gesture_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_image_zoomable_gesture_enabled_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_image_zoomable_gesture_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_image_zoomable_gesture_enabled_get"); private static bool gesture_enabled_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_image_zoomable_gesture_enabled_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((ImageZoomable)ws.Target).GetGestureEnabled(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_image_zoomable_gesture_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_image_zoomable_gesture_enabled_get_delegate efl_ui_image_zoomable_gesture_enabled_get_static_delegate; private delegate void efl_ui_image_zoomable_gesture_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool gesture); public delegate void efl_ui_image_zoomable_gesture_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool gesture); public static Efl.Eo.FunctionWrapper efl_ui_image_zoomable_gesture_enabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_image_zoomable_gesture_enabled_set"); private static void gesture_enabled_set(System.IntPtr obj, System.IntPtr pd, bool gesture) { Eina.Log.Debug("function efl_ui_image_zoomable_gesture_enabled_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((ImageZoomable)ws.Target).SetGestureEnabled(gesture); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_image_zoomable_gesture_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), gesture); } } private static efl_ui_image_zoomable_gesture_enabled_set_delegate efl_ui_image_zoomable_gesture_enabled_set_static_delegate; private delegate Eina.Rect.NativeStruct efl_ui_image_zoomable_image_region_get_delegate(System.IntPtr obj, System.IntPtr pd); public delegate Eina.Rect.NativeStruct efl_ui_image_zoomable_image_region_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_image_zoomable_image_region_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_image_zoomable_image_region_get"); private static Eina.Rect.NativeStruct image_region_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_image_zoomable_image_region_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Rect _ret_var = default(Eina.Rect); try { _ret_var = ((ImageZoomable)ws.Target).GetImageRegion(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_image_zoomable_image_region_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_image_zoomable_image_region_get_delegate efl_ui_image_zoomable_image_region_get_static_delegate; private delegate void efl_ui_image_zoomable_image_region_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct region); public delegate void efl_ui_image_zoomable_image_region_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct region); public static Efl.Eo.FunctionWrapper efl_ui_image_zoomable_image_region_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_image_zoomable_image_region_set"); private static void image_region_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct region) { Eina.Log.Debug("function efl_ui_image_zoomable_image_region_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Rect _in_region = region; try { ((ImageZoomable)ws.Target).SetImageRegion(_in_region); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_image_zoomable_image_region_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), region); } } private static efl_ui_image_zoomable_image_region_set_delegate efl_ui_image_zoomable_image_region_set_static_delegate; private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_pos_get"); private static Eina.Position2D.NativeStruct content_pos_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_scrollable_content_pos_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Position2D _ret_var = default(Eina.Position2D); try { _ret_var = ((ImageZoomable)ws.Target).GetContentPos(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_scrollable_content_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_scrollable_content_pos_get_delegate efl_ui_scrollable_content_pos_get_static_delegate; private delegate void efl_ui_scrollable_content_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); public delegate void efl_ui_scrollable_content_pos_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_pos_set"); private static void content_pos_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) { Eina.Log.Debug("function efl_ui_scrollable_content_pos_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Position2D _in_pos = pos; try { ((ImageZoomable)ws.Target).SetContentPos(_in_pos); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_scrollable_content_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); } } private static efl_ui_scrollable_content_pos_set_delegate efl_ui_scrollable_content_pos_set_static_delegate; private delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd); public delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_size_get"); private static Eina.Size2D.NativeStruct content_size_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_scrollable_content_size_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Size2D _ret_var = default(Eina.Size2D); try { _ret_var = ((ImageZoomable)ws.Target).GetContentSize(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_scrollable_content_size_get_delegate efl_ui_scrollable_content_size_get_static_delegate; private delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); public delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_scrollable_viewport_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_viewport_geometry_get"); private static Eina.Rect.NativeStruct viewport_geometry_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_scrollable_viewport_geometry_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Rect _ret_var = default(Eina.Rect); try { _ret_var = ((ImageZoomable)ws.Target).GetViewportGeometry(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_scrollable_viewport_geometry_get_delegate efl_ui_scrollable_viewport_geometry_get_static_delegate; private delegate void efl_ui_scrollable_bounce_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); public delegate void efl_ui_scrollable_bounce_enabled_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_bounce_enabled_get"); private static void bounce_enabled_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) { Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { horiz = default(bool); vert = default(bool); try { ((ImageZoomable)ws.Target).GetBounceEnabled(out horiz, out vert); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); } } private static efl_ui_scrollable_bounce_enabled_get_delegate efl_ui_scrollable_bounce_enabled_get_static_delegate; private delegate void efl_ui_scrollable_bounce_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); public delegate void efl_ui_scrollable_bounce_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_bounce_enabled_set"); private static void bounce_enabled_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) { Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((ImageZoomable)ws.Target).SetBounceEnabled(horiz, vert); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); } } private static efl_ui_scrollable_bounce_enabled_set_delegate efl_ui_scrollable_bounce_enabled_set_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_scrollable_scroll_freeze_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_scrollable_scroll_freeze_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_freeze_get"); private static bool scroll_freeze_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((ImageZoomable)ws.Target).GetScrollFreeze(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_scrollable_scroll_freeze_get_delegate efl_ui_scrollable_scroll_freeze_get_static_delegate; private delegate void efl_ui_scrollable_scroll_freeze_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool freeze); public delegate void efl_ui_scrollable_scroll_freeze_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool freeze); public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_freeze_set"); private static void scroll_freeze_set(System.IntPtr obj, System.IntPtr pd, bool freeze) { Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((ImageZoomable)ws.Target).SetScrollFreeze(freeze); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), freeze); } } private static efl_ui_scrollable_scroll_freeze_set_delegate efl_ui_scrollable_scroll_freeze_set_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_scrollable_scroll_hold_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_scrollable_scroll_hold_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_hold_get"); private static bool scroll_hold_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((ImageZoomable)ws.Target).GetScrollHold(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_scrollable_scroll_hold_get_delegate efl_ui_scrollable_scroll_hold_get_static_delegate; private delegate void efl_ui_scrollable_scroll_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hold); public delegate void efl_ui_scrollable_scroll_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hold); public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_hold_set"); private static void scroll_hold_set(System.IntPtr obj, System.IntPtr pd, bool hold) { Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((ImageZoomable)ws.Target).SetScrollHold(hold); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hold); } } private static efl_ui_scrollable_scroll_hold_set_delegate efl_ui_scrollable_scroll_hold_set_static_delegate; private delegate void efl_ui_scrollable_looping_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); public delegate void efl_ui_scrollable_looping_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_looping_get"); private static void looping_get(System.IntPtr obj, System.IntPtr pd, out bool loop_h, out bool loop_v) { Eina.Log.Debug("function efl_ui_scrollable_looping_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { loop_h = default(bool); loop_v = default(bool); try { ((ImageZoomable)ws.Target).GetLooping(out loop_h, out loop_v); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_scrollable_looping_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out loop_h, out loop_v); } } private static efl_ui_scrollable_looping_get_delegate efl_ui_scrollable_looping_get_static_delegate; private delegate void efl_ui_scrollable_looping_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); public delegate void efl_ui_scrollable_looping_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_looping_set"); private static void looping_set(System.IntPtr obj, System.IntPtr pd, bool loop_h, bool loop_v) { Eina.Log.Debug("function efl_ui_scrollable_looping_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((ImageZoomable)ws.Target).SetLooping(loop_h, loop_v); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_scrollable_looping_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop_h, loop_v); } } private static efl_ui_scrollable_looping_set_delegate efl_ui_scrollable_looping_set_static_delegate; private delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_delegate(System.IntPtr obj, System.IntPtr pd); public delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_movement_block_get"); private static Efl.Ui.ScrollBlock movement_block_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_scrollable_movement_block_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Ui.ScrollBlock _ret_var = default(Efl.Ui.ScrollBlock); try { _ret_var = ((ImageZoomable)ws.Target).GetMovementBlock(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_scrollable_movement_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_scrollable_movement_block_get_delegate efl_ui_scrollable_movement_block_get_static_delegate; private delegate void efl_ui_scrollable_movement_block_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block); public delegate void efl_ui_scrollable_movement_block_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollBlock block); public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_movement_block_set"); private static void movement_block_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block) { Eina.Log.Debug("function efl_ui_scrollable_movement_block_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((ImageZoomable)ws.Target).SetMovementBlock(block); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_scrollable_movement_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), block); } } private static efl_ui_scrollable_movement_block_set_delegate efl_ui_scrollable_movement_block_set_static_delegate; private delegate void efl_ui_scrollable_gravity_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); public delegate void efl_ui_scrollable_gravity_get_api_delegate(System.IntPtr obj, out double x, out double y); public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_gravity_get"); private static void gravity_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) { Eina.Log.Debug("function efl_ui_scrollable_gravity_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { x = default(double); y = default(double); try { ((ImageZoomable)ws.Target).GetGravity(out x, out y); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_scrollable_gravity_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); } } private static efl_ui_scrollable_gravity_get_delegate efl_ui_scrollable_gravity_get_static_delegate; private delegate void efl_ui_scrollable_gravity_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); public delegate void efl_ui_scrollable_gravity_set_api_delegate(System.IntPtr obj, double x, double y); public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_gravity_set"); private static void gravity_set(System.IntPtr obj, System.IntPtr pd, double x, double y) { Eina.Log.Debug("function efl_ui_scrollable_gravity_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((ImageZoomable)ws.Target).SetGravity(x, y); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_scrollable_gravity_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); } } private static efl_ui_scrollable_gravity_set_delegate efl_ui_scrollable_gravity_set_static_delegate; private delegate void efl_ui_scrollable_match_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); public delegate void efl_ui_scrollable_match_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); public static Efl.Eo.FunctionWrapper efl_ui_scrollable_match_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_match_content_set"); private static void match_content_set(System.IntPtr obj, System.IntPtr pd, bool w, bool h) { Eina.Log.Debug("function efl_ui_scrollable_match_content_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((ImageZoomable)ws.Target).SetMatchContent(w, h); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_scrollable_match_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w, h); } } private static efl_ui_scrollable_match_content_set_delegate efl_ui_scrollable_match_content_set_static_delegate; private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_delegate(System.IntPtr obj, System.IntPtr pd); public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_step_size_get"); private static Eina.Position2D.NativeStruct step_size_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_scrollable_step_size_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Position2D _ret_var = default(Eina.Position2D); try { _ret_var = ((ImageZoomable)ws.Target).GetStepSize(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_scrollable_step_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_scrollable_step_size_get_delegate efl_ui_scrollable_step_size_get_static_delegate; private delegate void efl_ui_scrollable_step_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step); public delegate void efl_ui_scrollable_step_size_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct step); public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_step_size_set"); private static void step_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step) { Eina.Log.Debug("function efl_ui_scrollable_step_size_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Position2D _in_step = step; try { ((ImageZoomable)ws.Target).SetStepSize(_in_step); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_scrollable_step_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); } } private static efl_ui_scrollable_step_size_set_delegate efl_ui_scrollable_step_size_set_static_delegate; private delegate void efl_ui_scrollable_scroll_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); public delegate void efl_ui_scrollable_scroll_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll"); private static void scroll(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool animation) { Eina.Log.Debug("function efl_ui_scrollable_scroll was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Rect _in_rect = rect; try { ((ImageZoomable)ws.Target).Scroll(_in_rect, animation); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_scrollable_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, animation); } } private static efl_ui_scrollable_scroll_delegate efl_ui_scrollable_scroll_static_delegate; private delegate void efl_ui_scrollbar_bar_mode_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); public delegate void efl_ui_scrollbar_bar_mode_get_api_delegate(System.IntPtr obj, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_mode_get"); private static void bar_mode_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) { Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { hbar = default(Efl.Ui.ScrollbarMode); vbar = default(Efl.Ui.ScrollbarMode); try { ((ImageZoomable)ws.Target).GetBarMode(out hbar, out vbar); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out hbar, out vbar); } } private static efl_ui_scrollbar_bar_mode_get_delegate efl_ui_scrollbar_bar_mode_get_static_delegate; private delegate void efl_ui_scrollbar_bar_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); public delegate void efl_ui_scrollbar_bar_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_mode_set"); private static void bar_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) { Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((ImageZoomable)ws.Target).SetBarMode(hbar, vbar); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar, vbar); } } private static efl_ui_scrollbar_bar_mode_set_delegate efl_ui_scrollbar_bar_mode_set_static_delegate; private delegate void efl_ui_scrollbar_bar_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out double width, out double height); public delegate void efl_ui_scrollbar_bar_size_get_api_delegate(System.IntPtr obj, out double width, out double height); public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_size_get"); private static void bar_size_get(System.IntPtr obj, System.IntPtr pd, out double width, out double height) { Eina.Log.Debug("function efl_ui_scrollbar_bar_size_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { width = default(double); height = default(double); try { ((ImageZoomable)ws.Target).GetBarSize(out width, out height); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out width, out height); } } private static efl_ui_scrollbar_bar_size_get_delegate efl_ui_scrollbar_bar_size_get_static_delegate; private delegate void efl_ui_scrollbar_bar_position_get_delegate(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy); public delegate void efl_ui_scrollbar_bar_position_get_api_delegate(System.IntPtr obj, out double posx, out double posy); public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_position_get"); private static void bar_position_get(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy) { Eina.Log.Debug("function efl_ui_scrollbar_bar_position_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { posx = default(double); posy = default(double); try { ((ImageZoomable)ws.Target).GetBarPosition(out posx, out posy); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out posx, out posy); } } private static efl_ui_scrollbar_bar_position_get_delegate efl_ui_scrollbar_bar_position_get_static_delegate; private delegate void efl_ui_scrollbar_bar_position_set_delegate(System.IntPtr obj, System.IntPtr pd, double posx, double posy); public delegate void efl_ui_scrollbar_bar_position_set_api_delegate(System.IntPtr obj, double posx, double posy); public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_position_set"); private static void bar_position_set(System.IntPtr obj, System.IntPtr pd, double posx, double posy) { Eina.Log.Debug("function efl_ui_scrollbar_bar_position_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((ImageZoomable)ws.Target).SetBarPosition(posx, posy); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), posx, posy); } } private static efl_ui_scrollbar_bar_position_set_delegate efl_ui_scrollbar_bar_position_set_static_delegate; private delegate void efl_ui_scrollbar_bar_visibility_update_delegate(System.IntPtr obj, System.IntPtr pd); public delegate void efl_ui_scrollbar_bar_visibility_update_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_visibility_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_visibility_update"); private static void bar_visibility_update(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_scrollbar_bar_visibility_update was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((ImageZoomable)ws.Target).UpdateBarVisibility(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_scrollbar_bar_visibility_update_delegate efl_ui_scrollbar_bar_visibility_update_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_zoom_animation_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_zoom_animation_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_zoom_animation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_zoom_animation_get"); private static bool zoom_animation_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_zoom_animation_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((ImageZoomable)ws.Target).GetZoomAnimation(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_zoom_animation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_zoom_animation_get_delegate efl_ui_zoom_animation_get_static_delegate; private delegate void efl_ui_zoom_animation_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool paused); public delegate void efl_ui_zoom_animation_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool paused); public static Efl.Eo.FunctionWrapper efl_ui_zoom_animation_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_zoom_animation_set"); private static void zoom_animation_set(System.IntPtr obj, System.IntPtr pd, bool paused) { Eina.Log.Debug("function efl_ui_zoom_animation_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((ImageZoomable)ws.Target).SetZoomAnimation(paused); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_zoom_animation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), paused); } } private static efl_ui_zoom_animation_set_delegate efl_ui_zoom_animation_set_static_delegate; private delegate double efl_ui_zoom_level_get_delegate(System.IntPtr obj, System.IntPtr pd); public delegate double efl_ui_zoom_level_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_zoom_level_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_zoom_level_get"); private static double zoom_level_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_zoom_level_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { double _ret_var = default(double); try { _ret_var = ((ImageZoomable)ws.Target).GetZoomLevel(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_zoom_level_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_zoom_level_get_delegate efl_ui_zoom_level_get_static_delegate; private delegate void efl_ui_zoom_level_set_delegate(System.IntPtr obj, System.IntPtr pd, double zoom); public delegate void efl_ui_zoom_level_set_api_delegate(System.IntPtr obj, double zoom); public static Efl.Eo.FunctionWrapper efl_ui_zoom_level_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_zoom_level_set"); private static void zoom_level_set(System.IntPtr obj, System.IntPtr pd, double zoom) { Eina.Log.Debug("function efl_ui_zoom_level_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((ImageZoomable)ws.Target).SetZoomLevel(zoom); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_zoom_level_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), zoom); } } private static efl_ui_zoom_level_set_delegate efl_ui_zoom_level_set_static_delegate; private delegate Efl.Ui.ZoomMode efl_ui_zoom_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); public delegate Efl.Ui.ZoomMode efl_ui_zoom_mode_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_zoom_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_zoom_mode_get"); private static Efl.Ui.ZoomMode zoom_mode_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_zoom_mode_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Ui.ZoomMode _ret_var = default(Efl.Ui.ZoomMode); try { _ret_var = ((ImageZoomable)ws.Target).GetZoomMode(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_zoom_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_zoom_mode_get_delegate efl_ui_zoom_mode_get_static_delegate; private delegate void efl_ui_zoom_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ZoomMode mode); public delegate void efl_ui_zoom_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.ZoomMode mode); public static Efl.Eo.FunctionWrapper efl_ui_zoom_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_zoom_mode_set"); private static void zoom_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ZoomMode mode) { Eina.Log.Debug("function efl_ui_zoom_mode_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((ImageZoomable)ws.Target).SetZoomMode(mode); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_zoom_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode); } } private static efl_ui_zoom_mode_set_delegate efl_ui_zoom_mode_set_static_delegate; #pragma warning restore CA1707, CS1591, SA1300, SA1600 } } } } #if EFL_BETA #pragma warning disable CS1591 public static class Efl_UiImageZoomable_ExtensionMethods { public static Efl.BindableProperty GestureEnabled(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ImageZoomable { return new Efl.BindableProperty("gesture_enabled", fac); } public static Efl.BindableProperty ImageRegion(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ImageZoomable { return new Efl.BindableProperty("image_region", fac); } public static Efl.BindableProperty ContentPos(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ImageZoomable { return new Efl.BindableProperty("content_pos", fac); } public static Efl.BindableProperty ScrollFreeze(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ImageZoomable { return new Efl.BindableProperty("scroll_freeze", fac); } public static Efl.BindableProperty ScrollHold(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ImageZoomable { return new Efl.BindableProperty("scroll_hold", fac); } public static Efl.BindableProperty MovementBlock(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ImageZoomable { return new Efl.BindableProperty("movement_block", fac); } public static Efl.BindableProperty StepSize(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ImageZoomable { return new Efl.BindableProperty("step_size", fac); } public static Efl.BindableProperty ZoomAnimation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ImageZoomable { return new Efl.BindableProperty("zoom_animation", fac); } public static Efl.BindableProperty ZoomLevel(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ImageZoomable { return new Efl.BindableProperty("zoom_level", fac); } public static Efl.BindableProperty ZoomMode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ImageZoomable { return new Efl.BindableProperty("zoom_mode", fac); } } #pragma warning restore CS1591 #endif namespace Elm { namespace Photocam { /// Photocam error information. [StructLayout(LayoutKind.Sequential)] [Efl.Eo.BindingEntity] public struct Error { /// Placeholder field public IntPtr field; /// Implicit conversion to the managed representation from a native pointer. /// Native pointer to be converted. public static implicit operator Error(IntPtr ptr) { var tmp = (Error.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Error.NativeStruct)); return tmp; } #pragma warning disable CS1591 /// Internal wrapper for struct Error. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { internal IntPtr field; /// Implicit conversion to the internal/marshalling representation. public static implicit operator Error.NativeStruct(Error _external_struct) { var _internal_struct = new Error.NativeStruct(); return _internal_struct; } /// Implicit conversion to the managed representation. public static implicit operator Error(Error.NativeStruct _internal_struct) { var _external_struct = new Error(); return _external_struct; } } #pragma warning restore CS1591 } } } namespace Elm { namespace Photocam { /// Photocam progress information. [StructLayout(LayoutKind.Sequential)] [Efl.Eo.BindingEntity] public struct Progress { /// Placeholder field public IntPtr field; /// Implicit conversion to the managed representation from a native pointer. /// Native pointer to be converted. public static implicit operator Progress(IntPtr ptr) { var tmp = (Progress.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Progress.NativeStruct)); return tmp; } #pragma warning disable CS1591 /// Internal wrapper for struct Progress. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { internal IntPtr field; /// Implicit conversion to the internal/marshalling representation. public static implicit operator Progress.NativeStruct(Progress _external_struct) { var _internal_struct = new Progress.NativeStruct(); return _internal_struct; } /// Implicit conversion to the managed representation. public static implicit operator Progress(Progress.NativeStruct _internal_struct) { var _external_struct = new Progress(); return _external_struct; } } #pragma warning restore CS1591 } } }