#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 { /// Common class for part proxy objects for . /// As an implementation class, all objects of this class are meant to be used for one and only one function call. In pseudo-code, the use of object of this type looks like the following: rect = layout.part("somepart").geometry_get(); /// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.LayoutPart.NativeMethods] [Efl.Eo.BindingEntity] public class LayoutPart : Efl.Object, Efl.Gfx.IEntity, Efl.Ui.IDrag { /// Pointer to the native class description. public override System.IntPtr NativeClass { get { if (((object)this).GetType() == typeof(LayoutPart)) { return GetEflClassStatic(); } else { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; } } } [System.Runtime.InteropServices.DllImport(efl.Libs.Edje)] internal static extern System.IntPtr efl_canvas_layout_part_class_get(); /// Initializes a new instance of the class. /// Parent instance. public LayoutPart(Efl.Object parent= null ) : base(efl_canvas_layout_part_class_get(), parent) { 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 LayoutPart(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 LayoutPart(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 LayoutPart(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) { } /// 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.Edje, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; RemoveNativeEventHandler(efl.Libs.Edje, 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.Edje, 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.Edje, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_GFX_ENTITY_EVENT_POSITION_CHANGED"; RemoveNativeEventHandler(efl.Libs.Edje, 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.Edje, 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.Edje, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_GFX_ENTITY_EVENT_SIZE_CHANGED"; RemoveNativeEventHandler(efl.Libs.Edje, 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.Edje, 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); } } /// The name and value of the current state of this part (read-only). /// This is the state name as it appears in EDC description blocks. A state has both a name and a value (double). The default state is "default" 0.0, but this function will return "" if the part is invalid. /// The name of the state. /// The value of the state. virtual public void GetState(out System.String state, out double val) { Efl.Canvas.LayoutPart.NativeMethods.efl_canvas_layout_part_state_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out state, out val); Eina.Error.RaiseIfUnhandledException(); } /// Returns the type of the part. /// One of the types or none if not an existing part. virtual public Efl.Canvas.LayoutPartType GetPartType() { var _ret_var = Efl.Canvas.LayoutPart.NativeMethods.efl_canvas_layout_part_type_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Retrieves the position of the given canvas object. /// (Since EFL 1.22) /// A 2D coordinate in pixel units. virtual public Eina.Position2D GetPosition() { var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_position_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); 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. virtual public void SetPosition(Eina.Position2D pos) { Eina.Position2D.NativeStruct _in_pos = pos; Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_position_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_pos); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the (rectangular) size of the given Evas object. /// (Since EFL 1.22) /// A 2D size in pixel units. virtual public Eina.Size2D GetSize() { var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_size_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); 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. virtual public void SetSize(Eina.Size2D size) { Eina.Size2D.NativeStruct _in_size = size; Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_size_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_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. virtual public Eina.Rect GetGeometry() { var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_geometry_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); 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. virtual public void SetGeometry(Eina.Rect rect) { Eina.Rect.NativeStruct _in_rect = rect; Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_geometry_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_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 virtual public bool GetVisible() { var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_visible_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Shows or hides this object. /// (Since EFL 1.22) /// true if to make the object visible, false otherwise virtual public void SetVisible(bool v) { Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_visible_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),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) virtual public double GetScale() { var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_scale_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); 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) virtual public void SetScale(double scale) { Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_scale_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),scale); Eina.Error.RaiseIfUnhandledException(); } /// Gets the draggable object location. /// The x relative position, from 0 to 1. /// The y relative position, from 0 to 1. /// true on success, false otherwise virtual public bool GetDragValue(out double dx, out double dy) { var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_value_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out dx, out dy); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the draggable object location. /// This places the draggable object at the given location. /// The x relative position, from 0 to 1. /// The y relative position, from 0 to 1. /// true on success, false otherwise virtual public bool SetDragValue(double dx, double dy) { var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_value_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),dx, dy); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets the size of the dradgable object. /// The drag relative width, from 0 to 1. /// The drag relative height, from 0 to 1. /// true on success, false otherwise virtual public bool GetDragSize(out double dw, out double dh) { var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_size_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out dw, out dh); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the size of the draggable object. /// The drag relative width, from 0 to 1. /// The drag relative height, from 0 to 1. /// true on success, false otherwise virtual public bool SetDragSize(double dw, double dh) { var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_size_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),dw, dh); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets the draggable direction. /// The direction(s) premitted for drag. virtual public Efl.Ui.DragDir GetDragDir() { var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_dir_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets the x and y step increments for the draggable object. /// The x step relative amount, from 0 to 1. /// The y step relative amount, from 0 to 1. /// true on success, false otherwise virtual public bool GetDragStep(out double dx, out double dy) { var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_step_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out dx, out dy); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the x,y step increments for a draggable object. /// The x step relative amount, from 0 to 1. /// The y step relative amount, from 0 to 1. /// true on success, false otherwise virtual public bool SetDragStep(double dx, double dy) { var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_step_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),dx, dy); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets the x,y page step increments for the draggable object. /// The x page step increment /// The y page step increment /// true on success, false otherwise virtual public bool GetDragPage(out double dx, out double dy) { var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_page_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out dx, out dy); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the x,y page step increment values. /// The x page step increment /// The y page step increment /// true on success, false otherwise virtual public bool SetDragPage(double dx, double dy) { var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_page_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),dx, dy); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Moves the draggable by dx,dy steps. /// This moves the draggable part by dx,dy steps where the step increment is the amount set by . /// /// dx and dy can be positive or negative numbers, integer values are recommended. /// The number of steps horizontally. /// The number of steps vertically. /// true on success, false otherwise virtual public bool MoveDragStep(double dx, double dy) { var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_step_move_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),dx, dy); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Moves the draggable by dx,dy pages. /// This moves the draggable by dx,dy pages. The increment is defined by . /// /// dx and dy can be positive or negative numbers, integer values are recommended. /// /// Warning: Paging is bugged! /// The number of pages horizontally. /// The number of pages vertically. /// true on success, false otherwise virtual public bool MoveDragPage(double dx, double dy) { var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_page_move_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),dx, dy); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The name and value of the current state of this part (read-only). /// This is the state name as it appears in EDC description blocks. A state has both a name and a value (double). The default state is "default" 0.0, but this function will return "" if the part is invalid. public (System.String, double) State { get { System.String _out_state = default(System.String); double _out_val = default(double); GetState(out _out_state,out _out_val); return (_out_state,_out_val); } } /// Type of this part in the layout. /// One of the types or none if not an existing part. public Efl.Canvas.LayoutPartType PartType { get { return GetPartType(); } } /// 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); } } /// The draggable object relative location. /// Some parts in Edje can be dragged along the X/Y axes, if the part contains a "draggable" section (in EDC). For instance, scroll bars can be draggable objects. /// /// dx and dy are real numbers that range from 0 to 1, representing the relative position to the draggable area on that axis. /// /// This value means, for the vertical axis, that 0.0 will be at the top if the first parameter of y in the draggable part theme is 1 and at the bottom if it is -1. /// /// For the horizontal axis, 0.0 means left if the first parameter of x in the draggable part theme is 1, and right if it is -1. /// The x relative position, from 0 to 1. public (double, double) DragValue { get { double _out_dx = default(double); double _out_dy = default(double); GetDragValue(out _out_dx,out _out_dy); return (_out_dx,_out_dy); } set { SetDragValue( value.Item1, value.Item2); } } /// The draggable object relative size. /// Values for dw and dh are real numbers that range from 0 to 1, representing the relative size of the draggable area on that axis. /// /// For instance a scroll bar handle size may depend on the size of the scroller's content. /// The drag relative width, from 0 to 1. public (double, double) DragSize { get { double _out_dw = default(double); double _out_dh = default(double); GetDragSize(out _out_dw,out _out_dh); return (_out_dw,_out_dh); } set { SetDragSize( value.Item1, value.Item2); } } /// Determines the draggable directions (read-only). /// The draggable directions are defined in the EDC file, inside the "draggable" section, by the attributes x and y. See the EDC reference documentation for more information. /// The direction(s) premitted for drag. public Efl.Ui.DragDir DragDir { get { return GetDragDir(); } } /// The drag step increment. /// Values for dx and dy are real numbers that range from 0 to 1, representing the relative size of the draggable area on that axis by which the part will be moved. /// /// This differs from in that this is meant to represent a unit increment, like a single line for example. /// /// See also . /// The x step relative amount, from 0 to 1. public (double, double) DragStep { get { double _out_dx = default(double); double _out_dy = default(double); GetDragStep(out _out_dx,out _out_dy); return (_out_dx,_out_dy); } set { SetDragStep( value.Item1, value.Item2); } } /// The page step increments. /// Values for dx and dy are real numbers that range from 0 to 1, representing the relative size of the draggable area on that axis by which the part will be moved. /// /// This differs from in that this is meant to be a larger step size, basically an entire page as opposed to a single or couple of lines. /// /// See also . /// The x page step increment public (double, double) DragPage { get { double _out_dx = default(double); double _out_dy = default(double); GetDragPage(out _out_dx,out _out_dy); return (_out_dx,_out_dy); } set { SetDragPage( value.Item1, value.Item2); } } private static IntPtr GetEflClassStatic() { return Efl.Canvas.LayoutPart.efl_canvas_layout_part_class_get(); } /// Wrapper for native methods and virtual method delegates. /// For internal use by generated code only. public new class NativeMethods : Efl.Object.NativeMethods { private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Edje); /// 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_layout_part_state_get_static_delegate == null) { efl_canvas_layout_part_state_get_static_delegate = new efl_canvas_layout_part_state_get_delegate(state_get); } if (methods.FirstOrDefault(m => m.Name == "GetState") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_part_state_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_state_get_static_delegate) }); } if (efl_canvas_layout_part_type_get_static_delegate == null) { efl_canvas_layout_part_type_get_static_delegate = new efl_canvas_layout_part_type_get_delegate(part_type_get); } if (methods.FirstOrDefault(m => m.Name == "GetPartType") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_part_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_type_get_static_delegate) }); } 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) }); } if (efl_ui_drag_value_get_static_delegate == null) { efl_ui_drag_value_get_static_delegate = new efl_ui_drag_value_get_delegate(drag_value_get); } if (methods.FirstOrDefault(m => m.Name == "GetDragValue") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_drag_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_drag_value_get_static_delegate) }); } if (efl_ui_drag_value_set_static_delegate == null) { efl_ui_drag_value_set_static_delegate = new efl_ui_drag_value_set_delegate(drag_value_set); } if (methods.FirstOrDefault(m => m.Name == "SetDragValue") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_drag_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_drag_value_set_static_delegate) }); } if (efl_ui_drag_size_get_static_delegate == null) { efl_ui_drag_size_get_static_delegate = new efl_ui_drag_size_get_delegate(drag_size_get); } if (methods.FirstOrDefault(m => m.Name == "GetDragSize") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_drag_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_drag_size_get_static_delegate) }); } if (efl_ui_drag_size_set_static_delegate == null) { efl_ui_drag_size_set_static_delegate = new efl_ui_drag_size_set_delegate(drag_size_set); } if (methods.FirstOrDefault(m => m.Name == "SetDragSize") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_drag_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_drag_size_set_static_delegate) }); } if (efl_ui_drag_dir_get_static_delegate == null) { efl_ui_drag_dir_get_static_delegate = new efl_ui_drag_dir_get_delegate(drag_dir_get); } if (methods.FirstOrDefault(m => m.Name == "GetDragDir") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_drag_dir_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_drag_dir_get_static_delegate) }); } if (efl_ui_drag_step_get_static_delegate == null) { efl_ui_drag_step_get_static_delegate = new efl_ui_drag_step_get_delegate(drag_step_get); } if (methods.FirstOrDefault(m => m.Name == "GetDragStep") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_drag_step_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_drag_step_get_static_delegate) }); } if (efl_ui_drag_step_set_static_delegate == null) { efl_ui_drag_step_set_static_delegate = new efl_ui_drag_step_set_delegate(drag_step_set); } if (methods.FirstOrDefault(m => m.Name == "SetDragStep") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_drag_step_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_drag_step_set_static_delegate) }); } if (efl_ui_drag_page_get_static_delegate == null) { efl_ui_drag_page_get_static_delegate = new efl_ui_drag_page_get_delegate(drag_page_get); } if (methods.FirstOrDefault(m => m.Name == "GetDragPage") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_drag_page_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_drag_page_get_static_delegate) }); } if (efl_ui_drag_page_set_static_delegate == null) { efl_ui_drag_page_set_static_delegate = new efl_ui_drag_page_set_delegate(drag_page_set); } if (methods.FirstOrDefault(m => m.Name == "SetDragPage") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_drag_page_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_drag_page_set_static_delegate) }); } if (efl_ui_drag_step_move_static_delegate == null) { efl_ui_drag_step_move_static_delegate = new efl_ui_drag_step_move_delegate(drag_step_move); } if (methods.FirstOrDefault(m => m.Name == "MoveDragStep") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_drag_step_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_drag_step_move_static_delegate) }); } if (efl_ui_drag_page_move_static_delegate == null) { efl_ui_drag_page_move_static_delegate = new efl_ui_drag_page_move_delegate(drag_page_move); } if (methods.FirstOrDefault(m => m.Name == "MoveDragPage") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_drag_page_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_drag_page_move_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.Canvas.LayoutPart.efl_canvas_layout_part_class_get(); } #pragma warning disable CA1707, CS1591, SA1300, SA1600 private delegate void efl_canvas_layout_part_state_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String state, out double val); public delegate void efl_canvas_layout_part_state_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String state, out double val); public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_state_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_part_state_get"); private static void state_get(System.IntPtr obj, System.IntPtr pd, out System.String state, out double val) { Eina.Log.Debug("function efl_canvas_layout_part_state_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { System.String _out_state = default(System.String); val = default(double); try { ((LayoutPart)ws.Target).GetState(out _out_state, out val); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } state = _out_state; } else { efl_canvas_layout_part_state_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out state, out val); } } private static efl_canvas_layout_part_state_get_delegate efl_canvas_layout_part_state_get_static_delegate; private delegate Efl.Canvas.LayoutPartType efl_canvas_layout_part_type_get_delegate(System.IntPtr obj, System.IntPtr pd); public delegate Efl.Canvas.LayoutPartType efl_canvas_layout_part_type_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_part_type_get"); private static Efl.Canvas.LayoutPartType part_type_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_canvas_layout_part_type_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Canvas.LayoutPartType _ret_var = default(Efl.Canvas.LayoutPartType); try { _ret_var = ((LayoutPart)ws.Target).GetPartType(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_canvas_layout_part_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_canvas_layout_part_type_get_delegate efl_canvas_layout_part_type_get_static_delegate; 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 = ((LayoutPart)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 { ((LayoutPart)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 = ((LayoutPart)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 { ((LayoutPart)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 = ((LayoutPart)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 { ((LayoutPart)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 = ((LayoutPart)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 { ((LayoutPart)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 = ((LayoutPart)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 { ((LayoutPart)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; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_value_get_delegate(System.IntPtr obj, System.IntPtr pd, out double dx, out double dy); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_drag_value_get_api_delegate(System.IntPtr obj, out double dx, out double dy); public static Efl.Eo.FunctionWrapper efl_ui_drag_value_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_drag_value_get"); private static bool drag_value_get(System.IntPtr obj, System.IntPtr pd, out double dx, out double dy) { Eina.Log.Debug("function efl_ui_drag_value_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { dx = default(double); dy = default(double); bool _ret_var = default(bool); try { _ret_var = ((LayoutPart)ws.Target).GetDragValue(out dx, out dy); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_drag_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out dx, out dy); } } private static efl_ui_drag_value_get_delegate efl_ui_drag_value_get_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_value_set_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_drag_value_set_api_delegate(System.IntPtr obj, double dx, double dy); public static Efl.Eo.FunctionWrapper efl_ui_drag_value_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_drag_value_set"); private static bool drag_value_set(System.IntPtr obj, System.IntPtr pd, double dx, double dy) { Eina.Log.Debug("function efl_ui_drag_value_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((LayoutPart)ws.Target).SetDragValue(dx, dy); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_drag_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy); } } private static efl_ui_drag_value_set_delegate efl_ui_drag_value_set_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out double dw, out double dh); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_drag_size_get_api_delegate(System.IntPtr obj, out double dw, out double dh); public static Efl.Eo.FunctionWrapper efl_ui_drag_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_drag_size_get"); private static bool drag_size_get(System.IntPtr obj, System.IntPtr pd, out double dw, out double dh) { Eina.Log.Debug("function efl_ui_drag_size_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { dw = default(double); dh = default(double); bool _ret_var = default(bool); try { _ret_var = ((LayoutPart)ws.Target).GetDragSize(out dw, out dh); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_drag_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out dw, out dh); } } private static efl_ui_drag_size_get_delegate efl_ui_drag_size_get_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_size_set_delegate(System.IntPtr obj, System.IntPtr pd, double dw, double dh); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_drag_size_set_api_delegate(System.IntPtr obj, double dw, double dh); public static Efl.Eo.FunctionWrapper efl_ui_drag_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_drag_size_set"); private static bool drag_size_set(System.IntPtr obj, System.IntPtr pd, double dw, double dh) { Eina.Log.Debug("function efl_ui_drag_size_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((LayoutPart)ws.Target).SetDragSize(dw, dh); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_drag_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dw, dh); } } private static efl_ui_drag_size_set_delegate efl_ui_drag_size_set_static_delegate; private delegate Efl.Ui.DragDir efl_ui_drag_dir_get_delegate(System.IntPtr obj, System.IntPtr pd); public delegate Efl.Ui.DragDir efl_ui_drag_dir_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_drag_dir_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_drag_dir_get"); private static Efl.Ui.DragDir drag_dir_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_drag_dir_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Ui.DragDir _ret_var = default(Efl.Ui.DragDir); try { _ret_var = ((LayoutPart)ws.Target).GetDragDir(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_drag_dir_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_drag_dir_get_delegate efl_ui_drag_dir_get_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_step_get_delegate(System.IntPtr obj, System.IntPtr pd, out double dx, out double dy); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_drag_step_get_api_delegate(System.IntPtr obj, out double dx, out double dy); public static Efl.Eo.FunctionWrapper efl_ui_drag_step_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_drag_step_get"); private static bool drag_step_get(System.IntPtr obj, System.IntPtr pd, out double dx, out double dy) { Eina.Log.Debug("function efl_ui_drag_step_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { dx = default(double); dy = default(double); bool _ret_var = default(bool); try { _ret_var = ((LayoutPart)ws.Target).GetDragStep(out dx, out dy); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_drag_step_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out dx, out dy); } } private static efl_ui_drag_step_get_delegate efl_ui_drag_step_get_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_step_set_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_drag_step_set_api_delegate(System.IntPtr obj, double dx, double dy); public static Efl.Eo.FunctionWrapper efl_ui_drag_step_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_drag_step_set"); private static bool drag_step_set(System.IntPtr obj, System.IntPtr pd, double dx, double dy) { Eina.Log.Debug("function efl_ui_drag_step_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((LayoutPart)ws.Target).SetDragStep(dx, dy); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_drag_step_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy); } } private static efl_ui_drag_step_set_delegate efl_ui_drag_step_set_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_page_get_delegate(System.IntPtr obj, System.IntPtr pd, out double dx, out double dy); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_drag_page_get_api_delegate(System.IntPtr obj, out double dx, out double dy); public static Efl.Eo.FunctionWrapper efl_ui_drag_page_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_drag_page_get"); private static bool drag_page_get(System.IntPtr obj, System.IntPtr pd, out double dx, out double dy) { Eina.Log.Debug("function efl_ui_drag_page_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { dx = default(double); dy = default(double); bool _ret_var = default(bool); try { _ret_var = ((LayoutPart)ws.Target).GetDragPage(out dx, out dy); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_drag_page_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out dx, out dy); } } private static efl_ui_drag_page_get_delegate efl_ui_drag_page_get_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_page_set_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_drag_page_set_api_delegate(System.IntPtr obj, double dx, double dy); public static Efl.Eo.FunctionWrapper efl_ui_drag_page_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_drag_page_set"); private static bool drag_page_set(System.IntPtr obj, System.IntPtr pd, double dx, double dy) { Eina.Log.Debug("function efl_ui_drag_page_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((LayoutPart)ws.Target).SetDragPage(dx, dy); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_drag_page_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy); } } private static efl_ui_drag_page_set_delegate efl_ui_drag_page_set_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_step_move_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_drag_step_move_api_delegate(System.IntPtr obj, double dx, double dy); public static Efl.Eo.FunctionWrapper efl_ui_drag_step_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_drag_step_move"); private static bool drag_step_move(System.IntPtr obj, System.IntPtr pd, double dx, double dy) { Eina.Log.Debug("function efl_ui_drag_step_move was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((LayoutPart)ws.Target).MoveDragStep(dx, dy); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_drag_step_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy); } } private static efl_ui_drag_step_move_delegate efl_ui_drag_step_move_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_page_move_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_drag_page_move_api_delegate(System.IntPtr obj, double dx, double dy); public static Efl.Eo.FunctionWrapper efl_ui_drag_page_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_drag_page_move"); private static bool drag_page_move(System.IntPtr obj, System.IntPtr pd, double dx, double dy) { Eina.Log.Debug("function efl_ui_drag_page_move was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((LayoutPart)ws.Target).MoveDragPage(dx, dy); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_drag_page_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy); } } private static efl_ui_drag_page_move_delegate efl_ui_drag_page_move_static_delegate; #pragma warning restore CA1707, CS1591, SA1300, SA1600 } } } } #if EFL_BETA #pragma warning disable CS1591 public static class Efl_CanvasLayoutPart_ExtensionMethods { public static Efl.BindableProperty Position(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPart { return new Efl.BindableProperty("position", fac); } public static Efl.BindableProperty Size(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPart { return new Efl.BindableProperty("size", fac); } public static Efl.BindableProperty Geometry(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPart { return new Efl.BindableProperty("geometry", fac); } public static Efl.BindableProperty Visible(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPart { return new Efl.BindableProperty("visible", fac); } public static Efl.BindableProperty Scale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPart { return new Efl.BindableProperty("scale", fac); } } #pragma warning restore CS1591 #endif