#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; using System.Threading; using System.ComponentModel; namespace Efl { namespace Ui { /// Elementary panes class /// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Panes.NativeMethods] [Efl.Eo.BindingEntity] public class Panes : Efl.Ui.LayoutBase, Efl.Input.IClickable, Efl.Ui.ILayoutOrientable { /// Pointer to the native class description. public override System.IntPtr NativeClass { get { if (((object)this).GetType() == typeof(Panes)) { return GetEflClassStatic(); } else { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; } } } [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_panes_class_get(); /// Initializes a new instance of the class. /// Parent instance. /// The widget style to use. See public Panes(Efl.Object parent , System.String style = null) : base(efl_ui_panes_class_get(), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); } FinishInstantiation(); } /// Subclasses should override this constructor if they are expected to be instantiated from native code. /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Panes(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 Panes(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 Panes(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) { } /// Called when panes got pressed public event EventHandler PressEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_ELM_PANES_EVENT_PRESS"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_ELM_PANES_EVENT_PRESS"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event PressEvt. public void OnPressEvt(EventArgs e) { var key = "_ELM_PANES_EVENT_PRESS"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when panes are no longer pressed public event EventHandler UnpressEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); } catch (Exception e) { Eina.Log.Error(e.ToString()); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } }; string key = "_ELM_PANES_EVENT_UNPRESS"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_ELM_PANES_EVENT_UNPRESS"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event UnpressEvt. public void OnUnpressEvt(EventArgs e) { var key = "_ELM_PANES_EVENT_UNPRESS"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when object is in sequence pressed and unpressed, by the primary button /// public event EventHandler ClickedEvt { 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.Input.IClickableClickedEvt_Args args = new Efl.Input.IClickableClickedEvt_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_INPUT_EVENT_CLICKED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_INPUT_EVENT_CLICKED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event ClickedEvt. public void OnClickedEvt(Efl.Input.IClickableClickedEvt_Args e) { var key = "_EFL_INPUT_EVENT_CLICKED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); try { Marshal.StructureToPtr(e.arg, info, false); Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } finally { Marshal.FreeHGlobal(info); } } /// Called when object is in sequence pressed and unpressed by any button. The button that triggered the event can be found in the event information. /// public event EventHandler ClickedAnyEvt { 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.Input.IClickableClickedAnyEvt_Args args = new Efl.Input.IClickableClickedAnyEvt_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_INPUT_EVENT_CLICKED_ANY"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_INPUT_EVENT_CLICKED_ANY"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event ClickedAnyEvt. public void OnClickedAnyEvt(Efl.Input.IClickableClickedAnyEvt_Args e) { var key = "_EFL_INPUT_EVENT_CLICKED_ANY"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); try { Marshal.StructureToPtr(e.arg, info, false); Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } finally { Marshal.FreeHGlobal(info); } } /// Called when the object is pressed, event_info is the button that got pressed /// public event EventHandler PressedEvt { 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.Input.IClickablePressedEvt_Args args = new Efl.Input.IClickablePressedEvt_Args(); args.arg = Marshal.ReadInt32(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_INPUT_EVENT_PRESSED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_INPUT_EVENT_PRESSED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event PressedEvt. public void OnPressedEvt(Efl.Input.IClickablePressedEvt_Args e) { var key = "_EFL_INPUT_EVENT_PRESSED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); try { Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } finally { Marshal.FreeHGlobal(info); } } /// Called when the object is no longer pressed, event_info is the button that got pressed /// public event EventHandler UnpressedEvt { 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.Input.IClickableUnpressedEvt_Args args = new Efl.Input.IClickableUnpressedEvt_Args(); args.arg = Marshal.ReadInt32(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_INPUT_EVENT_UNPRESSED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_INPUT_EVENT_UNPRESSED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event UnpressedEvt. public void OnUnpressedEvt(Efl.Input.IClickableUnpressedEvt_Args e) { var key = "_EFL_INPUT_EVENT_UNPRESSED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); try { Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } finally { Marshal.FreeHGlobal(info); } } /// Called when the object receives a long press, event_info is the button that got pressed /// public event EventHandler LongpressedEvt { 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.Input.IClickableLongpressedEvt_Args args = new Efl.Input.IClickableLongpressedEvt_Args(); args.arg = Marshal.ReadInt32(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_INPUT_EVENT_LONGPRESSED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_INPUT_EVENT_LONGPRESSED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event LongpressedEvt. public void OnLongpressedEvt(Efl.Input.IClickableLongpressedEvt_Args e) { var key = "_EFL_INPUT_EVENT_LONGPRESSED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); try { Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } finally { Marshal.FreeHGlobal(info); } } /// The second half of the panes widget (right or bottom) public Efl.Ui.PanesPart SecondPart { get { return GetPart("second") as Efl.Ui.PanesPart; } } /// The first half of the panes widget (left or top) public Efl.Ui.PanesPart FirstPart { get { return GetPart("first") as Efl.Ui.PanesPart; } } /// Set the split ratio between panes widget first and second parts. /// By default it's homogeneous, i.e., both sides have the same size. /// /// If something different is required, it can be set with this function. For example, if the first content should be displayed over 75% of the panes size, ratio should be passed as 0.75. This way, second content will be resized to 25% of panes size. /// /// If displayed vertically, first content is displayed at top, and second content at bottom. /// /// Note: This ratio will change when user drags the panes bar. /// Value between 0.0 and 1.0 representing split ratio between panes first and second parts. virtual public double GetSplitRatio() { var _ret_var = Efl.Ui.Panes.NativeMethods.efl_ui_panes_split_ratio_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the split ratio between panes widget first and second parts. /// By default it's homogeneous, i.e., both sides have the same size. /// /// If something different is required, it can be set with this function. For example, if the first content should be displayed over 75% of the panes size, ratio should be passed as 0.75. This way, second content will be resized to 25% of panes size. /// /// If displayed vertically, first content is displayed at top, and second content at bottom. /// /// Note: This ratio will change when user drags the panes bar. /// Value between 0.0 and 1.0 representing split ratio between panes first and second parts. virtual public void SetSplitRatio(double ratio) { Efl.Ui.Panes.NativeMethods.efl_ui_panes_split_ratio_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),ratio); Eina.Error.RaiseIfUnhandledException(); } /// Set whether the left and right panes can be resized by user interaction. /// By default panes' contents are resizable by user interaction. /// Use true to fix the left and right panes sizes and make them not to be resized by user interaction. Use false to make them resizable. virtual public bool GetFixed() { var _ret_var = Efl.Ui.Panes.NativeMethods.efl_ui_panes_fixed_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set whether the left and right panes can be resized by user interaction. /// By default panes' contents are resizable by user interaction. /// Use true to fix the left and right panes sizes and make them not to be resized by user interaction. Use false to make them resizable. virtual public void SetFixed(bool kw_fixed) { Efl.Ui.Panes.NativeMethods.efl_ui_panes_fixed_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),kw_fixed); Eina.Error.RaiseIfUnhandledException(); } /// This returns true if the given object is currently in event emission virtual public bool GetInteraction() { var _ret_var = Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_interaction_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Change internal states that a button got pressed. /// When the button is already pressed, this is silently ignored. /// The number of the button. FIXME ensure to have the right interval of possible input virtual public void Press(uint button) { Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_press_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); Eina.Error.RaiseIfUnhandledException(); } /// Change internal states that a button got unpressed. /// When the button is not pressed, this is silently ignored. /// The number of the button. FIXME ensure to have the right interval of possible input virtual public void Unpress(uint button) { Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_unpress_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); Eina.Error.RaiseIfUnhandledException(); } /// This aborts the internal state after a press call. /// This will stop the timer for longpress. And set the state of the clickable mixin back into the unpressed state. virtual public void ResetButtonState(uint button) { Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_button_state_reset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); Eina.Error.RaiseIfUnhandledException(); } /// This aborts ongoing longpress event. /// That is, this will stop the timer for longpress. virtual public void LongpressAbort(uint button) { Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_longpress_abort_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); Eina.Error.RaiseIfUnhandledException(); } /// Control the direction of a given widget. /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. /// /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. virtual public Efl.Ui.LayoutOrientation GetOrientation() { var _ret_var = Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the direction of a given widget. /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. /// /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. virtual public void SetOrientation(Efl.Ui.LayoutOrientation dir) { Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),dir); Eina.Error.RaiseIfUnhandledException(); } /// Set the split ratio between panes widget first and second parts. /// By default it's homogeneous, i.e., both sides have the same size. /// /// If something different is required, it can be set with this function. For example, if the first content should be displayed over 75% of the panes size, ratio should be passed as 0.75. This way, second content will be resized to 25% of panes size. /// /// If displayed vertically, first content is displayed at top, and second content at bottom. /// /// Note: This ratio will change when user drags the panes bar. /// Value between 0.0 and 1.0 representing split ratio between panes first and second parts. public double SplitRatio { get { return GetSplitRatio(); } set { SetSplitRatio(value); } } /// Set whether the left and right panes can be resized by user interaction. /// By default panes' contents are resizable by user interaction. /// Use true to fix the left and right panes sizes and make them not to be resized by user interaction. Use false to make them resizable. public bool Fixed { get { return GetFixed(); } set { SetFixed(value); } } /// This returns true if the given object is currently in event emission public bool Interaction { get { return GetInteraction(); } } /// Control the direction of a given widget. /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. /// /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. public Efl.Ui.LayoutOrientation Orientation { get { return GetOrientation(); } set { SetOrientation(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Panes.efl_ui_panes_class_get(); } /// Wrapper for native methods and virtual method delegates. /// For internal use by generated code only. public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); /// Gets the list of Eo operations to override. /// The list of Eo operations to be overload. public override System.Collections.Generic.List GetEoOps(System.Type type) { var descs = new System.Collections.Generic.List(); var methods = Efl.Eo.Globals.GetUserMethods(type); if (efl_ui_panes_split_ratio_get_static_delegate == null) { efl_ui_panes_split_ratio_get_static_delegate = new efl_ui_panes_split_ratio_get_delegate(split_ratio_get); } if (methods.FirstOrDefault(m => m.Name == "GetSplitRatio") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_panes_split_ratio_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panes_split_ratio_get_static_delegate) }); } if (efl_ui_panes_split_ratio_set_static_delegate == null) { efl_ui_panes_split_ratio_set_static_delegate = new efl_ui_panes_split_ratio_set_delegate(split_ratio_set); } if (methods.FirstOrDefault(m => m.Name == "SetSplitRatio") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_panes_split_ratio_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panes_split_ratio_set_static_delegate) }); } if (efl_ui_panes_fixed_get_static_delegate == null) { efl_ui_panes_fixed_get_static_delegate = new efl_ui_panes_fixed_get_delegate(fixed_get); } if (methods.FirstOrDefault(m => m.Name == "GetFixed") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_panes_fixed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panes_fixed_get_static_delegate) }); } if (efl_ui_panes_fixed_set_static_delegate == null) { efl_ui_panes_fixed_set_static_delegate = new efl_ui_panes_fixed_set_delegate(fixed_set); } if (methods.FirstOrDefault(m => m.Name == "SetFixed") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_panes_fixed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panes_fixed_set_static_delegate) }); } if (efl_input_clickable_interaction_get_static_delegate == null) { efl_input_clickable_interaction_get_static_delegate = new efl_input_clickable_interaction_get_delegate(interaction_get); } if (methods.FirstOrDefault(m => m.Name == "GetInteraction") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_interaction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_interaction_get_static_delegate) }); } if (efl_input_clickable_press_static_delegate == null) { efl_input_clickable_press_static_delegate = new efl_input_clickable_press_delegate(press); } if (methods.FirstOrDefault(m => m.Name == "Press") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_press"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_press_static_delegate) }); } if (efl_input_clickable_unpress_static_delegate == null) { efl_input_clickable_unpress_static_delegate = new efl_input_clickable_unpress_delegate(unpress); } if (methods.FirstOrDefault(m => m.Name == "Unpress") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_unpress"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_unpress_static_delegate) }); } if (efl_input_clickable_button_state_reset_static_delegate == null) { efl_input_clickable_button_state_reset_static_delegate = new efl_input_clickable_button_state_reset_delegate(button_state_reset); } if (methods.FirstOrDefault(m => m.Name == "ResetButtonState") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_button_state_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_button_state_reset_static_delegate) }); } if (efl_input_clickable_longpress_abort_static_delegate == null) { efl_input_clickable_longpress_abort_static_delegate = new efl_input_clickable_longpress_abort_delegate(longpress_abort); } if (methods.FirstOrDefault(m => m.Name == "LongpressAbort") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_longpress_abort"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_longpress_abort_static_delegate) }); } if (efl_ui_layout_orientation_get_static_delegate == null) { efl_ui_layout_orientation_get_static_delegate = new efl_ui_layout_orientation_get_delegate(orientation_get); } if (methods.FirstOrDefault(m => m.Name == "GetOrientation") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_layout_orientation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_orientation_get_static_delegate) }); } if (efl_ui_layout_orientation_set_static_delegate == null) { efl_ui_layout_orientation_set_static_delegate = new efl_ui_layout_orientation_set_delegate(orientation_set); } if (methods.FirstOrDefault(m => m.Name == "SetOrientation") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_layout_orientation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_orientation_set_static_delegate) }); } descs.AddRange(base.GetEoOps(type)); return descs; } /// Returns the Eo class for the native methods of this class. /// The native class pointer. public override IntPtr GetEflClass() { return Efl.Ui.Panes.efl_ui_panes_class_get(); } #pragma warning disable CA1707, CS1591, SA1300, SA1600 private delegate double efl_ui_panes_split_ratio_get_delegate(System.IntPtr obj, System.IntPtr pd); public delegate double efl_ui_panes_split_ratio_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_panes_split_ratio_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panes_split_ratio_get"); private static double split_ratio_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_panes_split_ratio_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { double _ret_var = default(double); try { _ret_var = ((Panes)ws.Target).GetSplitRatio(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_panes_split_ratio_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_panes_split_ratio_get_delegate efl_ui_panes_split_ratio_get_static_delegate; private delegate void efl_ui_panes_split_ratio_set_delegate(System.IntPtr obj, System.IntPtr pd, double ratio); public delegate void efl_ui_panes_split_ratio_set_api_delegate(System.IntPtr obj, double ratio); public static Efl.Eo.FunctionWrapper efl_ui_panes_split_ratio_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panes_split_ratio_set"); private static void split_ratio_set(System.IntPtr obj, System.IntPtr pd, double ratio) { Eina.Log.Debug("function efl_ui_panes_split_ratio_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Panes)ws.Target).SetSplitRatio(ratio); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_panes_split_ratio_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ratio); } } private static efl_ui_panes_split_ratio_set_delegate efl_ui_panes_split_ratio_set_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_panes_fixed_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_panes_fixed_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_panes_fixed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panes_fixed_get"); private static bool fixed_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_panes_fixed_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((Panes)ws.Target).GetFixed(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_panes_fixed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_panes_fixed_get_delegate efl_ui_panes_fixed_get_static_delegate; private delegate void efl_ui_panes_fixed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool kw_fixed); public delegate void efl_ui_panes_fixed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool kw_fixed); public static Efl.Eo.FunctionWrapper efl_ui_panes_fixed_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panes_fixed_set"); private static void fixed_set(System.IntPtr obj, System.IntPtr pd, bool kw_fixed) { Eina.Log.Debug("function efl_ui_panes_fixed_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Panes)ws.Target).SetFixed(kw_fixed); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_panes_fixed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_fixed); } } private static efl_ui_panes_fixed_set_delegate efl_ui_panes_fixed_set_static_delegate; [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_clickable_interaction_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_clickable_interaction_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_input_clickable_interaction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_interaction_get"); private static bool interaction_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_input_clickable_interaction_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((Panes)ws.Target).GetInteraction(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_input_clickable_interaction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_input_clickable_interaction_get_delegate efl_input_clickable_interaction_get_static_delegate; private delegate void efl_input_clickable_press_delegate(System.IntPtr obj, System.IntPtr pd, uint button); public delegate void efl_input_clickable_press_api_delegate(System.IntPtr obj, uint button); public static Efl.Eo.FunctionWrapper efl_input_clickable_press_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_press"); private static void press(System.IntPtr obj, System.IntPtr pd, uint button) { Eina.Log.Debug("function efl_input_clickable_press was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Panes)ws.Target).Press(button); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_input_clickable_press_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); } } private static efl_input_clickable_press_delegate efl_input_clickable_press_static_delegate; private delegate void efl_input_clickable_unpress_delegate(System.IntPtr obj, System.IntPtr pd, uint button); public delegate void efl_input_clickable_unpress_api_delegate(System.IntPtr obj, uint button); public static Efl.Eo.FunctionWrapper efl_input_clickable_unpress_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_unpress"); private static void unpress(System.IntPtr obj, System.IntPtr pd, uint button) { Eina.Log.Debug("function efl_input_clickable_unpress was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Panes)ws.Target).Unpress(button); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_input_clickable_unpress_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); } } private static efl_input_clickable_unpress_delegate efl_input_clickable_unpress_static_delegate; private delegate void efl_input_clickable_button_state_reset_delegate(System.IntPtr obj, System.IntPtr pd, uint button); public delegate void efl_input_clickable_button_state_reset_api_delegate(System.IntPtr obj, uint button); public static Efl.Eo.FunctionWrapper efl_input_clickable_button_state_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_button_state_reset"); private static void button_state_reset(System.IntPtr obj, System.IntPtr pd, uint button) { Eina.Log.Debug("function efl_input_clickable_button_state_reset was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Panes)ws.Target).ResetButtonState(button); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_input_clickable_button_state_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); } } private static efl_input_clickable_button_state_reset_delegate efl_input_clickable_button_state_reset_static_delegate; private delegate void efl_input_clickable_longpress_abort_delegate(System.IntPtr obj, System.IntPtr pd, uint button); public delegate void efl_input_clickable_longpress_abort_api_delegate(System.IntPtr obj, uint button); public static Efl.Eo.FunctionWrapper efl_input_clickable_longpress_abort_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_longpress_abort"); private static void longpress_abort(System.IntPtr obj, System.IntPtr pd, uint button) { Eina.Log.Debug("function efl_input_clickable_longpress_abort was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Panes)ws.Target).LongpressAbort(button); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_input_clickable_longpress_abort_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); } } private static efl_input_clickable_longpress_abort_delegate efl_input_clickable_longpress_abort_static_delegate; private delegate Efl.Ui.LayoutOrientation efl_ui_layout_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd); public delegate Efl.Ui.LayoutOrientation efl_ui_layout_orientation_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_layout_orientation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_layout_orientation_get"); private static Efl.Ui.LayoutOrientation orientation_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_layout_orientation_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Ui.LayoutOrientation _ret_var = default(Efl.Ui.LayoutOrientation); try { _ret_var = ((Panes)ws.Target).GetOrientation(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_ui_layout_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_layout_orientation_get_delegate efl_ui_layout_orientation_get_static_delegate; private delegate void efl_ui_layout_orientation_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.LayoutOrientation dir); public delegate void efl_ui_layout_orientation_set_api_delegate(System.IntPtr obj, Efl.Ui.LayoutOrientation dir); public static Efl.Eo.FunctionWrapper efl_ui_layout_orientation_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_layout_orientation_set"); private static void orientation_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.LayoutOrientation dir) { Eina.Log.Debug("function efl_ui_layout_orientation_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Panes)ws.Target).SetOrientation(dir); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_layout_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); } } private static efl_ui_layout_orientation_set_delegate efl_ui_layout_orientation_set_static_delegate; #pragma warning restore CA1707, CS1591, SA1300, SA1600 } } } } #if EFL_BETA #pragma warning disable CS1591 public static class Efl_UiPanes_ExtensionMethods { public static Efl.BindableProperty SplitRatio(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Panes { return new Efl.BindableProperty("split_ratio", fac); } public static Efl.BindableProperty Fixed(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Panes { return new Efl.BindableProperty("fixed", fac); } public static Efl.BindableProperty Orientation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Panes { return new Efl.BindableProperty("orientation", fac); } public static Efl.BindableFactoryPart SecondPart(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTag x=null) where T : Efl.Ui.Panes { return new Efl.BindableFactoryPart("second" ,fac); } public static Efl.BindableFactoryPart FirstPart(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTag x=null) where T : Efl.Ui.Panes { return new Efl.BindableFactoryPart("first" ,fac); } } #pragma warning restore CS1591 #endif