#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 Canvas { /// Interface containing basic canvas-related methods and events. /// (Since EFL 1.22) [Efl.Canvas.ISceneConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IScene : Efl.Eo.IWrapper, IDisposable { /// Get the maximum image size the canvas can possibly handle. /// This function returns the largest image or surface size that the canvas can handle in pixels, and if there is one, returns true. It returns false if no extra constraint on maximum image size exists. /// /// The default limit is 65535x65535. /// (Since EFL 1.22) /// The maximum image size (in pixels). /// true on success, false otherwise bool GetImageMaxSize(out Eina.Size2D max); /// Get if the canvas is currently calculating group objects. /// (Since EFL 1.22) /// true if currently calculating group objects. bool GetGroupObjectsCalculating(); /// Get a device by name. /// (Since EFL 1.22) /// /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The name of the seat to find. /// The device or seat, null if not found. Efl.Input.Device GetDevice(System.String name); /// Get a seat by id. /// (Since EFL 1.22) /// /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The id of the seat to find. /// The seat or null if not found. Efl.Input.Device GetSeat(int id); /// Get the default seat. /// (Since EFL 1.22) /// /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The default seat or null if one does not exist. Efl.Input.Device GetSeatDefault(); /// This function returns the current known pointer coordinates /// This function returns the current position of the main input pointer (mouse, pen, etc...). /// (Since EFL 1.22) /// /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The seat, or null to use the default. /// The pointer position in pixels. /// true if a pointer exists for the given seat, otherwise false. bool GetPointerPosition(Efl.Input.Device seat, out Eina.Position2D pos); /// Call user-provided calculate group functions and unset the flag signalling that the object needs to get recalculated to all group objects in the canvas. /// (Since EFL 1.22) void CalculateGroupObjects(); /// Retrieve a list of objects at a given position in a canvas. /// This function will traverse all the layers of the given canvas, from top to bottom, querying for objects with areas covering the given position. The user can exclude from the query objects which are hidden and/or which are set to pass events. /// /// Warning: This function will only evaluate top-level objects; child or "sub" objects will be skipped. /// (Since EFL 1.22) /// The pixel position. /// Boolean flag to include or not objects which pass events in this calculation. /// Boolean flag to include or not hidden objects in this calculation. /// The list of objects that are over the given position in e. Eina.Iterator GetObjectsAtXy(Eina.Position2D pos, bool include_pass_events_objects, bool include_hidden_objects); /// Retrieve the object stacked at the top of a given position in a canvas. /// This function will traverse all the layers of the given canvas, from top to bottom, querying for objects with areas covering the given position. The user can exclude from the query objects which are hidden and/or which are set to pass events. /// /// Warning: This function will only evaluate top-level objects; child or "sub" objects will be skipped. /// (Since EFL 1.22) /// The pixel position. /// Boolean flag to include or not objects which pass events in this calculation. /// Boolean flag to include or not hidden objects in this calculation. /// The canvas object that is over all other objects at the given position. Efl.Gfx.IEntity GetObjectTopAtXy(Eina.Position2D pos, bool include_pass_events_objects, bool include_hidden_objects); /// Retrieve a list of objects overlapping a given rectangular region in a canvas. /// This function will traverse all the layers of the given canvas, from top to bottom, querying for objects with areas overlapping with the given rectangular region. The user can exclude from the query objects which are hidden and/or which are set to pass events. /// /// Warning: This function will only evaluate top-level objects; child or "sub" objects will be skipped. /// (Since EFL 1.22) /// The rectangular region. /// Boolean flag to include or not objects which pass events in this calculation. /// Boolean flag to include or not hidden objects in this calculation. /// Iterator to objects Eina.Iterator GetObjectsInRectangle(Eina.Rect rect, bool include_pass_events_objects, bool include_hidden_objects); /// Retrieve the canvas object stacked at the top of a given rectangular region in a canvas /// This function will traverse all the layers of the given canvas, from top to bottom, querying for objects with areas overlapping with the given rectangular region. The user can exclude from the query objects which are hidden and/or which are set to pass events. /// /// Warning: This function will only evaluate top-level objects; child or "sub" objects will be skipped. /// (Since EFL 1.22) /// The rectangular region. /// Boolean flag to include or not objects which pass events in this calculation. /// Boolean flag to include or not hidden objects in this calculation. /// The object that is over all other objects at the given rectangular region. Efl.Gfx.IEntity GetObjectTopInRectangle(Eina.Rect rect, bool include_pass_events_objects, bool include_hidden_objects); /// Iterate over the available input device seats for the canvas. /// A "seat" is the term used for a group of input devices, typically including a pointer and a keyboard. A seat object is the parent of the individual input devices. /// (Since EFL 1.22) /// /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// An iterator over the attached seats. Eina.Iterator Seats(); /// Called when scene got focus /// (Since EFL 1.22) event EventHandler SceneFocusInEvt; /// Called when scene lost focus /// (Since EFL 1.22) event EventHandler SceneFocusOutEvt; /// Called when object got focus /// (Since EFL 1.22) /// event EventHandler ObjectFocusInEvt; /// Called when object lost focus /// (Since EFL 1.22) /// event EventHandler ObjectFocusOutEvt; /// Called when pre render happens /// (Since EFL 1.22) event EventHandler RenderPreEvt; /// Called when post render happens /// (Since EFL 1.22) /// event EventHandler RenderPostEvt; /// Called when input device changed /// (Since EFL 1.22) /// event EventHandler DeviceChangedEvt; /// Called when input device was added /// (Since EFL 1.22) /// event EventHandler DeviceAddedEvt; /// Called when input device was removed /// (Since EFL 1.22) /// event EventHandler DeviceRemovedEvt; /// Get the maximum image size the canvas can possibly handle. /// This function returns the largest image or surface size that the canvas can handle in pixels, and if there is one, returns true. It returns false if no extra constraint on maximum image size exists. /// /// The default limit is 65535x65535. /// (Since EFL 1.22) /// true on success, false otherwise Eina.Size2D ImageMaxSize { get; } /// Get if the canvas is currently calculating group objects. /// (Since EFL 1.22) /// true if currently calculating group objects. bool GroupObjectsCalculating { get; } /// Get the default seat attached to this canvas. /// A canvas may have exactly one default seat. /// /// See also to find a seat by name. See also to find a seat by id. /// (Since EFL 1.22) /// /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// The default seat or null if one does not exist. Efl.Input.Device SeatDefault { get; } } /// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ISceneObjectFocusInEvt_Args : EventArgs { /// Actual event payload. /// Called when object got focus public Efl.Input.Focus arg { get; set; } } /// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ISceneObjectFocusOutEvt_Args : EventArgs { /// Actual event payload. /// Called when object lost focus public Efl.Input.Focus arg { get; set; } } /// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ISceneRenderPostEvt_Args : EventArgs { /// Actual event payload. /// Called when post render happens public Efl.Gfx.Event.RenderPost arg { get; set; } } /// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ISceneDeviceChangedEvt_Args : EventArgs { /// Actual event payload. /// Called when input device changed public Efl.Input.Device arg { get; set; } } /// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ISceneDeviceAddedEvt_Args : EventArgs { /// Actual event payload. /// Called when input device was added public Efl.Input.Device arg { get; set; } } /// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ISceneDeviceRemovedEvt_Args : EventArgs { /// Actual event payload. /// Called when input device was removed public Efl.Input.Device arg { get; set; } } /// Interface containing basic canvas-related methods and events. /// (Since EFL 1.22) sealed public class ISceneConcrete : Efl.Eo.EoWrapper , IScene { /// Pointer to the native class description. public override System.IntPtr NativeClass { get { if (((object)this).GetType() == typeof(ISceneConcrete)) { return GetEflClassStatic(); } else { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; } } } /// 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. private ISceneConcrete(ConstructingHandle ch) : base(ch) { } [System.Runtime.InteropServices.DllImport("libefl.so.1")] internal static extern System.IntPtr efl_canvas_scene_interface_get(); /// Initializes a new instance of the class. /// Internal usage: This is used when interacting with C code and should not be used directly. /// The native pointer to be wrapped. private ISceneConcrete(Efl.Eo.Globals.WrappingHandle wh) : base(wh) { } /// Called when scene got focus /// (Since EFL 1.22) public event EventHandler SceneFocusInEvt { 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_CANVAS_SCENE_EVENT_SCENE_FOCUS_IN"; AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_IN"; RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } /// Method to raise event SceneFocusInEvt. public void OnSceneFocusInEvt(EventArgs e) { var key = "_EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_IN"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, 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 scene lost focus /// (Since EFL 1.22) public event EventHandler SceneFocusOutEvt { 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_CANVAS_SCENE_EVENT_SCENE_FOCUS_OUT"; AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_OUT"; RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } /// Method to raise event SceneFocusOutEvt. public void OnSceneFocusOutEvt(EventArgs e) { var key = "_EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_OUT"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, 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 object got focus /// (Since EFL 1.22) /// public event EventHandler ObjectFocusInEvt { 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.Canvas.ISceneObjectFocusInEvt_Args args = new Efl.Canvas.ISceneObjectFocusInEvt_Args(); args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus); try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_IN"; AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_IN"; RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } /// Method to raise event ObjectFocusInEvt. public void OnObjectFocusInEvt(Efl.Canvas.ISceneObjectFocusInEvt_Args e) { var key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_IN"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } IntPtr info = e.arg.NativeHandle; Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Called when object lost focus /// (Since EFL 1.22) /// public event EventHandler ObjectFocusOutEvt { 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.Canvas.ISceneObjectFocusOutEvt_Args args = new Efl.Canvas.ISceneObjectFocusOutEvt_Args(); args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus); try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_OUT"; AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_OUT"; RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } /// Method to raise event ObjectFocusOutEvt. public void OnObjectFocusOutEvt(Efl.Canvas.ISceneObjectFocusOutEvt_Args e) { var key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_OUT"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } IntPtr info = e.arg.NativeHandle; Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Called when pre render happens /// (Since EFL 1.22) public event EventHandler RenderPreEvt { 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_CANVAS_SCENE_EVENT_RENDER_PRE"; AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_CANVAS_SCENE_EVENT_RENDER_PRE"; RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } /// Method to raise event RenderPreEvt. public void OnRenderPreEvt(EventArgs e) { var key = "_EFL_CANVAS_SCENE_EVENT_RENDER_PRE"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, 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 post render happens /// (Since EFL 1.22) /// public event EventHandler RenderPostEvt { 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.Canvas.ISceneRenderPostEvt_Args args = new Efl.Canvas.ISceneRenderPostEvt_Args(); args.arg = 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_CANVAS_SCENE_EVENT_RENDER_POST"; AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_CANVAS_SCENE_EVENT_RENDER_POST"; RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } /// Method to raise event RenderPostEvt. public void OnRenderPostEvt(Efl.Canvas.ISceneRenderPostEvt_Args e) { var key = "_EFL_CANVAS_SCENE_EVENT_RENDER_POST"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); try { Marshal.StructureToPtr(e.arg, info, false); Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } finally { Marshal.FreeHGlobal(info); } } /// Called when input device changed /// (Since EFL 1.22) /// public event EventHandler DeviceChangedEvt { 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.Canvas.ISceneDeviceChangedEvt_Args args = new Efl.Canvas.ISceneDeviceChangedEvt_Args(); args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Device); try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_CHANGED"; AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_CHANGED"; RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } /// Method to raise event DeviceChangedEvt. public void OnDeviceChangedEvt(Efl.Canvas.ISceneDeviceChangedEvt_Args e) { var key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_CHANGED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } IntPtr info = e.arg.NativeHandle; Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Called when input device was added /// (Since EFL 1.22) /// public event EventHandler DeviceAddedEvt { 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.Canvas.ISceneDeviceAddedEvt_Args args = new Efl.Canvas.ISceneDeviceAddedEvt_Args(); args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Device); try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_ADDED"; AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_ADDED"; RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } /// Method to raise event DeviceAddedEvt. public void OnDeviceAddedEvt(Efl.Canvas.ISceneDeviceAddedEvt_Args e) { var key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_ADDED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } IntPtr info = e.arg.NativeHandle; Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Called when input device was removed /// (Since EFL 1.22) /// public event EventHandler DeviceRemovedEvt { 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.Canvas.ISceneDeviceRemovedEvt_Args args = new Efl.Canvas.ISceneDeviceRemovedEvt_Args(); args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Device); try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_REMOVED"; AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_REMOVED"; RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } /// Method to raise event DeviceRemovedEvt. public void OnDeviceRemovedEvt(Efl.Canvas.ISceneDeviceRemovedEvt_Args e) { var key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_REMOVED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } IntPtr info = e.arg.NativeHandle; Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Get the maximum image size the canvas can possibly handle. /// This function returns the largest image or surface size that the canvas can handle in pixels, and if there is one, returns true. It returns false if no extra constraint on maximum image size exists. /// /// The default limit is 65535x65535. /// (Since EFL 1.22) /// The maximum image size (in pixels). /// true on success, false otherwise public bool GetImageMaxSize(out Eina.Size2D max) { var _out_max = new Eina.Size2D.NativeStruct(); var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_image_max_size_get_ptr.Value.Delegate(this.NativeHandle,out _out_max); Eina.Error.RaiseIfUnhandledException(); max = _out_max; return _ret_var; } /// Get if the canvas is currently calculating group objects. /// (Since EFL 1.22) /// true if currently calculating group objects. public bool GetGroupObjectsCalculating() { var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_group_objects_calculating_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get a device by name. /// (Since EFL 1.22) /// /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The name of the seat to find. /// The device or seat, null if not found. public Efl.Input.Device GetDevice(System.String name) { var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_device_get_ptr.Value.Delegate(this.NativeHandle,name); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get a seat by id. /// (Since EFL 1.22) /// /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The id of the seat to find. /// The seat or null if not found. public Efl.Input.Device GetSeat(int id) { var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_seat_get_ptr.Value.Delegate(this.NativeHandle,id); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get the default seat. /// (Since EFL 1.22) /// /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The default seat or null if one does not exist. public Efl.Input.Device GetSeatDefault() { var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_seat_default_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// This function returns the current known pointer coordinates /// This function returns the current position of the main input pointer (mouse, pen, etc...). /// (Since EFL 1.22) /// /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The seat, or null to use the default. /// The pointer position in pixels. /// true if a pointer exists for the given seat, otherwise false. public bool GetPointerPosition(Efl.Input.Device seat, out Eina.Position2D pos) { var _out_pos = new Eina.Position2D.NativeStruct(); var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_pointer_position_get_ptr.Value.Delegate(this.NativeHandle,seat, out _out_pos); Eina.Error.RaiseIfUnhandledException(); pos = _out_pos; return _ret_var; } /// Call user-provided calculate group functions and unset the flag signalling that the object needs to get recalculated to all group objects in the canvas. /// (Since EFL 1.22) public void CalculateGroupObjects() { Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_group_objects_calculate_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Retrieve a list of objects at a given position in a canvas. /// This function will traverse all the layers of the given canvas, from top to bottom, querying for objects with areas covering the given position. The user can exclude from the query objects which are hidden and/or which are set to pass events. /// /// Warning: This function will only evaluate top-level objects; child or "sub" objects will be skipped. /// (Since EFL 1.22) /// The pixel position. /// Boolean flag to include or not objects which pass events in this calculation. /// Boolean flag to include or not hidden objects in this calculation. /// The list of objects that are over the given position in e. public Eina.Iterator GetObjectsAtXy(Eina.Position2D pos, bool include_pass_events_objects, bool include_hidden_objects) { Eina.Position2D.NativeStruct _in_pos = pos; var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_objects_at_xy_get_ptr.Value.Delegate(this.NativeHandle,_in_pos, include_pass_events_objects, include_hidden_objects); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true); } /// Retrieve the object stacked at the top of a given position in a canvas. /// This function will traverse all the layers of the given canvas, from top to bottom, querying for objects with areas covering the given position. The user can exclude from the query objects which are hidden and/or which are set to pass events. /// /// Warning: This function will only evaluate top-level objects; child or "sub" objects will be skipped. /// (Since EFL 1.22) /// The pixel position. /// Boolean flag to include or not objects which pass events in this calculation. /// Boolean flag to include or not hidden objects in this calculation. /// The canvas object that is over all other objects at the given position. public Efl.Gfx.IEntity GetObjectTopAtXy(Eina.Position2D pos, bool include_pass_events_objects, bool include_hidden_objects) { Eina.Position2D.NativeStruct _in_pos = pos; var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_object_top_at_xy_get_ptr.Value.Delegate(this.NativeHandle,_in_pos, include_pass_events_objects, include_hidden_objects); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Retrieve a list of objects overlapping a given rectangular region in a canvas. /// This function will traverse all the layers of the given canvas, from top to bottom, querying for objects with areas overlapping with the given rectangular region. The user can exclude from the query objects which are hidden and/or which are set to pass events. /// /// Warning: This function will only evaluate top-level objects; child or "sub" objects will be skipped. /// (Since EFL 1.22) /// The rectangular region. /// Boolean flag to include or not objects which pass events in this calculation. /// Boolean flag to include or not hidden objects in this calculation. /// Iterator to objects public Eina.Iterator GetObjectsInRectangle(Eina.Rect rect, bool include_pass_events_objects, bool include_hidden_objects) { Eina.Rect.NativeStruct _in_rect = rect; var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_objects_in_rectangle_get_ptr.Value.Delegate(this.NativeHandle,_in_rect, include_pass_events_objects, include_hidden_objects); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true); } /// Retrieve the canvas object stacked at the top of a given rectangular region in a canvas /// This function will traverse all the layers of the given canvas, from top to bottom, querying for objects with areas overlapping with the given rectangular region. The user can exclude from the query objects which are hidden and/or which are set to pass events. /// /// Warning: This function will only evaluate top-level objects; child or "sub" objects will be skipped. /// (Since EFL 1.22) /// The rectangular region. /// Boolean flag to include or not objects which pass events in this calculation. /// Boolean flag to include or not hidden objects in this calculation. /// The object that is over all other objects at the given rectangular region. public Efl.Gfx.IEntity GetObjectTopInRectangle(Eina.Rect rect, bool include_pass_events_objects, bool include_hidden_objects) { Eina.Rect.NativeStruct _in_rect = rect; var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_object_top_in_rectangle_get_ptr.Value.Delegate(this.NativeHandle,_in_rect, include_pass_events_objects, include_hidden_objects); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Iterate over the available input device seats for the canvas. /// A "seat" is the term used for a group of input devices, typically including a pointer and a keyboard. A seat object is the parent of the individual input devices. /// (Since EFL 1.22) /// /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// An iterator over the attached seats. public Eina.Iterator Seats() { var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_seats_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true); } /// Get the maximum image size the canvas can possibly handle. /// This function returns the largest image or surface size that the canvas can handle in pixels, and if there is one, returns true. It returns false if no extra constraint on maximum image size exists. /// /// The default limit is 65535x65535. /// (Since EFL 1.22) /// true on success, false otherwise public Eina.Size2D ImageMaxSize { get { Eina.Size2D _out_max = default(Eina.Size2D); GetImageMaxSize(out _out_max); return (_out_max); } } /// Get if the canvas is currently calculating group objects. /// (Since EFL 1.22) /// true if currently calculating group objects. public bool GroupObjectsCalculating { get { return GetGroupObjectsCalculating(); } } /// Get the default seat attached to this canvas. /// A canvas may have exactly one default seat. /// /// See also to find a seat by name. See also to find a seat by id. /// (Since EFL 1.22) /// /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// The default seat or null if one does not exist. public Efl.Input.Device SeatDefault { get { return GetSeatDefault(); } } private static IntPtr GetEflClassStatic() { return Efl.Canvas.ISceneConcrete.efl_canvas_scene_interface_get(); } /// Wrapper for native methods and virtual method delegates. /// For internal use by generated code only. public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods { private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl); /// 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_canvas_scene_image_max_size_get_static_delegate == null) { efl_canvas_scene_image_max_size_get_static_delegate = new efl_canvas_scene_image_max_size_get_delegate(image_max_size_get); } if (methods.FirstOrDefault(m => m.Name == "GetImageMaxSize") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_image_max_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_image_max_size_get_static_delegate) }); } if (efl_canvas_scene_group_objects_calculating_get_static_delegate == null) { efl_canvas_scene_group_objects_calculating_get_static_delegate = new efl_canvas_scene_group_objects_calculating_get_delegate(group_objects_calculating_get); } if (methods.FirstOrDefault(m => m.Name == "GetGroupObjectsCalculating") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_group_objects_calculating_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_group_objects_calculating_get_static_delegate) }); } if (efl_canvas_scene_device_get_static_delegate == null) { efl_canvas_scene_device_get_static_delegate = new efl_canvas_scene_device_get_delegate(device_get); } if (methods.FirstOrDefault(m => m.Name == "GetDevice") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_device_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_device_get_static_delegate) }); } if (efl_canvas_scene_seat_get_static_delegate == null) { efl_canvas_scene_seat_get_static_delegate = new efl_canvas_scene_seat_get_delegate(seat_get); } if (methods.FirstOrDefault(m => m.Name == "GetSeat") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_seat_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_seat_get_static_delegate) }); } if (efl_canvas_scene_seat_default_get_static_delegate == null) { efl_canvas_scene_seat_default_get_static_delegate = new efl_canvas_scene_seat_default_get_delegate(seat_default_get); } if (methods.FirstOrDefault(m => m.Name == "GetSeatDefault") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_seat_default_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_seat_default_get_static_delegate) }); } if (efl_canvas_scene_pointer_position_get_static_delegate == null) { efl_canvas_scene_pointer_position_get_static_delegate = new efl_canvas_scene_pointer_position_get_delegate(pointer_position_get); } if (methods.FirstOrDefault(m => m.Name == "GetPointerPosition") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_pointer_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_pointer_position_get_static_delegate) }); } if (efl_canvas_scene_group_objects_calculate_static_delegate == null) { efl_canvas_scene_group_objects_calculate_static_delegate = new efl_canvas_scene_group_objects_calculate_delegate(group_objects_calculate); } if (methods.FirstOrDefault(m => m.Name == "CalculateGroupObjects") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_group_objects_calculate"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_group_objects_calculate_static_delegate) }); } if (efl_canvas_scene_objects_at_xy_get_static_delegate == null) { efl_canvas_scene_objects_at_xy_get_static_delegate = new efl_canvas_scene_objects_at_xy_get_delegate(objects_at_xy_get); } if (methods.FirstOrDefault(m => m.Name == "GetObjectsAtXy") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_objects_at_xy_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_objects_at_xy_get_static_delegate) }); } if (efl_canvas_scene_object_top_at_xy_get_static_delegate == null) { efl_canvas_scene_object_top_at_xy_get_static_delegate = new efl_canvas_scene_object_top_at_xy_get_delegate(object_top_at_xy_get); } if (methods.FirstOrDefault(m => m.Name == "GetObjectTopAtXy") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_object_top_at_xy_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_object_top_at_xy_get_static_delegate) }); } if (efl_canvas_scene_objects_in_rectangle_get_static_delegate == null) { efl_canvas_scene_objects_in_rectangle_get_static_delegate = new efl_canvas_scene_objects_in_rectangle_get_delegate(objects_in_rectangle_get); } if (methods.FirstOrDefault(m => m.Name == "GetObjectsInRectangle") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_objects_in_rectangle_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_objects_in_rectangle_get_static_delegate) }); } if (efl_canvas_scene_object_top_in_rectangle_get_static_delegate == null) { efl_canvas_scene_object_top_in_rectangle_get_static_delegate = new efl_canvas_scene_object_top_in_rectangle_get_delegate(object_top_in_rectangle_get); } if (methods.FirstOrDefault(m => m.Name == "GetObjectTopInRectangle") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_object_top_in_rectangle_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_object_top_in_rectangle_get_static_delegate) }); } if (efl_canvas_scene_seats_static_delegate == null) { efl_canvas_scene_seats_static_delegate = new efl_canvas_scene_seats_delegate(seats); } if (methods.FirstOrDefault(m => m.Name == "Seats") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_seats"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_seats_static_delegate) }); } return descs; } /// Returns the Eo class for the native methods of this class. /// The native class pointer. public override IntPtr GetEflClass() { return Efl.Canvas.ISceneConcrete.efl_canvas_scene_interface_get(); } #pragma warning disable CA1707, CS1591, SA1300, SA1600 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_scene_image_max_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out Eina.Size2D.NativeStruct max); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_scene_image_max_size_get_api_delegate(System.IntPtr obj, out Eina.Size2D.NativeStruct max); public static Efl.Eo.FunctionWrapper efl_canvas_scene_image_max_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_image_max_size_get"); private static bool image_max_size_get(System.IntPtr obj, System.IntPtr pd, out Eina.Size2D.NativeStruct max) { Eina.Log.Debug("function efl_canvas_scene_image_max_size_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Size2D _out_max = default(Eina.Size2D); bool _ret_var = default(bool); try { _ret_var = ((IScene)ws.Target).GetImageMaxSize(out _out_max); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } max = _out_max; return _ret_var; } else { return efl_canvas_scene_image_max_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out max); } } private static efl_canvas_scene_image_max_size_get_delegate efl_canvas_scene_image_max_size_get_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_scene_group_objects_calculating_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_scene_group_objects_calculating_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_canvas_scene_group_objects_calculating_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_group_objects_calculating_get"); private static bool group_objects_calculating_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_canvas_scene_group_objects_calculating_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((IScene)ws.Target).GetGroupObjectsCalculating(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_canvas_scene_group_objects_calculating_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_canvas_scene_group_objects_calculating_get_delegate efl_canvas_scene_group_objects_calculating_get_static_delegate; [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] private delegate Efl.Input.Device efl_canvas_scene_device_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] public delegate Efl.Input.Device efl_canvas_scene_device_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); public static Efl.Eo.FunctionWrapper efl_canvas_scene_device_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_device_get"); private static Efl.Input.Device device_get(System.IntPtr obj, System.IntPtr pd, System.String name) { Eina.Log.Debug("function efl_canvas_scene_device_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Input.Device _ret_var = default(Efl.Input.Device); try { _ret_var = ((IScene)ws.Target).GetDevice(name); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_canvas_scene_device_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); } } private static efl_canvas_scene_device_get_delegate efl_canvas_scene_device_get_static_delegate; [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] private delegate Efl.Input.Device efl_canvas_scene_seat_get_delegate(System.IntPtr obj, System.IntPtr pd, int id); [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] public delegate Efl.Input.Device efl_canvas_scene_seat_get_api_delegate(System.IntPtr obj, int id); public static Efl.Eo.FunctionWrapper efl_canvas_scene_seat_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_seat_get"); private static Efl.Input.Device seat_get(System.IntPtr obj, System.IntPtr pd, int id) { Eina.Log.Debug("function efl_canvas_scene_seat_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Input.Device _ret_var = default(Efl.Input.Device); try { _ret_var = ((IScene)ws.Target).GetSeat(id); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_canvas_scene_seat_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); } } private static efl_canvas_scene_seat_get_delegate efl_canvas_scene_seat_get_static_delegate; [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] private delegate Efl.Input.Device efl_canvas_scene_seat_default_get_delegate(System.IntPtr obj, System.IntPtr pd); [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] public delegate Efl.Input.Device efl_canvas_scene_seat_default_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_canvas_scene_seat_default_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_seat_default_get"); private static Efl.Input.Device seat_default_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_canvas_scene_seat_default_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Input.Device _ret_var = default(Efl.Input.Device); try { _ret_var = ((IScene)ws.Target).GetSeatDefault(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_canvas_scene_seat_default_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_canvas_scene_seat_default_get_delegate efl_canvas_scene_seat_default_get_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_scene_pointer_position_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat, out Eina.Position2D.NativeStruct pos); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_scene_pointer_position_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat, out Eina.Position2D.NativeStruct pos); public static Efl.Eo.FunctionWrapper efl_canvas_scene_pointer_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_pointer_position_get"); private static bool pointer_position_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device seat, out Eina.Position2D.NativeStruct pos) { Eina.Log.Debug("function efl_canvas_scene_pointer_position_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Position2D _out_pos = default(Eina.Position2D); bool _ret_var = default(bool); try { _ret_var = ((IScene)ws.Target).GetPointerPosition(seat, out _out_pos); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } pos = _out_pos; return _ret_var; } else { return efl_canvas_scene_pointer_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat, out pos); } } private static efl_canvas_scene_pointer_position_get_delegate efl_canvas_scene_pointer_position_get_static_delegate; private delegate void efl_canvas_scene_group_objects_calculate_delegate(System.IntPtr obj, System.IntPtr pd); public delegate void efl_canvas_scene_group_objects_calculate_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_canvas_scene_group_objects_calculate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_group_objects_calculate"); private static void group_objects_calculate(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_canvas_scene_group_objects_calculate was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((IScene)ws.Target).CalculateGroupObjects(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_canvas_scene_group_objects_calculate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_canvas_scene_group_objects_calculate_delegate efl_canvas_scene_group_objects_calculate_static_delegate; private delegate System.IntPtr efl_canvas_scene_objects_at_xy_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); public delegate System.IntPtr efl_canvas_scene_objects_at_xy_get_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); public static Efl.Eo.FunctionWrapper efl_canvas_scene_objects_at_xy_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_objects_at_xy_get"); private static System.IntPtr objects_at_xy_get(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos, bool include_pass_events_objects, bool include_hidden_objects) { Eina.Log.Debug("function efl_canvas_scene_objects_at_xy_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Position2D _in_pos = pos; Eina.Iterator _ret_var = default(Eina.Iterator); try { _ret_var = ((IScene)ws.Target).GetObjectsAtXy(_in_pos, include_pass_events_objects, include_hidden_objects); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } _ret_var.Own = false; return _ret_var.Handle; } else { return efl_canvas_scene_objects_at_xy_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos, include_pass_events_objects, include_hidden_objects); } } private static efl_canvas_scene_objects_at_xy_get_delegate efl_canvas_scene_objects_at_xy_get_static_delegate; [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] private delegate Efl.Gfx.IEntity efl_canvas_scene_object_top_at_xy_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] public delegate Efl.Gfx.IEntity efl_canvas_scene_object_top_at_xy_get_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); public static Efl.Eo.FunctionWrapper efl_canvas_scene_object_top_at_xy_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_object_top_at_xy_get"); private static Efl.Gfx.IEntity object_top_at_xy_get(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos, bool include_pass_events_objects, bool include_hidden_objects) { Eina.Log.Debug("function efl_canvas_scene_object_top_at_xy_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Position2D _in_pos = pos; Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); try { _ret_var = ((IScene)ws.Target).GetObjectTopAtXy(_in_pos, include_pass_events_objects, include_hidden_objects); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_canvas_scene_object_top_at_xy_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos, include_pass_events_objects, include_hidden_objects); } } private static efl_canvas_scene_object_top_at_xy_get_delegate efl_canvas_scene_object_top_at_xy_get_static_delegate; private delegate System.IntPtr efl_canvas_scene_objects_in_rectangle_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); public delegate System.IntPtr efl_canvas_scene_objects_in_rectangle_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); public static Efl.Eo.FunctionWrapper efl_canvas_scene_objects_in_rectangle_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_objects_in_rectangle_get"); private static System.IntPtr objects_in_rectangle_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool include_pass_events_objects, bool include_hidden_objects) { Eina.Log.Debug("function efl_canvas_scene_objects_in_rectangle_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Rect _in_rect = rect; Eina.Iterator _ret_var = default(Eina.Iterator); try { _ret_var = ((IScene)ws.Target).GetObjectsInRectangle(_in_rect, include_pass_events_objects, include_hidden_objects); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } _ret_var.Own = false; return _ret_var.Handle; } else { return efl_canvas_scene_objects_in_rectangle_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, include_pass_events_objects, include_hidden_objects); } } private static efl_canvas_scene_objects_in_rectangle_get_delegate efl_canvas_scene_objects_in_rectangle_get_static_delegate; [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] private delegate Efl.Gfx.IEntity efl_canvas_scene_object_top_in_rectangle_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] public delegate Efl.Gfx.IEntity efl_canvas_scene_object_top_in_rectangle_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); public static Efl.Eo.FunctionWrapper efl_canvas_scene_object_top_in_rectangle_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_object_top_in_rectangle_get"); private static Efl.Gfx.IEntity object_top_in_rectangle_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool include_pass_events_objects, bool include_hidden_objects) { Eina.Log.Debug("function efl_canvas_scene_object_top_in_rectangle_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Rect _in_rect = rect; Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); try { _ret_var = ((IScene)ws.Target).GetObjectTopInRectangle(_in_rect, include_pass_events_objects, include_hidden_objects); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_canvas_scene_object_top_in_rectangle_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, include_pass_events_objects, include_hidden_objects); } } private static efl_canvas_scene_object_top_in_rectangle_get_delegate efl_canvas_scene_object_top_in_rectangle_get_static_delegate; private delegate System.IntPtr efl_canvas_scene_seats_delegate(System.IntPtr obj, System.IntPtr pd); public delegate System.IntPtr efl_canvas_scene_seats_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_canvas_scene_seats_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_seats"); private static System.IntPtr seats(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_canvas_scene_seats was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Iterator _ret_var = default(Eina.Iterator); try { _ret_var = ((IScene)ws.Target).Seats(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } _ret_var.Own = false; return _ret_var.Handle; } else { return efl_canvas_scene_seats_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_canvas_scene_seats_delegate efl_canvas_scene_seats_static_delegate; #pragma warning restore CA1707, CS1591, SA1300, SA1600 } } } } #if EFL_BETA #pragma warning disable CS1591 public static class Efl_CanvasISceneConcrete_ExtensionMethods { } #pragma warning restore CS1591 #endif