#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 Gfx { /// Efl graphics interface /// (Since EFL 1.22) [Efl.Gfx.IEntityConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IEntity : Efl.Eo.IWrapper, IDisposable { /// Retrieves the position of the given canvas object. /// (Since EFL 1.22) /// A 2D coordinate in pixel units. Eina.Position2D GetPosition(); /// Moves the given canvas object to the given location inside its canvas' viewport. If unchanged this call may be entirely skipped, but if changed this will trigger move events, as well as potential pointer,in or pointer,out events. /// (Since EFL 1.22) /// A 2D coordinate in pixel units. void SetPosition(Eina.Position2D pos); /// Retrieves the (rectangular) size of the given Evas object. /// (Since EFL 1.22) /// A 2D size in pixel units. Eina.Size2D GetSize(); /// Changes the size of the given object. /// Note that setting the actual size of an object might be the job of its container, so this function might have no effect. Look at instead, when manipulating widgets. /// (Since EFL 1.22) /// A 2D size in pixel units. void SetSize(Eina.Size2D size); /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. Eina.Rect GetGeometry(); /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. void SetGeometry(Eina.Rect rect); /// Retrieves whether or not the given canvas object is visible. /// (Since EFL 1.22) /// true if to make the object visible, false otherwise bool GetVisible(); /// Shows or hides this object. /// (Since EFL 1.22) /// true if to make the object visible, false otherwise void SetVisible(bool v); /// Gets an object's scaling factor. /// (Since EFL 1.22) /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) double GetScale(); /// Sets the scaling factor of an object. /// (Since EFL 1.22) /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) void SetScale(double scale); /// Object's visibility state changed, the event value is the new state. /// (Since EFL 1.22) /// event EventHandler VisibilityChangedEvt; /// Object was moved, its position during the event is the new one. /// (Since EFL 1.22) /// event EventHandler PositionChangedEvt; /// Object was resized, its size during the event is the new one. /// (Since EFL 1.22) /// event EventHandler SizeChangedEvt; /// The 2D position of a canvas object. /// The position is absolute, in pixels, relative to the top-left corner of the window, within its border decorations (application space). /// (Since EFL 1.22) /// A 2D coordinate in pixel units. Eina.Position2D Position { get; set; } /// The 2D size of a canvas object. /// (Since EFL 1.22) /// A 2D size in pixel units. Eina.Size2D Size { get; set; } /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. Eina.Rect Geometry { get; set; } /// The visibility of a canvas object. /// All canvas objects will become visible by default just before render. This means that it is not required to call after creating an object unless you want to create it without showing it. Note that this behavior is new since 1.21, and only applies to canvas objects created with the EO API (i.e. not the legacy C-only API). Other types of Gfx objects may or may not be visible by default. /// /// Note that many other parameters can prevent a visible object from actually being "visible" on screen. For instance if its color is fully transparent, or its parent is hidden, or it is clipped out, etc... /// (Since EFL 1.22) /// true if to make the object visible, false otherwise bool Visible { get; set; } /// The scaling factor of an object. /// This property is an individual scaling factor on the object (Edje or UI widget). This property (or Edje's global scaling factor, when applicable), will affect this object's part sizes. If scale is not zero, than the individual scaling will override any global scaling set, for the object obj's parts. Set it back to zero to get the effects of the global scaling again. /// /// Warning: In Edje, only parts which, at EDC level, had the "scale" property set to 1, will be affected by this function. Check the complete "syntax reference" for EDC files. /// (Since EFL 1.22) /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) double Scale { get; set; } } /// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IEntityVisibilityChangedEvt_Args : EventArgs { /// Actual event payload. /// Object's visibility state changed, the event value is the new state. public bool arg { get; set; } } /// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IEntityPositionChangedEvt_Args : EventArgs { /// Actual event payload. /// Object was moved, its position during the event is the new one. public Eina.Position2D arg { get; set; } } /// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IEntitySizeChangedEvt_Args : EventArgs { /// Actual event payload. /// Object was resized, its size during the event is the new one. public Eina.Size2D arg { get; set; } } /// Efl graphics interface /// (Since EFL 1.22) sealed public class IEntityConcrete : Efl.Eo.EoWrapper , IEntity { /// Pointer to the native class description. public override System.IntPtr NativeClass { get { if (((object)this).GetType() == typeof(IEntityConcrete)) { 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 IEntityConcrete(ConstructingHandle ch) : base(ch) { } [System.Runtime.InteropServices.DllImport("libefl.so.1")] internal static extern System.IntPtr efl_gfx_entity_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 IEntityConcrete(Efl.Eo.Globals.WrappingHandle wh) : base(wh) { } /// Object's visibility state changed, the event value is the new state. /// (Since EFL 1.22) /// public event EventHandler VisibilityChangedEvt { 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.Gfx.IEntityVisibilityChangedEvt_Args args = new Efl.Gfx.IEntityVisibilityChangedEvt_Args(); args.arg = Marshal.ReadByte(evt.Info) != 0; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } /// Method to raise event VisibilityChangedEvt. public void OnVisibilityChangedEvt(Efl.Gfx.IEntityVisibilityChangedEvt_Args e) { var key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_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 = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); try { Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } finally { Marshal.FreeHGlobal(info); } } /// Object was moved, its position during the event is the new one. /// (Since EFL 1.22) /// public event EventHandler PositionChangedEvt { 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.Gfx.IEntityPositionChangedEvt_Args args = new Efl.Gfx.IEntityPositionChangedEvt_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_GFX_ENTITY_EVENT_POSITION_CHANGED"; AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_GFX_ENTITY_EVENT_POSITION_CHANGED"; RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } /// Method to raise event PositionChangedEvt. public void OnPositionChangedEvt(Efl.Gfx.IEntityPositionChangedEvt_Args e) { var key = "_EFL_GFX_ENTITY_EVENT_POSITION_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 = 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); } } /// Object was resized, its size during the event is the new one. /// (Since EFL 1.22) /// public event EventHandler SizeChangedEvt { 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.Gfx.IEntitySizeChangedEvt_Args args = new Efl.Gfx.IEntitySizeChangedEvt_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_GFX_ENTITY_EVENT_SIZE_CHANGED"; AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_GFX_ENTITY_EVENT_SIZE_CHANGED"; RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } /// Method to raise event SizeChangedEvt. public void OnSizeChangedEvt(Efl.Gfx.IEntitySizeChangedEvt_Args e) { var key = "_EFL_GFX_ENTITY_EVENT_SIZE_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 = 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); } } /// Retrieves the position of the given canvas object. /// (Since EFL 1.22) /// A 2D coordinate in pixel units. public Eina.Position2D GetPosition() { var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_position_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Moves the given canvas object to the given location inside its canvas' viewport. If unchanged this call may be entirely skipped, but if changed this will trigger move events, as well as potential pointer,in or pointer,out events. /// (Since EFL 1.22) /// A 2D coordinate in pixel units. public void SetPosition(Eina.Position2D pos) { Eina.Position2D.NativeStruct _in_pos = pos; Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_position_set_ptr.Value.Delegate(this.NativeHandle,_in_pos); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the (rectangular) size of the given Evas object. /// (Since EFL 1.22) /// A 2D size in pixel units. public Eina.Size2D GetSize() { var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_size_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Changes the size of the given object. /// Note that setting the actual size of an object might be the job of its container, so this function might have no effect. Look at instead, when manipulating widgets. /// (Since EFL 1.22) /// A 2D size in pixel units. public void SetSize(Eina.Size2D size) { Eina.Size2D.NativeStruct _in_size = size; Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_size_set_ptr.Value.Delegate(this.NativeHandle,_in_size); Eina.Error.RaiseIfUnhandledException(); } /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. public Eina.Rect GetGeometry() { var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_geometry_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. public void SetGeometry(Eina.Rect rect) { Eina.Rect.NativeStruct _in_rect = rect; Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_geometry_set_ptr.Value.Delegate(this.NativeHandle,_in_rect); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves whether or not the given canvas object is visible. /// (Since EFL 1.22) /// true if to make the object visible, false otherwise public bool GetVisible() { var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_visible_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Shows or hides this object. /// (Since EFL 1.22) /// true if to make the object visible, false otherwise public void SetVisible(bool v) { Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_visible_set_ptr.Value.Delegate(this.NativeHandle,v); Eina.Error.RaiseIfUnhandledException(); } /// Gets an object's scaling factor. /// (Since EFL 1.22) /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) public double GetScale() { var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_scale_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the scaling factor of an object. /// (Since EFL 1.22) /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) public void SetScale(double scale) { Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_scale_set_ptr.Value.Delegate(this.NativeHandle,scale); Eina.Error.RaiseIfUnhandledException(); } /// The 2D position of a canvas object. /// The position is absolute, in pixels, relative to the top-left corner of the window, within its border decorations (application space). /// (Since EFL 1.22) /// A 2D coordinate in pixel units. public Eina.Position2D Position { get { return GetPosition(); } set { SetPosition(value); } } /// The 2D size of a canvas object. /// (Since EFL 1.22) /// A 2D size in pixel units. public Eina.Size2D Size { get { return GetSize(); } set { SetSize(value); } } /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. public Eina.Rect Geometry { get { return GetGeometry(); } set { SetGeometry(value); } } /// The visibility of a canvas object. /// All canvas objects will become visible by default just before render. This means that it is not required to call after creating an object unless you want to create it without showing it. Note that this behavior is new since 1.21, and only applies to canvas objects created with the EO API (i.e. not the legacy C-only API). Other types of Gfx objects may or may not be visible by default. /// /// Note that many other parameters can prevent a visible object from actually being "visible" on screen. For instance if its color is fully transparent, or its parent is hidden, or it is clipped out, etc... /// (Since EFL 1.22) /// true if to make the object visible, false otherwise public bool Visible { get { return GetVisible(); } set { SetVisible(value); } } /// The scaling factor of an object. /// This property is an individual scaling factor on the object (Edje or UI widget). This property (or Edje's global scaling factor, when applicable), will affect this object's part sizes. If scale is not zero, than the individual scaling will override any global scaling set, for the object obj's parts. Set it back to zero to get the effects of the global scaling again. /// /// Warning: In Edje, only parts which, at EDC level, had the "scale" property set to 1, will be affected by this function. Check the complete "syntax reference" for EDC files. /// (Since EFL 1.22) /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) public double Scale { get { return GetScale(); } set { SetScale(value); } } private static IntPtr GetEflClassStatic() { return Efl.Gfx.IEntityConcrete.efl_gfx_entity_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_gfx_entity_position_get_static_delegate == null) { efl_gfx_entity_position_get_static_delegate = new efl_gfx_entity_position_get_delegate(position_get); } if (methods.FirstOrDefault(m => m.Name == "GetPosition") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_position_get_static_delegate) }); } if (efl_gfx_entity_position_set_static_delegate == null) { efl_gfx_entity_position_set_static_delegate = new efl_gfx_entity_position_set_delegate(position_set); } if (methods.FirstOrDefault(m => m.Name == "SetPosition") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_position_set_static_delegate) }); } if (efl_gfx_entity_size_get_static_delegate == null) { efl_gfx_entity_size_get_static_delegate = new efl_gfx_entity_size_get_delegate(size_get); } if (methods.FirstOrDefault(m => m.Name == "GetSize") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_size_get_static_delegate) }); } if (efl_gfx_entity_size_set_static_delegate == null) { efl_gfx_entity_size_set_static_delegate = new efl_gfx_entity_size_set_delegate(size_set); } if (methods.FirstOrDefault(m => m.Name == "SetSize") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_size_set_static_delegate) }); } if (efl_gfx_entity_geometry_get_static_delegate == null) { efl_gfx_entity_geometry_get_static_delegate = new efl_gfx_entity_geometry_get_delegate(geometry_get); } if (methods.FirstOrDefault(m => m.Name == "GetGeometry") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_geometry_get_static_delegate) }); } if (efl_gfx_entity_geometry_set_static_delegate == null) { efl_gfx_entity_geometry_set_static_delegate = new efl_gfx_entity_geometry_set_delegate(geometry_set); } if (methods.FirstOrDefault(m => m.Name == "SetGeometry") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_geometry_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_geometry_set_static_delegate) }); } if (efl_gfx_entity_visible_get_static_delegate == null) { efl_gfx_entity_visible_get_static_delegate = new efl_gfx_entity_visible_get_delegate(visible_get); } if (methods.FirstOrDefault(m => m.Name == "GetVisible") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_visible_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_visible_get_static_delegate) }); } if (efl_gfx_entity_visible_set_static_delegate == null) { efl_gfx_entity_visible_set_static_delegate = new efl_gfx_entity_visible_set_delegate(visible_set); } if (methods.FirstOrDefault(m => m.Name == "SetVisible") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_visible_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_visible_set_static_delegate) }); } if (efl_gfx_entity_scale_get_static_delegate == null) { efl_gfx_entity_scale_get_static_delegate = new efl_gfx_entity_scale_get_delegate(scale_get); } if (methods.FirstOrDefault(m => m.Name == "GetScale") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_scale_get_static_delegate) }); } if (efl_gfx_entity_scale_set_static_delegate == null) { efl_gfx_entity_scale_set_static_delegate = new efl_gfx_entity_scale_set_delegate(scale_set); } if (methods.FirstOrDefault(m => m.Name == "SetScale") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_scale_set_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.Gfx.IEntityConcrete.efl_gfx_entity_interface_get(); } #pragma warning disable CA1707, CS1591, SA1300, SA1600 private delegate Eina.Position2D.NativeStruct efl_gfx_entity_position_get_delegate(System.IntPtr obj, System.IntPtr pd); public delegate Eina.Position2D.NativeStruct efl_gfx_entity_position_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_gfx_entity_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_position_get"); private static Eina.Position2D.NativeStruct position_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_gfx_entity_position_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Position2D _ret_var = default(Eina.Position2D); try { _ret_var = ((IEntity)ws.Target).GetPosition(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_gfx_entity_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_gfx_entity_position_get_delegate efl_gfx_entity_position_get_static_delegate; private delegate void efl_gfx_entity_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); public delegate void efl_gfx_entity_position_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); public static Efl.Eo.FunctionWrapper efl_gfx_entity_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_position_set"); private static void position_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) { Eina.Log.Debug("function efl_gfx_entity_position_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Position2D _in_pos = pos; try { ((IEntity)ws.Target).SetPosition(_in_pos); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_gfx_entity_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); } } private static efl_gfx_entity_position_set_delegate efl_gfx_entity_position_set_static_delegate; private delegate Eina.Size2D.NativeStruct efl_gfx_entity_size_get_delegate(System.IntPtr obj, System.IntPtr pd); public delegate Eina.Size2D.NativeStruct efl_gfx_entity_size_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_gfx_entity_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_size_get"); private static Eina.Size2D.NativeStruct size_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_gfx_entity_size_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Size2D _ret_var = default(Eina.Size2D); try { _ret_var = ((IEntity)ws.Target).GetSize(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_gfx_entity_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_gfx_entity_size_get_delegate efl_gfx_entity_size_get_static_delegate; private delegate void efl_gfx_entity_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); public delegate void efl_gfx_entity_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); public static Efl.Eo.FunctionWrapper efl_gfx_entity_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_size_set"); private static void size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) { Eina.Log.Debug("function efl_gfx_entity_size_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Size2D _in_size = size; try { ((IEntity)ws.Target).SetSize(_in_size); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_gfx_entity_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); } } private static efl_gfx_entity_size_set_delegate efl_gfx_entity_size_set_static_delegate; private delegate Eina.Rect.NativeStruct efl_gfx_entity_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); public delegate Eina.Rect.NativeStruct efl_gfx_entity_geometry_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_gfx_entity_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_geometry_get"); private static Eina.Rect.NativeStruct geometry_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_gfx_entity_geometry_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Rect _ret_var = default(Eina.Rect); try { _ret_var = ((IEntity)ws.Target).GetGeometry(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_gfx_entity_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_gfx_entity_geometry_get_delegate efl_gfx_entity_geometry_get_static_delegate; private delegate void efl_gfx_entity_geometry_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect); public delegate void efl_gfx_entity_geometry_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect); public static Efl.Eo.FunctionWrapper efl_gfx_entity_geometry_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_geometry_set"); private static void geometry_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect) { Eina.Log.Debug("function efl_gfx_entity_geometry_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Rect _in_rect = rect; try { ((IEntity)ws.Target).SetGeometry(_in_rect); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_gfx_entity_geometry_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect); } } private static efl_gfx_entity_geometry_set_delegate efl_gfx_entity_geometry_set_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_entity_visible_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_entity_visible_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_gfx_entity_visible_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_visible_get"); private static bool visible_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_gfx_entity_visible_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((IEntity)ws.Target).GetVisible(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_gfx_entity_visible_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_gfx_entity_visible_get_delegate efl_gfx_entity_visible_get_static_delegate; private delegate void efl_gfx_entity_visible_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool v); public delegate void efl_gfx_entity_visible_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool v); public static Efl.Eo.FunctionWrapper efl_gfx_entity_visible_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_visible_set"); private static void visible_set(System.IntPtr obj, System.IntPtr pd, bool v) { Eina.Log.Debug("function efl_gfx_entity_visible_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((IEntity)ws.Target).SetVisible(v); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_gfx_entity_visible_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), v); } } private static efl_gfx_entity_visible_set_delegate efl_gfx_entity_visible_set_static_delegate; private delegate double efl_gfx_entity_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); public delegate double efl_gfx_entity_scale_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_gfx_entity_scale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_scale_get"); private static double scale_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_gfx_entity_scale_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { double _ret_var = default(double); try { _ret_var = ((IEntity)ws.Target).GetScale(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_gfx_entity_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_gfx_entity_scale_get_delegate efl_gfx_entity_scale_get_static_delegate; private delegate void efl_gfx_entity_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double scale); public delegate void efl_gfx_entity_scale_set_api_delegate(System.IntPtr obj, double scale); public static Efl.Eo.FunctionWrapper efl_gfx_entity_scale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_scale_set"); private static void scale_set(System.IntPtr obj, System.IntPtr pd, double scale) { Eina.Log.Debug("function efl_gfx_entity_scale_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((IEntity)ws.Target).SetScale(scale); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_gfx_entity_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale); } } private static efl_gfx_entity_scale_set_delegate efl_gfx_entity_scale_set_static_delegate; #pragma warning restore CA1707, CS1591, SA1300, SA1600 } } } } #if EFL_BETA #pragma warning disable CS1591 public static class Efl_GfxIEntityConcrete_ExtensionMethods { public static Efl.BindableProperty Position(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IEntity { return new Efl.BindableProperty("position", fac); } public static Efl.BindableProperty Size(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IEntity { return new Efl.BindableProperty("size", fac); } public static Efl.BindableProperty Geometry(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IEntity { return new Efl.BindableProperty("geometry", fac); } public static Efl.BindableProperty Visible(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IEntity { return new Efl.BindableProperty("visible", fac); } public static Efl.BindableProperty Scale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IEntity { return new Efl.BindableProperty("scale", fac); } } #pragma warning restore CS1591 #endif