1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.Threading;
7 using System.ComponentModel;
12 /// <summary>Elementary panes class</summary>
13 [Efl.Ui.Panes.NativeMethods]
14 public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrientable
16 ///<summary>Pointer to the native class description.</summary>
17 public override System.IntPtr NativeClass
21 if (((object)this).GetType() == typeof(Panes))
23 return GetEflClassStatic();
27 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
32 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
33 efl_ui_panes_class_get();
34 /// <summary>Initializes a new instance of the <see cref="Panes"/> class.</summary>
35 /// <param name="parent">Parent instance.</param>
36 /// <param name="style">The widget style to use. See <see cref="Efl.Ui.Widget.SetStyle"/></param>
37 public Panes(Efl.Object parent
38 , System.String style = null) : base(efl_ui_panes_class_get(), typeof(Panes), parent)
40 if (Efl.Eo.Globals.ParamHelperCheck(style))
42 SetStyle(Efl.Eo.Globals.GetParamHelper(style));
45 FinishInstantiation();
48 /// <summary>Initializes a new instance of the <see cref="Panes"/> class.
49 /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
50 /// <param name="raw">The native pointer to be wrapped.</param>
51 protected Panes(System.IntPtr raw) : base(raw)
55 /// <summary>Initializes a new instance of the <see cref="Panes"/> class.
56 /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
57 /// <param name="baseKlass">The pointer to the base native Eo class.</param>
58 /// <param name="managedType">The managed type of the public constructor that originated this call.</param>
59 /// <param name="parent">The Efl.Object parent of this instance.</param>
60 protected Panes(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent)
64 /// <summary>Called when panes got pressed</summary>
65 public event EventHandler PressEvt
71 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
73 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
76 EventArgs args = EventArgs.Empty;
79 value?.Invoke(obj, args);
83 Eina.Log.Error(e.ToString());
84 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
89 string key = "_ELM_PANES_EVENT_PRESS";
90 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
98 string key = "_ELM_PANES_EVENT_PRESS";
99 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
103 ///<summary>Method to raise event PressEvt.</summary>
104 public void OnPressEvt(EventArgs e)
106 var key = "_ELM_PANES_EVENT_PRESS";
107 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
108 if (desc == IntPtr.Zero)
110 Eina.Log.Error($"Failed to get native event {key}");
114 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
116 /// <summary>Called when panes are no longer pressed</summary>
117 public event EventHandler UnpressEvt
123 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
125 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
128 EventArgs args = EventArgs.Empty;
131 value?.Invoke(obj, args);
135 Eina.Log.Error(e.ToString());
136 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
141 string key = "_ELM_PANES_EVENT_UNPRESS";
142 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
150 string key = "_ELM_PANES_EVENT_UNPRESS";
151 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
155 ///<summary>Method to raise event UnpressEvt.</summary>
156 public void OnUnpressEvt(EventArgs e)
158 var key = "_ELM_PANES_EVENT_UNPRESS";
159 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
160 if (desc == IntPtr.Zero)
162 Eina.Log.Error($"Failed to get native event {key}");
166 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
168 /// <summary>Called when object is in sequence pressed and unpressed, by the primary button</summary>
169 public event EventHandler<Efl.Ui.IClickableClickedEvt_Args> ClickedEvt
175 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
177 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
180 Efl.Ui.IClickableClickedEvt_Args args = new Efl.Ui.IClickableClickedEvt_Args();
184 value?.Invoke(obj, args);
188 Eina.Log.Error(e.ToString());
189 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
194 string key = "_EFL_UI_EVENT_CLICKED";
195 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
203 string key = "_EFL_UI_EVENT_CLICKED";
204 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
208 ///<summary>Method to raise event ClickedEvt.</summary>
209 public void OnClickedEvt(Efl.Ui.IClickableClickedEvt_Args e)
211 var key = "_EFL_UI_EVENT_CLICKED";
212 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
213 if (desc == IntPtr.Zero)
215 Eina.Log.Error($"Failed to get native event {key}");
219 IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg));
222 Marshal.StructureToPtr(e.arg, info, false);
223 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
227 Marshal.FreeHGlobal(info);
230 /// <summary>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.</summary>
231 public event EventHandler<Efl.Ui.IClickableClickedAnyEvt_Args> ClickedAnyEvt
237 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
239 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
242 Efl.Ui.IClickableClickedAnyEvt_Args args = new Efl.Ui.IClickableClickedAnyEvt_Args();
246 value?.Invoke(obj, args);
250 Eina.Log.Error(e.ToString());
251 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
256 string key = "_EFL_UI_EVENT_CLICKED_ANY";
257 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
265 string key = "_EFL_UI_EVENT_CLICKED_ANY";
266 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
270 ///<summary>Method to raise event ClickedAnyEvt.</summary>
271 public void OnClickedAnyEvt(Efl.Ui.IClickableClickedAnyEvt_Args e)
273 var key = "_EFL_UI_EVENT_CLICKED_ANY";
274 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
275 if (desc == IntPtr.Zero)
277 Eina.Log.Error($"Failed to get native event {key}");
281 IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg));
284 Marshal.StructureToPtr(e.arg, info, false);
285 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
289 Marshal.FreeHGlobal(info);
292 /// <summary>Called when the object is pressed, event_info is the button that got pressed</summary>
293 public event EventHandler<Efl.Ui.IClickablePressedEvt_Args> PressedEvt
299 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
301 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
304 Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args();
305 args.arg = Marshal.ReadInt32(evt.Info);
308 value?.Invoke(obj, args);
312 Eina.Log.Error(e.ToString());
313 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
318 string key = "_EFL_UI_EVENT_PRESSED";
319 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
327 string key = "_EFL_UI_EVENT_PRESSED";
328 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
332 ///<summary>Method to raise event PressedEvt.</summary>
333 public void OnPressedEvt(Efl.Ui.IClickablePressedEvt_Args e)
335 var key = "_EFL_UI_EVENT_PRESSED";
336 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
337 if (desc == IntPtr.Zero)
339 Eina.Log.Error($"Failed to get native event {key}");
343 IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg);
346 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
350 Marshal.FreeHGlobal(info);
353 /// <summary>Called when the object is no longer pressed, event_info is the button that got pressed</summary>
354 public event EventHandler<Efl.Ui.IClickableUnpressedEvt_Args> UnpressedEvt
360 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
362 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
365 Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args();
366 args.arg = Marshal.ReadInt32(evt.Info);
369 value?.Invoke(obj, args);
373 Eina.Log.Error(e.ToString());
374 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
379 string key = "_EFL_UI_EVENT_UNPRESSED";
380 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
388 string key = "_EFL_UI_EVENT_UNPRESSED";
389 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
393 ///<summary>Method to raise event UnpressedEvt.</summary>
394 public void OnUnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e)
396 var key = "_EFL_UI_EVENT_UNPRESSED";
397 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
398 if (desc == IntPtr.Zero)
400 Eina.Log.Error($"Failed to get native event {key}");
404 IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg);
407 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
411 Marshal.FreeHGlobal(info);
414 /// <summary>Called when the object receives a long press, event_info is the button that got pressed</summary>
415 public event EventHandler<Efl.Ui.IClickableLongpressedEvt_Args> LongpressedEvt
421 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
423 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
426 Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args();
427 args.arg = Marshal.ReadInt32(evt.Info);
430 value?.Invoke(obj, args);
434 Eina.Log.Error(e.ToString());
435 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
440 string key = "_EFL_UI_EVENT_LONGPRESSED";
441 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
449 string key = "_EFL_UI_EVENT_LONGPRESSED";
450 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
454 ///<summary>Method to raise event LongpressedEvt.</summary>
455 public void OnLongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e)
457 var key = "_EFL_UI_EVENT_LONGPRESSED";
458 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
459 if (desc == IntPtr.Zero)
461 Eina.Log.Error($"Failed to get native event {key}");
465 IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg);
468 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
472 Marshal.FreeHGlobal(info);
475 /// <summary>The second half of the panes widget (right or bottom)</summary>
476 public Efl.Ui.PanesPart SecondPart
480 return GetPart("second") as Efl.Ui.PanesPart;
483 /// <summary>The first half of the panes widget (left or top)</summary>
484 public Efl.Ui.PanesPart FirstPart
488 return GetPart("first") as Efl.Ui.PanesPart;
491 /// <summary>Set the split ratio between panes widget first and second parts.
492 /// By default it's homogeneous, i.e., both sides have the same size.
494 /// 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, <c>ratio</c> should be passed as 0.75. This way, second content will be resized to 25% of panes size.
496 /// If displayed vertically, first content is displayed at top, and second content at bottom.
498 /// Note: This ratio will change when user drags the panes bar.</summary>
499 /// <returns>Value between 0.0 and 1.0 representing split ratio between panes first and second parts.</returns>
500 virtual public double GetSplitRatio() {
501 var _ret_var = Efl.Ui.Panes.NativeMethods.efl_ui_panes_split_ratio_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
502 Eina.Error.RaiseIfUnhandledException();
505 /// <summary>Set the split ratio between panes widget first and second parts.
506 /// By default it's homogeneous, i.e., both sides have the same size.
508 /// 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, <c>ratio</c> should be passed as 0.75. This way, second content will be resized to 25% of panes size.
510 /// If displayed vertically, first content is displayed at top, and second content at bottom.
512 /// Note: This ratio will change when user drags the panes bar.</summary>
513 /// <param name="ratio">Value between 0.0 and 1.0 representing split ratio between panes first and second parts.</param>
514 virtual public void SetSplitRatio(double ratio) {
515 Efl.Ui.Panes.NativeMethods.efl_ui_panes_split_ratio_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ratio);
516 Eina.Error.RaiseIfUnhandledException();
518 /// <summary>Set whether the left and right panes can be resized by user interaction.
519 /// By default panes' contents are resizable by user interaction.</summary>
520 /// <returns>Use <c>true</c> to fix the left and right panes sizes and make them not to be resized by user interaction. Use <c>false</c> to make them resizable.</returns>
521 virtual public bool GetFixed() {
522 var _ret_var = Efl.Ui.Panes.NativeMethods.efl_ui_panes_fixed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
523 Eina.Error.RaiseIfUnhandledException();
526 /// <summary>Set whether the left and right panes can be resized by user interaction.
527 /// By default panes' contents are resizable by user interaction.</summary>
528 /// <param name="kw_fixed">Use <c>true</c> to fix the left and right panes sizes and make them not to be resized by user interaction. Use <c>false</c> to make them resizable.</param>
529 virtual public void SetFixed(bool kw_fixed) {
530 Efl.Ui.Panes.NativeMethods.efl_ui_panes_fixed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),kw_fixed);
531 Eina.Error.RaiseIfUnhandledException();
533 /// <summary>Change internal states that a button got pressed.
534 /// When the button is already pressed, this is silently ignored.</summary>
535 /// <param name="button">The number of the button. FIXME ensure to have the right interval of possible input</param>
536 virtual public void Press(uint button) {
537 Efl.Ui.IClickableConcrete.NativeMethods.efl_ui_clickable_press_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),button);
538 Eina.Error.RaiseIfUnhandledException();
540 /// <summary>Change internal states that a button got unpressed.
541 /// When the button is not pressed, this is silently ignored.</summary>
542 /// <param name="button">The number of the button. FIXME ensure to have the right interval of possible input</param>
543 virtual public void Unpress(uint button) {
544 Efl.Ui.IClickableConcrete.NativeMethods.efl_ui_clickable_unpress_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),button);
545 Eina.Error.RaiseIfUnhandledException();
547 /// <summary>This aborts the internal state after a press call.
548 /// This will stop the timer for longpress. And set the state of the clickable mixin back into the unpressed state.</summary>
549 virtual public void ResetButtonState(uint button) {
550 Efl.Ui.IClickableConcrete.NativeMethods.efl_ui_clickable_button_state_reset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),button);
551 Eina.Error.RaiseIfUnhandledException();
553 /// <summary>Control the direction of a given widget.
554 /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally.
556 /// Mirroring as defined in <see cref="Efl.Ui.II18n"/> can invert the <c>horizontal</c> direction: it is <c>ltr</c> by default, but becomes <c>rtl</c> if the object is mirrored.</summary>
557 /// <returns>Direction of the widget.</returns>
558 virtual public Efl.Ui.LayoutOrientation GetOrientation() {
559 var _ret_var = Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
560 Eina.Error.RaiseIfUnhandledException();
563 /// <summary>Control the direction of a given widget.
564 /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally.
566 /// Mirroring as defined in <see cref="Efl.Ui.II18n"/> can invert the <c>horizontal</c> direction: it is <c>ltr</c> by default, but becomes <c>rtl</c> if the object is mirrored.</summary>
567 /// <param name="dir">Direction of the widget.</param>
568 virtual public void SetOrientation(Efl.Ui.LayoutOrientation dir) {
569 Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dir);
570 Eina.Error.RaiseIfUnhandledException();
572 /// <summary>Set the split ratio between panes widget first and second parts.
573 /// By default it's homogeneous, i.e., both sides have the same size.
575 /// 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, <c>ratio</c> should be passed as 0.75. This way, second content will be resized to 25% of panes size.
577 /// If displayed vertically, first content is displayed at top, and second content at bottom.
579 /// Note: This ratio will change when user drags the panes bar.</summary>
580 /// <value>Value between 0.0 and 1.0 representing split ratio between panes first and second parts.</value>
581 public double SplitRatio {
582 get { return GetSplitRatio(); }
583 set { SetSplitRatio(value); }
585 /// <summary>Set whether the left and right panes can be resized by user interaction.
586 /// By default panes' contents are resizable by user interaction.</summary>
587 /// <value>Use <c>true</c> to fix the left and right panes sizes and make them not to be resized by user interaction. Use <c>false</c> to make them resizable.</value>
589 get { return GetFixed(); }
590 set { SetFixed(value); }
592 /// <summary>Control the direction of a given widget.
593 /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally.
595 /// Mirroring as defined in <see cref="Efl.Ui.II18n"/> can invert the <c>horizontal</c> direction: it is <c>ltr</c> by default, but becomes <c>rtl</c> if the object is mirrored.</summary>
596 /// <value>Direction of the widget.</value>
597 public Efl.Ui.LayoutOrientation Orientation {
598 get { return GetOrientation(); }
599 set { SetOrientation(value); }
601 private static IntPtr GetEflClassStatic()
603 return Efl.Ui.Panes.efl_ui_panes_class_get();
605 /// <summary>Wrapper for native methods and virtual method delegates.
606 /// For internal use by generated code only.</summary>
607 public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods
609 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary);
610 /// <summary>Gets the list of Eo operations to override.</summary>
611 /// <returns>The list of Eo operations to be overload.</returns>
612 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
614 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
615 var methods = Efl.Eo.Globals.GetUserMethods(type);
617 if (efl_ui_panes_split_ratio_get_static_delegate == null)
619 efl_ui_panes_split_ratio_get_static_delegate = new efl_ui_panes_split_ratio_get_delegate(split_ratio_get);
622 if (methods.FirstOrDefault(m => m.Name == "GetSplitRatio") != null)
624 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) });
627 if (efl_ui_panes_split_ratio_set_static_delegate == null)
629 efl_ui_panes_split_ratio_set_static_delegate = new efl_ui_panes_split_ratio_set_delegate(split_ratio_set);
632 if (methods.FirstOrDefault(m => m.Name == "SetSplitRatio") != null)
634 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) });
637 if (efl_ui_panes_fixed_get_static_delegate == null)
639 efl_ui_panes_fixed_get_static_delegate = new efl_ui_panes_fixed_get_delegate(fixed_get);
642 if (methods.FirstOrDefault(m => m.Name == "GetFixed") != null)
644 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) });
647 if (efl_ui_panes_fixed_set_static_delegate == null)
649 efl_ui_panes_fixed_set_static_delegate = new efl_ui_panes_fixed_set_delegate(fixed_set);
652 if (methods.FirstOrDefault(m => m.Name == "SetFixed") != null)
654 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) });
657 if (efl_ui_clickable_press_static_delegate == null)
659 efl_ui_clickable_press_static_delegate = new efl_ui_clickable_press_delegate(press);
662 if (methods.FirstOrDefault(m => m.Name == "Press") != null)
664 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clickable_press"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clickable_press_static_delegate) });
667 if (efl_ui_clickable_unpress_static_delegate == null)
669 efl_ui_clickable_unpress_static_delegate = new efl_ui_clickable_unpress_delegate(unpress);
672 if (methods.FirstOrDefault(m => m.Name == "Unpress") != null)
674 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clickable_unpress"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clickable_unpress_static_delegate) });
677 if (efl_ui_clickable_button_state_reset_static_delegate == null)
679 efl_ui_clickable_button_state_reset_static_delegate = new efl_ui_clickable_button_state_reset_delegate(button_state_reset);
682 if (methods.FirstOrDefault(m => m.Name == "ResetButtonState") != null)
684 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clickable_button_state_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clickable_button_state_reset_static_delegate) });
687 if (efl_ui_layout_orientation_get_static_delegate == null)
689 efl_ui_layout_orientation_get_static_delegate = new efl_ui_layout_orientation_get_delegate(orientation_get);
692 if (methods.FirstOrDefault(m => m.Name == "GetOrientation") != null)
694 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) });
697 if (efl_ui_layout_orientation_set_static_delegate == null)
699 efl_ui_layout_orientation_set_static_delegate = new efl_ui_layout_orientation_set_delegate(orientation_set);
702 if (methods.FirstOrDefault(m => m.Name == "SetOrientation") != null)
704 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) });
707 descs.AddRange(base.GetEoOps(type));
710 /// <summary>Returns the Eo class for the native methods of this class.</summary>
711 /// <returns>The native class pointer.</returns>
712 public override IntPtr GetEflClass()
714 return Efl.Ui.Panes.efl_ui_panes_class_get();
717 #pragma warning disable CA1707, CS1591, SA1300, SA1600
720 private delegate double efl_ui_panes_split_ratio_get_delegate(System.IntPtr obj, System.IntPtr pd);
723 public delegate double efl_ui_panes_split_ratio_get_api_delegate(System.IntPtr obj);
725 public static Efl.Eo.FunctionWrapper<efl_ui_panes_split_ratio_get_api_delegate> efl_ui_panes_split_ratio_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_panes_split_ratio_get_api_delegate>(Module, "efl_ui_panes_split_ratio_get");
727 private static double split_ratio_get(System.IntPtr obj, System.IntPtr pd)
729 Eina.Log.Debug("function efl_ui_panes_split_ratio_get was called");
730 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
733 double _ret_var = default(double);
736 _ret_var = ((Panes)ws.Target).GetSplitRatio();
740 Eina.Log.Warning($"Callback error: {e.ToString()}");
741 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
749 return efl_ui_panes_split_ratio_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
753 private static efl_ui_panes_split_ratio_get_delegate efl_ui_panes_split_ratio_get_static_delegate;
756 private delegate void efl_ui_panes_split_ratio_set_delegate(System.IntPtr obj, System.IntPtr pd, double ratio);
759 public delegate void efl_ui_panes_split_ratio_set_api_delegate(System.IntPtr obj, double ratio);
761 public static Efl.Eo.FunctionWrapper<efl_ui_panes_split_ratio_set_api_delegate> efl_ui_panes_split_ratio_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_panes_split_ratio_set_api_delegate>(Module, "efl_ui_panes_split_ratio_set");
763 private static void split_ratio_set(System.IntPtr obj, System.IntPtr pd, double ratio)
765 Eina.Log.Debug("function efl_ui_panes_split_ratio_set was called");
766 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
772 ((Panes)ws.Target).SetSplitRatio(ratio);
776 Eina.Log.Warning($"Callback error: {e.ToString()}");
777 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
784 efl_ui_panes_split_ratio_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ratio);
788 private static efl_ui_panes_split_ratio_set_delegate efl_ui_panes_split_ratio_set_static_delegate;
790 [return: MarshalAs(UnmanagedType.U1)]
791 private delegate bool efl_ui_panes_fixed_get_delegate(System.IntPtr obj, System.IntPtr pd);
793 [return: MarshalAs(UnmanagedType.U1)]
794 public delegate bool efl_ui_panes_fixed_get_api_delegate(System.IntPtr obj);
796 public static Efl.Eo.FunctionWrapper<efl_ui_panes_fixed_get_api_delegate> efl_ui_panes_fixed_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_panes_fixed_get_api_delegate>(Module, "efl_ui_panes_fixed_get");
798 private static bool fixed_get(System.IntPtr obj, System.IntPtr pd)
800 Eina.Log.Debug("function efl_ui_panes_fixed_get was called");
801 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
804 bool _ret_var = default(bool);
807 _ret_var = ((Panes)ws.Target).GetFixed();
811 Eina.Log.Warning($"Callback error: {e.ToString()}");
812 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
820 return efl_ui_panes_fixed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
824 private static efl_ui_panes_fixed_get_delegate efl_ui_panes_fixed_get_static_delegate;
827 private delegate void efl_ui_panes_fixed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool kw_fixed);
830 public delegate void efl_ui_panes_fixed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool kw_fixed);
832 public static Efl.Eo.FunctionWrapper<efl_ui_panes_fixed_set_api_delegate> efl_ui_panes_fixed_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_panes_fixed_set_api_delegate>(Module, "efl_ui_panes_fixed_set");
834 private static void fixed_set(System.IntPtr obj, System.IntPtr pd, bool kw_fixed)
836 Eina.Log.Debug("function efl_ui_panes_fixed_set was called");
837 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
843 ((Panes)ws.Target).SetFixed(kw_fixed);
847 Eina.Log.Warning($"Callback error: {e.ToString()}");
848 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
855 efl_ui_panes_fixed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_fixed);
859 private static efl_ui_panes_fixed_set_delegate efl_ui_panes_fixed_set_static_delegate;
862 private delegate void efl_ui_clickable_press_delegate(System.IntPtr obj, System.IntPtr pd, uint button);
865 public delegate void efl_ui_clickable_press_api_delegate(System.IntPtr obj, uint button);
867 public static Efl.Eo.FunctionWrapper<efl_ui_clickable_press_api_delegate> efl_ui_clickable_press_ptr = new Efl.Eo.FunctionWrapper<efl_ui_clickable_press_api_delegate>(Module, "efl_ui_clickable_press");
869 private static void press(System.IntPtr obj, System.IntPtr pd, uint button)
871 Eina.Log.Debug("function efl_ui_clickable_press was called");
872 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
878 ((Panes)ws.Target).Press(button);
882 Eina.Log.Warning($"Callback error: {e.ToString()}");
883 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
890 efl_ui_clickable_press_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button);
894 private static efl_ui_clickable_press_delegate efl_ui_clickable_press_static_delegate;
897 private delegate void efl_ui_clickable_unpress_delegate(System.IntPtr obj, System.IntPtr pd, uint button);
900 public delegate void efl_ui_clickable_unpress_api_delegate(System.IntPtr obj, uint button);
902 public static Efl.Eo.FunctionWrapper<efl_ui_clickable_unpress_api_delegate> efl_ui_clickable_unpress_ptr = new Efl.Eo.FunctionWrapper<efl_ui_clickable_unpress_api_delegate>(Module, "efl_ui_clickable_unpress");
904 private static void unpress(System.IntPtr obj, System.IntPtr pd, uint button)
906 Eina.Log.Debug("function efl_ui_clickable_unpress was called");
907 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
913 ((Panes)ws.Target).Unpress(button);
917 Eina.Log.Warning($"Callback error: {e.ToString()}");
918 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
925 efl_ui_clickable_unpress_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button);
929 private static efl_ui_clickable_unpress_delegate efl_ui_clickable_unpress_static_delegate;
932 private delegate void efl_ui_clickable_button_state_reset_delegate(System.IntPtr obj, System.IntPtr pd, uint button);
935 public delegate void efl_ui_clickable_button_state_reset_api_delegate(System.IntPtr obj, uint button);
937 public static Efl.Eo.FunctionWrapper<efl_ui_clickable_button_state_reset_api_delegate> efl_ui_clickable_button_state_reset_ptr = new Efl.Eo.FunctionWrapper<efl_ui_clickable_button_state_reset_api_delegate>(Module, "efl_ui_clickable_button_state_reset");
939 private static void button_state_reset(System.IntPtr obj, System.IntPtr pd, uint button)
941 Eina.Log.Debug("function efl_ui_clickable_button_state_reset was called");
942 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
948 ((Panes)ws.Target).ResetButtonState(button);
952 Eina.Log.Warning($"Callback error: {e.ToString()}");
953 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
960 efl_ui_clickable_button_state_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button);
964 private static efl_ui_clickable_button_state_reset_delegate efl_ui_clickable_button_state_reset_static_delegate;
967 private delegate Efl.Ui.LayoutOrientation efl_ui_layout_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd);
970 public delegate Efl.Ui.LayoutOrientation efl_ui_layout_orientation_get_api_delegate(System.IntPtr obj);
972 public static Efl.Eo.FunctionWrapper<efl_ui_layout_orientation_get_api_delegate> efl_ui_layout_orientation_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_layout_orientation_get_api_delegate>(Module, "efl_ui_layout_orientation_get");
974 private static Efl.Ui.LayoutOrientation orientation_get(System.IntPtr obj, System.IntPtr pd)
976 Eina.Log.Debug("function efl_ui_layout_orientation_get was called");
977 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
980 Efl.Ui.LayoutOrientation _ret_var = default(Efl.Ui.LayoutOrientation);
983 _ret_var = ((Panes)ws.Target).GetOrientation();
987 Eina.Log.Warning($"Callback error: {e.ToString()}");
988 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
996 return efl_ui_layout_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1000 private static efl_ui_layout_orientation_get_delegate efl_ui_layout_orientation_get_static_delegate;
1003 private delegate void efl_ui_layout_orientation_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.LayoutOrientation dir);
1006 public delegate void efl_ui_layout_orientation_set_api_delegate(System.IntPtr obj, Efl.Ui.LayoutOrientation dir);
1008 public static Efl.Eo.FunctionWrapper<efl_ui_layout_orientation_set_api_delegate> efl_ui_layout_orientation_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_layout_orientation_set_api_delegate>(Module, "efl_ui_layout_orientation_set");
1010 private static void orientation_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.LayoutOrientation dir)
1012 Eina.Log.Debug("function efl_ui_layout_orientation_set was called");
1013 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1019 ((Panes)ws.Target).SetOrientation(dir);
1023 Eina.Log.Warning($"Callback error: {e.ToString()}");
1024 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1031 efl_ui_layout_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir);
1035 private static efl_ui_layout_orientation_set_delegate efl_ui_layout_orientation_set_static_delegate;
1037 #pragma warning restore CA1707, CS1591, SA1300, SA1600