2 #pragma warning disable CS1591
4 using System.Runtime.InteropServices;
5 using System.Collections.Generic;
7 using System.Threading;
8 using System.ComponentModel;
13 /// <summary>Elementary panes class</summary>
14 /// <remarks>This is a <b>BETA</b> class. It can be modified or removed in the future. Do not use it for product development.</remarks>
15 [Efl.Ui.Panes.NativeMethods]
16 [Efl.Eo.BindingEntity]
17 public class Panes : Efl.Ui.LayoutBase, Efl.Input.IClickable, Efl.Ui.ILayoutOrientable
19 /// <summary>Pointer to the native class description.</summary>
20 public override System.IntPtr NativeClass
24 if (((object)this).GetType() == typeof(Panes))
26 return GetEflClassStatic();
30 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
35 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
36 efl_ui_panes_class_get();
37 /// <summary>Initializes a new instance of the <see cref="Panes"/> class.</summary>
38 /// <param name="parent">Parent instance.</param>
39 /// <param name="style">The widget style to use. See <see cref="Efl.Ui.Widget.SetStyle" /></param>
40 public Panes(Efl.Object parent
41 , System.String style = null) : base(efl_ui_panes_class_get(), parent)
43 if (Efl.Eo.Globals.ParamHelperCheck(style))
45 SetStyle(Efl.Eo.Globals.GetParamHelper(style));
48 FinishInstantiation();
51 /// <summary>Subclasses should override this constructor if they are expected to be instantiated from native code.
52 /// Do not call this constructor directly.</summary>
53 /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
54 protected Panes(ConstructingHandle ch) : base(ch)
58 /// <summary>Initializes a new instance of the <see cref="Panes"/> class.
59 /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
60 /// <param name="wh">The native pointer to be wrapped.</param>
61 protected Panes(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
65 /// <summary>Initializes a new instance of the <see cref="Panes"/> class.
66 /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
67 /// <param name="baseKlass">The pointer to the base native Eo class.</param>
68 /// <param name="parent">The Efl.Object parent of this instance.</param>
69 protected Panes(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent)
73 /// <summary>Called when panes got pressed</summary>
74 public event EventHandler PressEvt
78 lock (eflBindingEventLock)
80 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
82 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
85 EventArgs args = EventArgs.Empty;
88 value?.Invoke(obj, args);
92 Eina.Log.Error(e.ToString());
93 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
98 string key = "_ELM_PANES_EVENT_PRESS";
99 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
105 lock (eflBindingEventLock)
107 string key = "_ELM_PANES_EVENT_PRESS";
108 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
112 /// <summary>Method to raise event PressEvt.</summary>
113 public void OnPressEvt(EventArgs e)
115 var key = "_ELM_PANES_EVENT_PRESS";
116 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
117 if (desc == IntPtr.Zero)
119 Eina.Log.Error($"Failed to get native event {key}");
123 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
125 /// <summary>Called when panes are no longer pressed</summary>
126 public event EventHandler UnpressEvt
130 lock (eflBindingEventLock)
132 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
134 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
137 EventArgs args = EventArgs.Empty;
140 value?.Invoke(obj, args);
144 Eina.Log.Error(e.ToString());
145 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
150 string key = "_ELM_PANES_EVENT_UNPRESS";
151 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
157 lock (eflBindingEventLock)
159 string key = "_ELM_PANES_EVENT_UNPRESS";
160 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
164 /// <summary>Method to raise event UnpressEvt.</summary>
165 public void OnUnpressEvt(EventArgs e)
167 var key = "_ELM_PANES_EVENT_UNPRESS";
168 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
169 if (desc == IntPtr.Zero)
171 Eina.Log.Error($"Failed to get native event {key}");
175 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
177 /// <summary>Called when object is in sequence pressed and unpressed, by the primary button</summary>
178 /// <value><see cref="Efl.Input.IClickableClickedEvt_Args"/></value>
179 public event EventHandler<Efl.Input.IClickableClickedEvt_Args> ClickedEvt
183 lock (eflBindingEventLock)
185 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
187 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
190 Efl.Input.IClickableClickedEvt_Args args = new Efl.Input.IClickableClickedEvt_Args();
194 value?.Invoke(obj, args);
198 Eina.Log.Error(e.ToString());
199 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
204 string key = "_EFL_INPUT_EVENT_CLICKED";
205 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
211 lock (eflBindingEventLock)
213 string key = "_EFL_INPUT_EVENT_CLICKED";
214 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
218 /// <summary>Method to raise event ClickedEvt.</summary>
219 public void OnClickedEvt(Efl.Input.IClickableClickedEvt_Args e)
221 var key = "_EFL_INPUT_EVENT_CLICKED";
222 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
223 if (desc == IntPtr.Zero)
225 Eina.Log.Error($"Failed to get native event {key}");
229 IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg));
232 Marshal.StructureToPtr(e.arg, info, false);
233 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
237 Marshal.FreeHGlobal(info);
240 /// <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>
241 /// <value><see cref="Efl.Input.IClickableClickedAnyEvt_Args"/></value>
242 public event EventHandler<Efl.Input.IClickableClickedAnyEvt_Args> ClickedAnyEvt
246 lock (eflBindingEventLock)
248 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
250 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
253 Efl.Input.IClickableClickedAnyEvt_Args args = new Efl.Input.IClickableClickedAnyEvt_Args();
257 value?.Invoke(obj, args);
261 Eina.Log.Error(e.ToString());
262 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
267 string key = "_EFL_INPUT_EVENT_CLICKED_ANY";
268 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
274 lock (eflBindingEventLock)
276 string key = "_EFL_INPUT_EVENT_CLICKED_ANY";
277 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
281 /// <summary>Method to raise event ClickedAnyEvt.</summary>
282 public void OnClickedAnyEvt(Efl.Input.IClickableClickedAnyEvt_Args e)
284 var key = "_EFL_INPUT_EVENT_CLICKED_ANY";
285 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
286 if (desc == IntPtr.Zero)
288 Eina.Log.Error($"Failed to get native event {key}");
292 IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg));
295 Marshal.StructureToPtr(e.arg, info, false);
296 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
300 Marshal.FreeHGlobal(info);
303 /// <summary>Called when the object is pressed, event_info is the button that got pressed</summary>
304 /// <value><see cref="Efl.Input.IClickablePressedEvt_Args"/></value>
305 public event EventHandler<Efl.Input.IClickablePressedEvt_Args> PressedEvt
309 lock (eflBindingEventLock)
311 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
313 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
316 Efl.Input.IClickablePressedEvt_Args args = new Efl.Input.IClickablePressedEvt_Args();
317 args.arg = Marshal.ReadInt32(evt.Info);
320 value?.Invoke(obj, args);
324 Eina.Log.Error(e.ToString());
325 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
330 string key = "_EFL_INPUT_EVENT_PRESSED";
331 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
337 lock (eflBindingEventLock)
339 string key = "_EFL_INPUT_EVENT_PRESSED";
340 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
344 /// <summary>Method to raise event PressedEvt.</summary>
345 public void OnPressedEvt(Efl.Input.IClickablePressedEvt_Args e)
347 var key = "_EFL_INPUT_EVENT_PRESSED";
348 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
349 if (desc == IntPtr.Zero)
351 Eina.Log.Error($"Failed to get native event {key}");
355 IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg);
358 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
362 Marshal.FreeHGlobal(info);
365 /// <summary>Called when the object is no longer pressed, event_info is the button that got pressed</summary>
366 /// <value><see cref="Efl.Input.IClickableUnpressedEvt_Args"/></value>
367 public event EventHandler<Efl.Input.IClickableUnpressedEvt_Args> UnpressedEvt
371 lock (eflBindingEventLock)
373 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
375 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
378 Efl.Input.IClickableUnpressedEvt_Args args = new Efl.Input.IClickableUnpressedEvt_Args();
379 args.arg = Marshal.ReadInt32(evt.Info);
382 value?.Invoke(obj, args);
386 Eina.Log.Error(e.ToString());
387 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
392 string key = "_EFL_INPUT_EVENT_UNPRESSED";
393 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
399 lock (eflBindingEventLock)
401 string key = "_EFL_INPUT_EVENT_UNPRESSED";
402 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
406 /// <summary>Method to raise event UnpressedEvt.</summary>
407 public void OnUnpressedEvt(Efl.Input.IClickableUnpressedEvt_Args e)
409 var key = "_EFL_INPUT_EVENT_UNPRESSED";
410 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
411 if (desc == IntPtr.Zero)
413 Eina.Log.Error($"Failed to get native event {key}");
417 IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg);
420 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
424 Marshal.FreeHGlobal(info);
427 /// <summary>Called when the object receives a long press, event_info is the button that got pressed</summary>
428 /// <value><see cref="Efl.Input.IClickableLongpressedEvt_Args"/></value>
429 public event EventHandler<Efl.Input.IClickableLongpressedEvt_Args> LongpressedEvt
433 lock (eflBindingEventLock)
435 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
437 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
440 Efl.Input.IClickableLongpressedEvt_Args args = new Efl.Input.IClickableLongpressedEvt_Args();
441 args.arg = Marshal.ReadInt32(evt.Info);
444 value?.Invoke(obj, args);
448 Eina.Log.Error(e.ToString());
449 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
454 string key = "_EFL_INPUT_EVENT_LONGPRESSED";
455 AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
461 lock (eflBindingEventLock)
463 string key = "_EFL_INPUT_EVENT_LONGPRESSED";
464 RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
468 /// <summary>Method to raise event LongpressedEvt.</summary>
469 public void OnLongpressedEvt(Efl.Input.IClickableLongpressedEvt_Args e)
471 var key = "_EFL_INPUT_EVENT_LONGPRESSED";
472 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
473 if (desc == IntPtr.Zero)
475 Eina.Log.Error($"Failed to get native event {key}");
479 IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg);
482 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
486 Marshal.FreeHGlobal(info);
489 /// <summary>The second half of the panes widget (right or bottom)</summary>
490 public Efl.Ui.PanesPart SecondPart
494 return GetPart("second") as Efl.Ui.PanesPart;
497 /// <summary>The first half of the panes widget (left or top)</summary>
498 public Efl.Ui.PanesPart FirstPart
502 return GetPart("first") as Efl.Ui.PanesPart;
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 /// <returns>Value between 0.0 and 1.0 representing split ratio between panes first and second parts.</returns>
514 virtual public double GetSplitRatio() {
515 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)));
516 Eina.Error.RaiseIfUnhandledException();
519 /// <summary>Set the split ratio between panes widget first and second parts.
520 /// By default it's homogeneous, i.e., both sides have the same size.
522 /// 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.
524 /// If displayed vertically, first content is displayed at top, and second content at bottom.
526 /// Note: This ratio will change when user drags the panes bar.</summary>
527 /// <param name="ratio">Value between 0.0 and 1.0 representing split ratio between panes first and second parts.</param>
528 virtual public void SetSplitRatio(double ratio) {
529 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);
530 Eina.Error.RaiseIfUnhandledException();
532 /// <summary>Set whether the left and right panes can be resized by user interaction.
533 /// By default panes' contents are resizable by user interaction.</summary>
534 /// <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>
535 virtual public bool GetFixed() {
536 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)));
537 Eina.Error.RaiseIfUnhandledException();
540 /// <summary>Set whether the left and right panes can be resized by user interaction.
541 /// By default panes' contents are resizable by user interaction.</summary>
542 /// <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>
543 virtual public void SetFixed(bool kw_fixed) {
544 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);
545 Eina.Error.RaiseIfUnhandledException();
547 /// <summary>This returns true if the given object is currently in event emission</summary>
548 virtual public bool GetInteraction() {
549 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)));
550 Eina.Error.RaiseIfUnhandledException();
553 /// <summary>Change internal states that a button got pressed.
554 /// When the button is already pressed, this is silently ignored.</summary>
555 /// <param name="button">The number of the button. FIXME ensure to have the right interval of possible input</param>
556 virtual public void Press(uint button) {
557 Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_press_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button);
558 Eina.Error.RaiseIfUnhandledException();
560 /// <summary>Change internal states that a button got unpressed.
561 /// When the button is not pressed, this is silently ignored.</summary>
562 /// <param name="button">The number of the button. FIXME ensure to have the right interval of possible input</param>
563 virtual public void Unpress(uint button) {
564 Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_unpress_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button);
565 Eina.Error.RaiseIfUnhandledException();
567 /// <summary>This aborts the internal state after a press call.
568 /// This will stop the timer for longpress. And set the state of the clickable mixin back into the unpressed state.</summary>
569 virtual public void ResetButtonState(uint button) {
570 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);
571 Eina.Error.RaiseIfUnhandledException();
573 /// <summary>This aborts ongoing longpress event.
574 /// That is, this will stop the timer for longpress.</summary>
575 virtual public void LongpressAbort(uint button) {
576 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);
577 Eina.Error.RaiseIfUnhandledException();
579 /// <summary>Control the direction of a given widget.
580 /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally.
582 /// 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>
583 /// <returns>Direction of the widget.</returns>
584 virtual public Efl.Ui.LayoutOrientation GetOrientation() {
585 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)));
586 Eina.Error.RaiseIfUnhandledException();
589 /// <summary>Control the direction of a given widget.
590 /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally.
592 /// 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>
593 /// <param name="dir">Direction of the widget.</param>
594 virtual public void SetOrientation(Efl.Ui.LayoutOrientation dir) {
595 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);
596 Eina.Error.RaiseIfUnhandledException();
598 /// <summary>Set the split ratio between panes widget first and second parts.
599 /// By default it's homogeneous, i.e., both sides have the same size.
601 /// 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.
603 /// If displayed vertically, first content is displayed at top, and second content at bottom.
605 /// Note: This ratio will change when user drags the panes bar.</summary>
606 /// <value>Value between 0.0 and 1.0 representing split ratio between panes first and second parts.</value>
607 public double SplitRatio {
608 get { return GetSplitRatio(); }
609 set { SetSplitRatio(value); }
611 /// <summary>Set whether the left and right panes can be resized by user interaction.
612 /// By default panes' contents are resizable by user interaction.</summary>
613 /// <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>
615 get { return GetFixed(); }
616 set { SetFixed(value); }
618 /// <summary>This returns true if the given object is currently in event emission</summary>
619 public bool Interaction {
620 get { return GetInteraction(); }
622 /// <summary>Control the direction of a given widget.
623 /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally.
625 /// 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>
626 /// <value>Direction of the widget.</value>
627 public Efl.Ui.LayoutOrientation Orientation {
628 get { return GetOrientation(); }
629 set { SetOrientation(value); }
631 private static IntPtr GetEflClassStatic()
633 return Efl.Ui.Panes.efl_ui_panes_class_get();
635 /// <summary>Wrapper for native methods and virtual method delegates.
636 /// For internal use by generated code only.</summary>
637 public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods
639 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary);
640 /// <summary>Gets the list of Eo operations to override.</summary>
641 /// <returns>The list of Eo operations to be overload.</returns>
642 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
644 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
645 var methods = Efl.Eo.Globals.GetUserMethods(type);
647 if (efl_ui_panes_split_ratio_get_static_delegate == null)
649 efl_ui_panes_split_ratio_get_static_delegate = new efl_ui_panes_split_ratio_get_delegate(split_ratio_get);
652 if (methods.FirstOrDefault(m => m.Name == "GetSplitRatio") != null)
654 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) });
657 if (efl_ui_panes_split_ratio_set_static_delegate == null)
659 efl_ui_panes_split_ratio_set_static_delegate = new efl_ui_panes_split_ratio_set_delegate(split_ratio_set);
662 if (methods.FirstOrDefault(m => m.Name == "SetSplitRatio") != null)
664 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) });
667 if (efl_ui_panes_fixed_get_static_delegate == null)
669 efl_ui_panes_fixed_get_static_delegate = new efl_ui_panes_fixed_get_delegate(fixed_get);
672 if (methods.FirstOrDefault(m => m.Name == "GetFixed") != null)
674 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) });
677 if (efl_ui_panes_fixed_set_static_delegate == null)
679 efl_ui_panes_fixed_set_static_delegate = new efl_ui_panes_fixed_set_delegate(fixed_set);
682 if (methods.FirstOrDefault(m => m.Name == "SetFixed") != null)
684 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) });
687 if (efl_input_clickable_interaction_get_static_delegate == null)
689 efl_input_clickable_interaction_get_static_delegate = new efl_input_clickable_interaction_get_delegate(interaction_get);
692 if (methods.FirstOrDefault(m => m.Name == "GetInteraction") != null)
694 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) });
697 if (efl_input_clickable_press_static_delegate == null)
699 efl_input_clickable_press_static_delegate = new efl_input_clickable_press_delegate(press);
702 if (methods.FirstOrDefault(m => m.Name == "Press") != null)
704 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) });
707 if (efl_input_clickable_unpress_static_delegate == null)
709 efl_input_clickable_unpress_static_delegate = new efl_input_clickable_unpress_delegate(unpress);
712 if (methods.FirstOrDefault(m => m.Name == "Unpress") != null)
714 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) });
717 if (efl_input_clickable_button_state_reset_static_delegate == null)
719 efl_input_clickable_button_state_reset_static_delegate = new efl_input_clickable_button_state_reset_delegate(button_state_reset);
722 if (methods.FirstOrDefault(m => m.Name == "ResetButtonState") != null)
724 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) });
727 if (efl_input_clickable_longpress_abort_static_delegate == null)
729 efl_input_clickable_longpress_abort_static_delegate = new efl_input_clickable_longpress_abort_delegate(longpress_abort);
732 if (methods.FirstOrDefault(m => m.Name == "LongpressAbort") != null)
734 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) });
737 if (efl_ui_layout_orientation_get_static_delegate == null)
739 efl_ui_layout_orientation_get_static_delegate = new efl_ui_layout_orientation_get_delegate(orientation_get);
742 if (methods.FirstOrDefault(m => m.Name == "GetOrientation") != null)
744 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) });
747 if (efl_ui_layout_orientation_set_static_delegate == null)
749 efl_ui_layout_orientation_set_static_delegate = new efl_ui_layout_orientation_set_delegate(orientation_set);
752 if (methods.FirstOrDefault(m => m.Name == "SetOrientation") != null)
754 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) });
757 descs.AddRange(base.GetEoOps(type));
760 /// <summary>Returns the Eo class for the native methods of this class.</summary>
761 /// <returns>The native class pointer.</returns>
762 public override IntPtr GetEflClass()
764 return Efl.Ui.Panes.efl_ui_panes_class_get();
767 #pragma warning disable CA1707, CS1591, SA1300, SA1600
770 private delegate double efl_ui_panes_split_ratio_get_delegate(System.IntPtr obj, System.IntPtr pd);
773 public delegate double efl_ui_panes_split_ratio_get_api_delegate(System.IntPtr obj);
775 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");
777 private static double split_ratio_get(System.IntPtr obj, System.IntPtr pd)
779 Eina.Log.Debug("function efl_ui_panes_split_ratio_get was called");
780 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
783 double _ret_var = default(double);
786 _ret_var = ((Panes)ws.Target).GetSplitRatio();
790 Eina.Log.Warning($"Callback error: {e.ToString()}");
791 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
799 return efl_ui_panes_split_ratio_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
803 private static efl_ui_panes_split_ratio_get_delegate efl_ui_panes_split_ratio_get_static_delegate;
806 private delegate void efl_ui_panes_split_ratio_set_delegate(System.IntPtr obj, System.IntPtr pd, double ratio);
809 public delegate void efl_ui_panes_split_ratio_set_api_delegate(System.IntPtr obj, double ratio);
811 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");
813 private static void split_ratio_set(System.IntPtr obj, System.IntPtr pd, double ratio)
815 Eina.Log.Debug("function efl_ui_panes_split_ratio_set was called");
816 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
822 ((Panes)ws.Target).SetSplitRatio(ratio);
826 Eina.Log.Warning($"Callback error: {e.ToString()}");
827 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
834 efl_ui_panes_split_ratio_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ratio);
838 private static efl_ui_panes_split_ratio_set_delegate efl_ui_panes_split_ratio_set_static_delegate;
840 [return: MarshalAs(UnmanagedType.U1)]
841 private delegate bool efl_ui_panes_fixed_get_delegate(System.IntPtr obj, System.IntPtr pd);
843 [return: MarshalAs(UnmanagedType.U1)]
844 public delegate bool efl_ui_panes_fixed_get_api_delegate(System.IntPtr obj);
846 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");
848 private static bool fixed_get(System.IntPtr obj, System.IntPtr pd)
850 Eina.Log.Debug("function efl_ui_panes_fixed_get was called");
851 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
854 bool _ret_var = default(bool);
857 _ret_var = ((Panes)ws.Target).GetFixed();
861 Eina.Log.Warning($"Callback error: {e.ToString()}");
862 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
870 return efl_ui_panes_fixed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
874 private static efl_ui_panes_fixed_get_delegate efl_ui_panes_fixed_get_static_delegate;
877 private delegate void efl_ui_panes_fixed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool kw_fixed);
880 public delegate void efl_ui_panes_fixed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool kw_fixed);
882 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");
884 private static void fixed_set(System.IntPtr obj, System.IntPtr pd, bool kw_fixed)
886 Eina.Log.Debug("function efl_ui_panes_fixed_set was called");
887 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
893 ((Panes)ws.Target).SetFixed(kw_fixed);
897 Eina.Log.Warning($"Callback error: {e.ToString()}");
898 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
905 efl_ui_panes_fixed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_fixed);
909 private static efl_ui_panes_fixed_set_delegate efl_ui_panes_fixed_set_static_delegate;
911 [return: MarshalAs(UnmanagedType.U1)]
912 private delegate bool efl_input_clickable_interaction_get_delegate(System.IntPtr obj, System.IntPtr pd);
914 [return: MarshalAs(UnmanagedType.U1)]
915 public delegate bool efl_input_clickable_interaction_get_api_delegate(System.IntPtr obj);
917 public static Efl.Eo.FunctionWrapper<efl_input_clickable_interaction_get_api_delegate> efl_input_clickable_interaction_get_ptr = new Efl.Eo.FunctionWrapper<efl_input_clickable_interaction_get_api_delegate>(Module, "efl_input_clickable_interaction_get");
919 private static bool interaction_get(System.IntPtr obj, System.IntPtr pd)
921 Eina.Log.Debug("function efl_input_clickable_interaction_get was called");
922 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
925 bool _ret_var = default(bool);
928 _ret_var = ((Panes)ws.Target).GetInteraction();
932 Eina.Log.Warning($"Callback error: {e.ToString()}");
933 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
941 return efl_input_clickable_interaction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
945 private static efl_input_clickable_interaction_get_delegate efl_input_clickable_interaction_get_static_delegate;
948 private delegate void efl_input_clickable_press_delegate(System.IntPtr obj, System.IntPtr pd, uint button);
951 public delegate void efl_input_clickable_press_api_delegate(System.IntPtr obj, uint button);
953 public static Efl.Eo.FunctionWrapper<efl_input_clickable_press_api_delegate> efl_input_clickable_press_ptr = new Efl.Eo.FunctionWrapper<efl_input_clickable_press_api_delegate>(Module, "efl_input_clickable_press");
955 private static void press(System.IntPtr obj, System.IntPtr pd, uint button)
957 Eina.Log.Debug("function efl_input_clickable_press was called");
958 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
964 ((Panes)ws.Target).Press(button);
968 Eina.Log.Warning($"Callback error: {e.ToString()}");
969 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
976 efl_input_clickable_press_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button);
980 private static efl_input_clickable_press_delegate efl_input_clickable_press_static_delegate;
983 private delegate void efl_input_clickable_unpress_delegate(System.IntPtr obj, System.IntPtr pd, uint button);
986 public delegate void efl_input_clickable_unpress_api_delegate(System.IntPtr obj, uint button);
988 public static Efl.Eo.FunctionWrapper<efl_input_clickable_unpress_api_delegate> efl_input_clickable_unpress_ptr = new Efl.Eo.FunctionWrapper<efl_input_clickable_unpress_api_delegate>(Module, "efl_input_clickable_unpress");
990 private static void unpress(System.IntPtr obj, System.IntPtr pd, uint button)
992 Eina.Log.Debug("function efl_input_clickable_unpress was called");
993 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
999 ((Panes)ws.Target).Unpress(button);
1003 Eina.Log.Warning($"Callback error: {e.ToString()}");
1004 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1011 efl_input_clickable_unpress_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button);
1015 private static efl_input_clickable_unpress_delegate efl_input_clickable_unpress_static_delegate;
1018 private delegate void efl_input_clickable_button_state_reset_delegate(System.IntPtr obj, System.IntPtr pd, uint button);
1021 public delegate void efl_input_clickable_button_state_reset_api_delegate(System.IntPtr obj, uint button);
1023 public static Efl.Eo.FunctionWrapper<efl_input_clickable_button_state_reset_api_delegate> efl_input_clickable_button_state_reset_ptr = new Efl.Eo.FunctionWrapper<efl_input_clickable_button_state_reset_api_delegate>(Module, "efl_input_clickable_button_state_reset");
1025 private static void button_state_reset(System.IntPtr obj, System.IntPtr pd, uint button)
1027 Eina.Log.Debug("function efl_input_clickable_button_state_reset was called");
1028 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1034 ((Panes)ws.Target).ResetButtonState(button);
1038 Eina.Log.Warning($"Callback error: {e.ToString()}");
1039 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1046 efl_input_clickable_button_state_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button);
1050 private static efl_input_clickable_button_state_reset_delegate efl_input_clickable_button_state_reset_static_delegate;
1053 private delegate void efl_input_clickable_longpress_abort_delegate(System.IntPtr obj, System.IntPtr pd, uint button);
1056 public delegate void efl_input_clickable_longpress_abort_api_delegate(System.IntPtr obj, uint button);
1058 public static Efl.Eo.FunctionWrapper<efl_input_clickable_longpress_abort_api_delegate> efl_input_clickable_longpress_abort_ptr = new Efl.Eo.FunctionWrapper<efl_input_clickable_longpress_abort_api_delegate>(Module, "efl_input_clickable_longpress_abort");
1060 private static void longpress_abort(System.IntPtr obj, System.IntPtr pd, uint button)
1062 Eina.Log.Debug("function efl_input_clickable_longpress_abort was called");
1063 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1069 ((Panes)ws.Target).LongpressAbort(button);
1073 Eina.Log.Warning($"Callback error: {e.ToString()}");
1074 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1081 efl_input_clickable_longpress_abort_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button);
1085 private static efl_input_clickable_longpress_abort_delegate efl_input_clickable_longpress_abort_static_delegate;
1088 private delegate Efl.Ui.LayoutOrientation efl_ui_layout_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd);
1091 public delegate Efl.Ui.LayoutOrientation efl_ui_layout_orientation_get_api_delegate(System.IntPtr obj);
1093 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");
1095 private static Efl.Ui.LayoutOrientation orientation_get(System.IntPtr obj, System.IntPtr pd)
1097 Eina.Log.Debug("function efl_ui_layout_orientation_get was called");
1098 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1101 Efl.Ui.LayoutOrientation _ret_var = default(Efl.Ui.LayoutOrientation);
1104 _ret_var = ((Panes)ws.Target).GetOrientation();
1108 Eina.Log.Warning($"Callback error: {e.ToString()}");
1109 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1117 return efl_ui_layout_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1121 private static efl_ui_layout_orientation_get_delegate efl_ui_layout_orientation_get_static_delegate;
1124 private delegate void efl_ui_layout_orientation_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.LayoutOrientation dir);
1127 public delegate void efl_ui_layout_orientation_set_api_delegate(System.IntPtr obj, Efl.Ui.LayoutOrientation dir);
1129 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");
1131 private static void orientation_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.LayoutOrientation dir)
1133 Eina.Log.Debug("function efl_ui_layout_orientation_set was called");
1134 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1140 ((Panes)ws.Target).SetOrientation(dir);
1144 Eina.Log.Warning($"Callback error: {e.ToString()}");
1145 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1152 efl_ui_layout_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir);
1156 private static efl_ui_layout_orientation_set_delegate efl_ui_layout_orientation_set_static_delegate;
1158 #pragma warning restore CA1707, CS1591, SA1300, SA1600
1167 #pragma warning disable CS1591
1168 public static class Efl_UiPanes_ExtensionMethods {
1169 public static Efl.BindableProperty<double> SplitRatio<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Ui.Panes, T>magic = null) where T : Efl.Ui.Panes {
1170 return new Efl.BindableProperty<double>("split_ratio", fac);
1173 public static Efl.BindableProperty<bool> Fixed<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Ui.Panes, T>magic = null) where T : Efl.Ui.Panes {
1174 return new Efl.BindableProperty<bool>("fixed", fac);
1178 public static Efl.BindableProperty<Efl.Ui.LayoutOrientation> Orientation<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Ui.Panes, T>magic = null) where T : Efl.Ui.Panes {
1179 return new Efl.BindableProperty<Efl.Ui.LayoutOrientation>("orientation", fac);
1182 public static Efl.BindableFactoryPart<Efl.Ui.PanesPart> SecondPart<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Ui.Panes, T> x=null) where T : Efl.Ui.Panes
1184 return new Efl.BindableFactoryPart<Efl.Ui.PanesPart>("second" ,fac);
1187 public static Efl.BindableFactoryPart<Efl.Ui.PanesPart> FirstPart<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Ui.Panes, T> x=null) where T : Efl.Ui.Panes
1189 return new Efl.BindableFactoryPart<Efl.Ui.PanesPart>("first" ,fac);
1193 #pragma warning restore CS1591