2 #pragma warning disable CS1591
4 using System.Runtime.InteropServices;
5 using System.Collections.Generic;
7 using System.Threading;
8 using System.ComponentModel;
13 /// <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>
14 [Efl.Ui.IScrollableInteractiveConcrete.NativeMethods]
15 [Efl.Eo.BindingEntity]
16 public interface IScrollableInteractive :
18 Efl.Eo.IWrapper, IDisposable
20 /// <summary>The content position</summary>
21 /// <returns>The position is virtual value, (0, 0) starting at the top-left.</returns>
22 Eina.Position2D GetContentPos();
23 /// <summary>The content position</summary>
24 /// <param name="pos">The position is virtual value, (0, 0) starting at the top-left.</param>
25 void SetContentPos(Eina.Position2D pos);
26 /// <summary>The content size</summary>
27 /// <returns>The content size in pixels.</returns>
28 Eina.Size2D GetContentSize();
29 /// <summary>The viewport geometry</summary>
30 /// <returns>It is absolute geometry.</returns>
31 Eina.Rect GetViewportGeometry();
32 /// <summary>Bouncing behavior
33 /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one.</summary>
34 /// <param name="horiz">Horizontal bounce policy.</param>
35 /// <param name="vert">Vertical bounce policy.</param>
36 void GetBounceEnabled(out bool horiz, out bool vert);
37 /// <summary>Bouncing behavior
38 /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one.</summary>
39 /// <param name="horiz">Horizontal bounce policy.</param>
40 /// <param name="vert">Vertical bounce policy.</param>
41 void SetBounceEnabled(bool horiz, bool vert);
42 /// <summary>Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See <see cref="Efl.Ui.IScrollableInteractive.SetMovementBlock"/>.</summary>
43 /// <returns><c>true</c> if freeze, <c>false</c> otherwise</returns>
44 bool GetScrollFreeze();
45 /// <summary>Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See <see cref="Efl.Ui.IScrollableInteractive.SetMovementBlock"/>.</summary>
46 /// <param name="freeze"><c>true</c> if freeze, <c>false</c> otherwise</param>
47 void SetScrollFreeze(bool freeze);
48 /// <summary>Hold property When hold turns on, it only scrolls by holding action.</summary>
49 /// <returns><c>true</c> if hold, <c>false</c> otherwise</returns>
51 /// <summary>Hold property When hold turns on, it only scrolls by holding action.</summary>
52 /// <param name="hold"><c>true</c> if hold, <c>false</c> otherwise</param>
53 void SetScrollHold(bool hold);
54 /// <summary>Controls an infinite loop for a scroller.</summary>
55 /// <param name="loop_h">The scrolling horizontal loop</param>
56 /// <param name="loop_v">The Scrolling vertical loop</param>
57 void GetLooping(out bool loop_h, out bool loop_v);
58 /// <summary>Controls an infinite loop for a scroller.</summary>
59 /// <param name="loop_h">The scrolling horizontal loop</param>
60 /// <param name="loop_v">The Scrolling vertical loop</param>
61 void SetLooping(bool loop_h, bool loop_v);
62 /// <summary>Blocking of scrolling (per axis)
63 /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is <c>none</c>, where movements are allowed in both directions.</summary>
64 /// <returns>Which axis (or axes) to block</returns>
65 Efl.Ui.ScrollBlock GetMovementBlock();
66 /// <summary>Blocking of scrolling (per axis)
67 /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is <c>none</c>, where movements are allowed in both directions.</summary>
68 /// <param name="block">Which axis (or axes) to block</param>
69 void SetMovementBlock(Efl.Ui.ScrollBlock block);
70 /// <summary>Control scrolling gravity on the scrollable
71 /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases.
73 /// The scroller will adjust the view to glue itself as follows.
75 /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content
77 /// Default values for x and y are 0.0</summary>
78 /// <param name="x">Horizontal scrolling gravity</param>
79 /// <param name="y">Vertical scrolling gravity</param>
80 void GetGravity(out double x, out double y);
81 /// <summary>Control scrolling gravity on the scrollable
82 /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases.
84 /// The scroller will adjust the view to glue itself as follows.
86 /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content
88 /// Default values for x and y are 0.0</summary>
89 /// <param name="x">Horizontal scrolling gravity</param>
90 /// <param name="y">Vertical scrolling gravity</param>
91 void SetGravity(double x, double y);
92 /// <summary>Prevent the scrollable from being smaller than the minimum size of the content.
93 /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction.</summary>
94 /// <param name="w">Whether to limit the minimum horizontal size</param>
95 /// <param name="h">Whether to limit the minimum vertical size</param>
96 void SetMatchContent(bool w, bool h);
97 /// <summary>Control the step size
98 /// Use this call to set step size. This value is used when scroller scroll by arrow key event.</summary>
99 /// <returns>The step size in pixels</returns>
100 Eina.Position2D GetStepSize();
101 /// <summary>Control the step size
102 /// Use this call to set step size. This value is used when scroller scroll by arrow key event.</summary>
103 /// <param name="step">The step size in pixels</param>
104 void SetStepSize(Eina.Position2D step);
105 /// <summary>Show a specific virtual region within the scroller content object.
106 /// This will ensure all (or part if it does not fit) of the designated region in the virtual content object (0, 0 starting at the top-left of the virtual content object) is shown within the scroller. This allows the scroller to "smoothly slide" to this location (if configuration in general calls for transitions). It may not jump immediately to the new location and make take a while and show other content along the way.</summary>
107 /// <param name="rect">The position where to scroll. and The size user want to see</param>
108 /// <param name="animation">Whether to scroll with animation or not</param>
109 void Scroll(Eina.Rect rect, bool animation);
110 /// <summary>The content position</summary>
111 /// <value>The position is virtual value, (0, 0) starting at the top-left.</value>
112 Eina.Position2D ContentPos {
116 /// <summary>The content size</summary>
117 /// <value>The content size in pixels.</value>
118 Eina.Size2D ContentSize {
121 /// <summary>The viewport geometry</summary>
122 /// <value>It is absolute geometry.</value>
123 Eina.Rect ViewportGeometry {
126 /// <summary>Bouncing behavior
127 /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one.</summary>
128 /// <value>Horizontal bounce policy.</value>
129 (bool, bool) BounceEnabled {
133 /// <summary>Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See <see cref="Efl.Ui.IScrollableInteractive.SetMovementBlock"/>.</summary>
134 /// <value><c>true</c> if freeze, <c>false</c> otherwise</value>
139 /// <summary>Hold property When hold turns on, it only scrolls by holding action.</summary>
140 /// <value><c>true</c> if hold, <c>false</c> otherwise</value>
145 /// <summary>Controls an infinite loop for a scroller.</summary>
146 /// <value>The scrolling horizontal loop</value>
147 (bool, bool) Looping {
151 /// <summary>Blocking of scrolling (per axis)
152 /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is <c>none</c>, where movements are allowed in both directions.</summary>
153 /// <value>Which axis (or axes) to block</value>
154 Efl.Ui.ScrollBlock MovementBlock {
158 /// <summary>Control scrolling gravity on the scrollable
159 /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases.
161 /// The scroller will adjust the view to glue itself as follows.
163 /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content
165 /// Default values for x and y are 0.0</summary>
166 /// <value>Horizontal scrolling gravity</value>
167 (double, double) Gravity {
171 /// <summary>Prevent the scrollable from being smaller than the minimum size of the content.
172 /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction.</summary>
173 /// <value>Whether to limit the minimum horizontal size</value>
174 (bool, bool) MatchContent {
177 /// <summary>Control the step size
178 /// Use this call to set step size. This value is used when scroller scroll by arrow key event.</summary>
179 /// <value>The step size in pixels</value>
180 Eina.Position2D StepSize {
185 /// <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>
186 sealed public class IScrollableInteractiveConcrete :
188 , IScrollableInteractive
191 /// <summary>Pointer to the native class description.</summary>
192 public override System.IntPtr NativeClass
196 if (((object)this).GetType() == typeof(IScrollableInteractiveConcrete))
198 return GetEflClassStatic();
202 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
207 /// <summary>Subclasses should override this constructor if they are expected to be instantiated from native code.
208 /// Do not call this constructor directly.</summary>
209 /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
210 private IScrollableInteractiveConcrete(ConstructingHandle ch) : base(ch)
214 [System.Runtime.InteropServices.DllImport("libefl.so.1")] internal static extern System.IntPtr
215 efl_ui_scrollable_interactive_interface_get();
216 /// <summary>Initializes a new instance of the <see cref="IScrollableInteractive"/> class.
217 /// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
218 /// <param name="wh">The native pointer to be wrapped.</param>
219 private IScrollableInteractiveConcrete(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
223 /// <summary>Called when scroll operation starts</summary>
224 public event EventHandler ScrollStartEvt
228 lock (eflBindingEventLock)
230 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
232 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
235 EventArgs args = EventArgs.Empty;
238 value?.Invoke(obj, args);
242 Eina.Log.Error(e.ToString());
243 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
248 string key = "_EFL_UI_EVENT_SCROLL_START";
249 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
255 lock (eflBindingEventLock)
257 string key = "_EFL_UI_EVENT_SCROLL_START";
258 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
262 /// <summary>Method to raise event ScrollStartEvt.</summary>
263 public void OnScrollStartEvt(EventArgs e)
265 var key = "_EFL_UI_EVENT_SCROLL_START";
266 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
267 if (desc == IntPtr.Zero)
269 Eina.Log.Error($"Failed to get native event {key}");
273 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
275 /// <summary>Called when scrolling</summary>
276 public event EventHandler ScrollEvt
280 lock (eflBindingEventLock)
282 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
284 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
287 EventArgs args = EventArgs.Empty;
290 value?.Invoke(obj, args);
294 Eina.Log.Error(e.ToString());
295 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
300 string key = "_EFL_UI_EVENT_SCROLL";
301 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
307 lock (eflBindingEventLock)
309 string key = "_EFL_UI_EVENT_SCROLL";
310 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
314 /// <summary>Method to raise event ScrollEvt.</summary>
315 public void OnScrollEvt(EventArgs e)
317 var key = "_EFL_UI_EVENT_SCROLL";
318 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
319 if (desc == IntPtr.Zero)
321 Eina.Log.Error($"Failed to get native event {key}");
325 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
327 /// <summary>Called when scroll operation stops</summary>
328 public event EventHandler ScrollStopEvt
332 lock (eflBindingEventLock)
334 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
336 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
339 EventArgs args = EventArgs.Empty;
342 value?.Invoke(obj, args);
346 Eina.Log.Error(e.ToString());
347 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
352 string key = "_EFL_UI_EVENT_SCROLL_STOP";
353 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
359 lock (eflBindingEventLock)
361 string key = "_EFL_UI_EVENT_SCROLL_STOP";
362 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
366 /// <summary>Method to raise event ScrollStopEvt.</summary>
367 public void OnScrollStopEvt(EventArgs e)
369 var key = "_EFL_UI_EVENT_SCROLL_STOP";
370 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
371 if (desc == IntPtr.Zero)
373 Eina.Log.Error($"Failed to get native event {key}");
377 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
379 /// <summary>Called when scrolling upwards</summary>
380 public event EventHandler ScrollUpEvt
384 lock (eflBindingEventLock)
386 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
388 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
391 EventArgs args = EventArgs.Empty;
394 value?.Invoke(obj, args);
398 Eina.Log.Error(e.ToString());
399 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
404 string key = "_EFL_UI_EVENT_SCROLL_UP";
405 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
411 lock (eflBindingEventLock)
413 string key = "_EFL_UI_EVENT_SCROLL_UP";
414 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
418 /// <summary>Method to raise event ScrollUpEvt.</summary>
419 public void OnScrollUpEvt(EventArgs e)
421 var key = "_EFL_UI_EVENT_SCROLL_UP";
422 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
423 if (desc == IntPtr.Zero)
425 Eina.Log.Error($"Failed to get native event {key}");
429 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
431 /// <summary>Called when scrolling downwards</summary>
432 public event EventHandler ScrollDownEvt
436 lock (eflBindingEventLock)
438 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
440 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
443 EventArgs args = EventArgs.Empty;
446 value?.Invoke(obj, args);
450 Eina.Log.Error(e.ToString());
451 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
456 string key = "_EFL_UI_EVENT_SCROLL_DOWN";
457 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
463 lock (eflBindingEventLock)
465 string key = "_EFL_UI_EVENT_SCROLL_DOWN";
466 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
470 /// <summary>Method to raise event ScrollDownEvt.</summary>
471 public void OnScrollDownEvt(EventArgs e)
473 var key = "_EFL_UI_EVENT_SCROLL_DOWN";
474 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
475 if (desc == IntPtr.Zero)
477 Eina.Log.Error($"Failed to get native event {key}");
481 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
483 /// <summary>Called when scrolling left</summary>
484 public event EventHandler ScrollLeftEvt
488 lock (eflBindingEventLock)
490 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
492 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
495 EventArgs args = EventArgs.Empty;
498 value?.Invoke(obj, args);
502 Eina.Log.Error(e.ToString());
503 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
508 string key = "_EFL_UI_EVENT_SCROLL_LEFT";
509 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
515 lock (eflBindingEventLock)
517 string key = "_EFL_UI_EVENT_SCROLL_LEFT";
518 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
522 /// <summary>Method to raise event ScrollLeftEvt.</summary>
523 public void OnScrollLeftEvt(EventArgs e)
525 var key = "_EFL_UI_EVENT_SCROLL_LEFT";
526 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
527 if (desc == IntPtr.Zero)
529 Eina.Log.Error($"Failed to get native event {key}");
533 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
535 /// <summary>Called when scrolling right</summary>
536 public event EventHandler ScrollRightEvt
540 lock (eflBindingEventLock)
542 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
544 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
547 EventArgs args = EventArgs.Empty;
550 value?.Invoke(obj, args);
554 Eina.Log.Error(e.ToString());
555 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
560 string key = "_EFL_UI_EVENT_SCROLL_RIGHT";
561 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
567 lock (eflBindingEventLock)
569 string key = "_EFL_UI_EVENT_SCROLL_RIGHT";
570 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
574 /// <summary>Method to raise event ScrollRightEvt.</summary>
575 public void OnScrollRightEvt(EventArgs e)
577 var key = "_EFL_UI_EVENT_SCROLL_RIGHT";
578 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
579 if (desc == IntPtr.Zero)
581 Eina.Log.Error($"Failed to get native event {key}");
585 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
587 /// <summary>Called when hitting the top edge</summary>
588 public event EventHandler EdgeUpEvt
592 lock (eflBindingEventLock)
594 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
596 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
599 EventArgs args = EventArgs.Empty;
602 value?.Invoke(obj, args);
606 Eina.Log.Error(e.ToString());
607 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
612 string key = "_EFL_UI_EVENT_EDGE_UP";
613 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
619 lock (eflBindingEventLock)
621 string key = "_EFL_UI_EVENT_EDGE_UP";
622 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
626 /// <summary>Method to raise event EdgeUpEvt.</summary>
627 public void OnEdgeUpEvt(EventArgs e)
629 var key = "_EFL_UI_EVENT_EDGE_UP";
630 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
631 if (desc == IntPtr.Zero)
633 Eina.Log.Error($"Failed to get native event {key}");
637 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
639 /// <summary>Called when hitting the bottom edge</summary>
640 public event EventHandler EdgeDownEvt
644 lock (eflBindingEventLock)
646 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
648 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
651 EventArgs args = EventArgs.Empty;
654 value?.Invoke(obj, args);
658 Eina.Log.Error(e.ToString());
659 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
664 string key = "_EFL_UI_EVENT_EDGE_DOWN";
665 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
671 lock (eflBindingEventLock)
673 string key = "_EFL_UI_EVENT_EDGE_DOWN";
674 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
678 /// <summary>Method to raise event EdgeDownEvt.</summary>
679 public void OnEdgeDownEvt(EventArgs e)
681 var key = "_EFL_UI_EVENT_EDGE_DOWN";
682 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
683 if (desc == IntPtr.Zero)
685 Eina.Log.Error($"Failed to get native event {key}");
689 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
691 /// <summary>Called when hitting the left edge</summary>
692 public event EventHandler EdgeLeftEvt
696 lock (eflBindingEventLock)
698 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
700 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
703 EventArgs args = EventArgs.Empty;
706 value?.Invoke(obj, args);
710 Eina.Log.Error(e.ToString());
711 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
716 string key = "_EFL_UI_EVENT_EDGE_LEFT";
717 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
723 lock (eflBindingEventLock)
725 string key = "_EFL_UI_EVENT_EDGE_LEFT";
726 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
730 /// <summary>Method to raise event EdgeLeftEvt.</summary>
731 public void OnEdgeLeftEvt(EventArgs e)
733 var key = "_EFL_UI_EVENT_EDGE_LEFT";
734 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
735 if (desc == IntPtr.Zero)
737 Eina.Log.Error($"Failed to get native event {key}");
741 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
743 /// <summary>Called when hitting the right edge</summary>
744 public event EventHandler EdgeRightEvt
748 lock (eflBindingEventLock)
750 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
752 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
755 EventArgs args = EventArgs.Empty;
758 value?.Invoke(obj, args);
762 Eina.Log.Error(e.ToString());
763 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
768 string key = "_EFL_UI_EVENT_EDGE_RIGHT";
769 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
775 lock (eflBindingEventLock)
777 string key = "_EFL_UI_EVENT_EDGE_RIGHT";
778 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
782 /// <summary>Method to raise event EdgeRightEvt.</summary>
783 public void OnEdgeRightEvt(EventArgs e)
785 var key = "_EFL_UI_EVENT_EDGE_RIGHT";
786 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
787 if (desc == IntPtr.Zero)
789 Eina.Log.Error($"Failed to get native event {key}");
793 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
795 /// <summary>Called when scroll animation starts</summary>
796 public event EventHandler ScrollAnimStartEvt
800 lock (eflBindingEventLock)
802 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
804 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
807 EventArgs args = EventArgs.Empty;
810 value?.Invoke(obj, args);
814 Eina.Log.Error(e.ToString());
815 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
820 string key = "_EFL_UI_EVENT_SCROLL_ANIM_START";
821 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
827 lock (eflBindingEventLock)
829 string key = "_EFL_UI_EVENT_SCROLL_ANIM_START";
830 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
834 /// <summary>Method to raise event ScrollAnimStartEvt.</summary>
835 public void OnScrollAnimStartEvt(EventArgs e)
837 var key = "_EFL_UI_EVENT_SCROLL_ANIM_START";
838 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
839 if (desc == IntPtr.Zero)
841 Eina.Log.Error($"Failed to get native event {key}");
845 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
847 /// <summary>Called when scroll animation stopps</summary>
848 public event EventHandler ScrollAnimStopEvt
852 lock (eflBindingEventLock)
854 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
856 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
859 EventArgs args = EventArgs.Empty;
862 value?.Invoke(obj, args);
866 Eina.Log.Error(e.ToString());
867 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
872 string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP";
873 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
879 lock (eflBindingEventLock)
881 string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP";
882 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
886 /// <summary>Method to raise event ScrollAnimStopEvt.</summary>
887 public void OnScrollAnimStopEvt(EventArgs e)
889 var key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP";
890 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
891 if (desc == IntPtr.Zero)
893 Eina.Log.Error($"Failed to get native event {key}");
897 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
899 /// <summary>Called when scroll drag starts</summary>
900 public event EventHandler ScrollDragStartEvt
904 lock (eflBindingEventLock)
906 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
908 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
911 EventArgs args = EventArgs.Empty;
914 value?.Invoke(obj, args);
918 Eina.Log.Error(e.ToString());
919 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
924 string key = "_EFL_UI_EVENT_SCROLL_DRAG_START";
925 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
931 lock (eflBindingEventLock)
933 string key = "_EFL_UI_EVENT_SCROLL_DRAG_START";
934 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
938 /// <summary>Method to raise event ScrollDragStartEvt.</summary>
939 public void OnScrollDragStartEvt(EventArgs e)
941 var key = "_EFL_UI_EVENT_SCROLL_DRAG_START";
942 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
943 if (desc == IntPtr.Zero)
945 Eina.Log.Error($"Failed to get native event {key}");
949 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
951 /// <summary>Called when scroll drag stops</summary>
952 public event EventHandler ScrollDragStopEvt
956 lock (eflBindingEventLock)
958 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
960 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
963 EventArgs args = EventArgs.Empty;
966 value?.Invoke(obj, args);
970 Eina.Log.Error(e.ToString());
971 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
976 string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP";
977 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
983 lock (eflBindingEventLock)
985 string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP";
986 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
990 /// <summary>Method to raise event ScrollDragStopEvt.</summary>
991 public void OnScrollDragStopEvt(EventArgs e)
993 var key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP";
994 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
995 if (desc == IntPtr.Zero)
997 Eina.Log.Error($"Failed to get native event {key}");
1001 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
1003 /// <summary>The content position</summary>
1004 /// <returns>The position is virtual value, (0, 0) starting at the top-left.</returns>
1005 public Eina.Position2D GetContentPos() {
1006 var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_pos_get_ptr.Value.Delegate(this.NativeHandle);
1007 Eina.Error.RaiseIfUnhandledException();
1010 /// <summary>The content position</summary>
1011 /// <param name="pos">The position is virtual value, (0, 0) starting at the top-left.</param>
1012 public void SetContentPos(Eina.Position2D pos) {
1013 Eina.Position2D.NativeStruct _in_pos = pos;
1014 Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_pos_set_ptr.Value.Delegate(this.NativeHandle,_in_pos);
1015 Eina.Error.RaiseIfUnhandledException();
1017 /// <summary>The content size</summary>
1018 /// <returns>The content size in pixels.</returns>
1019 public Eina.Size2D GetContentSize() {
1020 var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_size_get_ptr.Value.Delegate(this.NativeHandle);
1021 Eina.Error.RaiseIfUnhandledException();
1024 /// <summary>The viewport geometry</summary>
1025 /// <returns>It is absolute geometry.</returns>
1026 public Eina.Rect GetViewportGeometry() {
1027 var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate(this.NativeHandle);
1028 Eina.Error.RaiseIfUnhandledException();
1031 /// <summary>Bouncing behavior
1032 /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one.</summary>
1033 /// <param name="horiz">Horizontal bounce policy.</param>
1034 /// <param name="vert">Vertical bounce policy.</param>
1035 public void GetBounceEnabled(out bool horiz, out bool vert) {
1036 Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate(this.NativeHandle,out horiz, out vert);
1037 Eina.Error.RaiseIfUnhandledException();
1039 /// <summary>Bouncing behavior
1040 /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one.</summary>
1041 /// <param name="horiz">Horizontal bounce policy.</param>
1042 /// <param name="vert">Vertical bounce policy.</param>
1043 public void SetBounceEnabled(bool horiz, bool vert) {
1044 Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate(this.NativeHandle,horiz, vert);
1045 Eina.Error.RaiseIfUnhandledException();
1047 /// <summary>Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See <see cref="Efl.Ui.IScrollableInteractive.SetMovementBlock"/>.</summary>
1048 /// <returns><c>true</c> if freeze, <c>false</c> otherwise</returns>
1049 public bool GetScrollFreeze() {
1050 var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate(this.NativeHandle);
1051 Eina.Error.RaiseIfUnhandledException();
1054 /// <summary>Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See <see cref="Efl.Ui.IScrollableInteractive.SetMovementBlock"/>.</summary>
1055 /// <param name="freeze"><c>true</c> if freeze, <c>false</c> otherwise</param>
1056 public void SetScrollFreeze(bool freeze) {
1057 Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate(this.NativeHandle,freeze);
1058 Eina.Error.RaiseIfUnhandledException();
1060 /// <summary>Hold property When hold turns on, it only scrolls by holding action.</summary>
1061 /// <returns><c>true</c> if hold, <c>false</c> otherwise</returns>
1062 public bool GetScrollHold() {
1063 var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate(this.NativeHandle);
1064 Eina.Error.RaiseIfUnhandledException();
1067 /// <summary>Hold property When hold turns on, it only scrolls by holding action.</summary>
1068 /// <param name="hold"><c>true</c> if hold, <c>false</c> otherwise</param>
1069 public void SetScrollHold(bool hold) {
1070 Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate(this.NativeHandle,hold);
1071 Eina.Error.RaiseIfUnhandledException();
1073 /// <summary>Controls an infinite loop for a scroller.</summary>
1074 /// <param name="loop_h">The scrolling horizontal loop</param>
1075 /// <param name="loop_v">The Scrolling vertical loop</param>
1076 public void GetLooping(out bool loop_h, out bool loop_v) {
1077 Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_looping_get_ptr.Value.Delegate(this.NativeHandle,out loop_h, out loop_v);
1078 Eina.Error.RaiseIfUnhandledException();
1080 /// <summary>Controls an infinite loop for a scroller.</summary>
1081 /// <param name="loop_h">The scrolling horizontal loop</param>
1082 /// <param name="loop_v">The Scrolling vertical loop</param>
1083 public void SetLooping(bool loop_h, bool loop_v) {
1084 Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_looping_set_ptr.Value.Delegate(this.NativeHandle,loop_h, loop_v);
1085 Eina.Error.RaiseIfUnhandledException();
1087 /// <summary>Blocking of scrolling (per axis)
1088 /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is <c>none</c>, where movements are allowed in both directions.</summary>
1089 /// <returns>Which axis (or axes) to block</returns>
1090 public Efl.Ui.ScrollBlock GetMovementBlock() {
1091 var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_movement_block_get_ptr.Value.Delegate(this.NativeHandle);
1092 Eina.Error.RaiseIfUnhandledException();
1095 /// <summary>Blocking of scrolling (per axis)
1096 /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is <c>none</c>, where movements are allowed in both directions.</summary>
1097 /// <param name="block">Which axis (or axes) to block</param>
1098 public void SetMovementBlock(Efl.Ui.ScrollBlock block) {
1099 Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_movement_block_set_ptr.Value.Delegate(this.NativeHandle,block);
1100 Eina.Error.RaiseIfUnhandledException();
1102 /// <summary>Control scrolling gravity on the scrollable
1103 /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases.
1105 /// The scroller will adjust the view to glue itself as follows.
1107 /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content
1109 /// Default values for x and y are 0.0</summary>
1110 /// <param name="x">Horizontal scrolling gravity</param>
1111 /// <param name="y">Vertical scrolling gravity</param>
1112 public void GetGravity(out double x, out double y) {
1113 Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_gravity_get_ptr.Value.Delegate(this.NativeHandle,out x, out y);
1114 Eina.Error.RaiseIfUnhandledException();
1116 /// <summary>Control scrolling gravity on the scrollable
1117 /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases.
1119 /// The scroller will adjust the view to glue itself as follows.
1121 /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content
1123 /// Default values for x and y are 0.0</summary>
1124 /// <param name="x">Horizontal scrolling gravity</param>
1125 /// <param name="y">Vertical scrolling gravity</param>
1126 public void SetGravity(double x, double y) {
1127 Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_gravity_set_ptr.Value.Delegate(this.NativeHandle,x, y);
1128 Eina.Error.RaiseIfUnhandledException();
1130 /// <summary>Prevent the scrollable from being smaller than the minimum size of the content.
1131 /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction.</summary>
1132 /// <param name="w">Whether to limit the minimum horizontal size</param>
1133 /// <param name="h">Whether to limit the minimum vertical size</param>
1134 public void SetMatchContent(bool w, bool h) {
1135 Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_match_content_set_ptr.Value.Delegate(this.NativeHandle,w, h);
1136 Eina.Error.RaiseIfUnhandledException();
1138 /// <summary>Control the step size
1139 /// Use this call to set step size. This value is used when scroller scroll by arrow key event.</summary>
1140 /// <returns>The step size in pixels</returns>
1141 public Eina.Position2D GetStepSize() {
1142 var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_step_size_get_ptr.Value.Delegate(this.NativeHandle);
1143 Eina.Error.RaiseIfUnhandledException();
1146 /// <summary>Control the step size
1147 /// Use this call to set step size. This value is used when scroller scroll by arrow key event.</summary>
1148 /// <param name="step">The step size in pixels</param>
1149 public void SetStepSize(Eina.Position2D step) {
1150 Eina.Position2D.NativeStruct _in_step = step;
1151 Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_step_size_set_ptr.Value.Delegate(this.NativeHandle,_in_step);
1152 Eina.Error.RaiseIfUnhandledException();
1154 /// <summary>Show a specific virtual region within the scroller content object.
1155 /// This will ensure all (or part if it does not fit) of the designated region in the virtual content object (0, 0 starting at the top-left of the virtual content object) is shown within the scroller. This allows the scroller to "smoothly slide" to this location (if configuration in general calls for transitions). It may not jump immediately to the new location and make take a while and show other content along the way.</summary>
1156 /// <param name="rect">The position where to scroll. and The size user want to see</param>
1157 /// <param name="animation">Whether to scroll with animation or not</param>
1158 public void Scroll(Eina.Rect rect, bool animation) {
1159 Eina.Rect.NativeStruct _in_rect = rect;
1160 Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_ptr.Value.Delegate(this.NativeHandle,_in_rect, animation);
1161 Eina.Error.RaiseIfUnhandledException();
1163 /// <summary>The content position</summary>
1164 /// <value>The position is virtual value, (0, 0) starting at the top-left.</value>
1165 public Eina.Position2D ContentPos {
1166 get { return GetContentPos(); }
1167 set { SetContentPos(value); }
1169 /// <summary>The content size</summary>
1170 /// <value>The content size in pixels.</value>
1171 public Eina.Size2D ContentSize {
1172 get { return GetContentSize(); }
1174 /// <summary>The viewport geometry</summary>
1175 /// <value>It is absolute geometry.</value>
1176 public Eina.Rect ViewportGeometry {
1177 get { return GetViewportGeometry(); }
1179 /// <summary>Bouncing behavior
1180 /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one.</summary>
1181 /// <value>Horizontal bounce policy.</value>
1182 public (bool, bool) BounceEnabled {
1184 bool _out_horiz = default(bool);
1185 bool _out_vert = default(bool);
1186 GetBounceEnabled(out _out_horiz,out _out_vert);
1187 return (_out_horiz,_out_vert);
1189 set { SetBounceEnabled( value.Item1, value.Item2); }
1191 /// <summary>Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See <see cref="Efl.Ui.IScrollableInteractive.SetMovementBlock"/>.</summary>
1192 /// <value><c>true</c> if freeze, <c>false</c> otherwise</value>
1193 public bool ScrollFreeze {
1194 get { return GetScrollFreeze(); }
1195 set { SetScrollFreeze(value); }
1197 /// <summary>Hold property When hold turns on, it only scrolls by holding action.</summary>
1198 /// <value><c>true</c> if hold, <c>false</c> otherwise</value>
1199 public bool ScrollHold {
1200 get { return GetScrollHold(); }
1201 set { SetScrollHold(value); }
1203 /// <summary>Controls an infinite loop for a scroller.</summary>
1204 /// <value>The scrolling horizontal loop</value>
1205 public (bool, bool) Looping {
1207 bool _out_loop_h = default(bool);
1208 bool _out_loop_v = default(bool);
1209 GetLooping(out _out_loop_h,out _out_loop_v);
1210 return (_out_loop_h,_out_loop_v);
1212 set { SetLooping( value.Item1, value.Item2); }
1214 /// <summary>Blocking of scrolling (per axis)
1215 /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is <c>none</c>, where movements are allowed in both directions.</summary>
1216 /// <value>Which axis (or axes) to block</value>
1217 public Efl.Ui.ScrollBlock MovementBlock {
1218 get { return GetMovementBlock(); }
1219 set { SetMovementBlock(value); }
1221 /// <summary>Control scrolling gravity on the scrollable
1222 /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases.
1224 /// The scroller will adjust the view to glue itself as follows.
1226 /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content
1228 /// Default values for x and y are 0.0</summary>
1229 /// <value>Horizontal scrolling gravity</value>
1230 public (double, double) Gravity {
1232 double _out_x = default(double);
1233 double _out_y = default(double);
1234 GetGravity(out _out_x,out _out_y);
1235 return (_out_x,_out_y);
1237 set { SetGravity( value.Item1, value.Item2); }
1239 /// <summary>Prevent the scrollable from being smaller than the minimum size of the content.
1240 /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction.</summary>
1241 /// <value>Whether to limit the minimum horizontal size</value>
1242 public (bool, bool) MatchContent {
1243 set { SetMatchContent( value.Item1, value.Item2); }
1245 /// <summary>Control the step size
1246 /// Use this call to set step size. This value is used when scroller scroll by arrow key event.</summary>
1247 /// <value>The step size in pixels</value>
1248 public Eina.Position2D StepSize {
1249 get { return GetStepSize(); }
1250 set { SetStepSize(value); }
1252 private static IntPtr GetEflClassStatic()
1254 return Efl.Ui.IScrollableInteractiveConcrete.efl_ui_scrollable_interactive_interface_get();
1256 /// <summary>Wrapper for native methods and virtual method delegates.
1257 /// For internal use by generated code only.</summary>
1258 public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods
1260 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl);
1261 /// <summary>Gets the list of Eo operations to override.</summary>
1262 /// <returns>The list of Eo operations to be overload.</returns>
1263 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
1265 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
1266 var methods = Efl.Eo.Globals.GetUserMethods(type);
1268 if (efl_ui_scrollable_content_pos_get_static_delegate == null)
1270 efl_ui_scrollable_content_pos_get_static_delegate = new efl_ui_scrollable_content_pos_get_delegate(content_pos_get);
1273 if (methods.FirstOrDefault(m => m.Name == "GetContentPos") != null)
1275 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_get_static_delegate) });
1278 if (efl_ui_scrollable_content_pos_set_static_delegate == null)
1280 efl_ui_scrollable_content_pos_set_static_delegate = new efl_ui_scrollable_content_pos_set_delegate(content_pos_set);
1283 if (methods.FirstOrDefault(m => m.Name == "SetContentPos") != null)
1285 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_set_static_delegate) });
1288 if (efl_ui_scrollable_content_size_get_static_delegate == null)
1290 efl_ui_scrollable_content_size_get_static_delegate = new efl_ui_scrollable_content_size_get_delegate(content_size_get);
1293 if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null)
1295 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_size_get_static_delegate) });
1298 if (efl_ui_scrollable_viewport_geometry_get_static_delegate == null)
1300 efl_ui_scrollable_viewport_geometry_get_static_delegate = new efl_ui_scrollable_viewport_geometry_get_delegate(viewport_geometry_get);
1303 if (methods.FirstOrDefault(m => m.Name == "GetViewportGeometry") != null)
1305 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_viewport_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_viewport_geometry_get_static_delegate) });
1308 if (efl_ui_scrollable_bounce_enabled_get_static_delegate == null)
1310 efl_ui_scrollable_bounce_enabled_get_static_delegate = new efl_ui_scrollable_bounce_enabled_get_delegate(bounce_enabled_get);
1313 if (methods.FirstOrDefault(m => m.Name == "GetBounceEnabled") != null)
1315 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_bounce_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_get_static_delegate) });
1318 if (efl_ui_scrollable_bounce_enabled_set_static_delegate == null)
1320 efl_ui_scrollable_bounce_enabled_set_static_delegate = new efl_ui_scrollable_bounce_enabled_set_delegate(bounce_enabled_set);
1323 if (methods.FirstOrDefault(m => m.Name == "SetBounceEnabled") != null)
1325 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_bounce_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_set_static_delegate) });
1328 if (efl_ui_scrollable_scroll_freeze_get_static_delegate == null)
1330 efl_ui_scrollable_scroll_freeze_get_static_delegate = new efl_ui_scrollable_scroll_freeze_get_delegate(scroll_freeze_get);
1333 if (methods.FirstOrDefault(m => m.Name == "GetScrollFreeze") != null)
1335 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_freeze_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_get_static_delegate) });
1338 if (efl_ui_scrollable_scroll_freeze_set_static_delegate == null)
1340 efl_ui_scrollable_scroll_freeze_set_static_delegate = new efl_ui_scrollable_scroll_freeze_set_delegate(scroll_freeze_set);
1343 if (methods.FirstOrDefault(m => m.Name == "SetScrollFreeze") != null)
1345 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_freeze_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_set_static_delegate) });
1348 if (efl_ui_scrollable_scroll_hold_get_static_delegate == null)
1350 efl_ui_scrollable_scroll_hold_get_static_delegate = new efl_ui_scrollable_scroll_hold_get_delegate(scroll_hold_get);
1353 if (methods.FirstOrDefault(m => m.Name == "GetScrollHold") != null)
1355 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_hold_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_get_static_delegate) });
1358 if (efl_ui_scrollable_scroll_hold_set_static_delegate == null)
1360 efl_ui_scrollable_scroll_hold_set_static_delegate = new efl_ui_scrollable_scroll_hold_set_delegate(scroll_hold_set);
1363 if (methods.FirstOrDefault(m => m.Name == "SetScrollHold") != null)
1365 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_hold_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_set_static_delegate) });
1368 if (efl_ui_scrollable_looping_get_static_delegate == null)
1370 efl_ui_scrollable_looping_get_static_delegate = new efl_ui_scrollable_looping_get_delegate(looping_get);
1373 if (methods.FirstOrDefault(m => m.Name == "GetLooping") != null)
1375 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_looping_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_get_static_delegate) });
1378 if (efl_ui_scrollable_looping_set_static_delegate == null)
1380 efl_ui_scrollable_looping_set_static_delegate = new efl_ui_scrollable_looping_set_delegate(looping_set);
1383 if (methods.FirstOrDefault(m => m.Name == "SetLooping") != null)
1385 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_looping_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_set_static_delegate) });
1388 if (efl_ui_scrollable_movement_block_get_static_delegate == null)
1390 efl_ui_scrollable_movement_block_get_static_delegate = new efl_ui_scrollable_movement_block_get_delegate(movement_block_get);
1393 if (methods.FirstOrDefault(m => m.Name == "GetMovementBlock") != null)
1395 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_movement_block_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_get_static_delegate) });
1398 if (efl_ui_scrollable_movement_block_set_static_delegate == null)
1400 efl_ui_scrollable_movement_block_set_static_delegate = new efl_ui_scrollable_movement_block_set_delegate(movement_block_set);
1403 if (methods.FirstOrDefault(m => m.Name == "SetMovementBlock") != null)
1405 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_movement_block_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_set_static_delegate) });
1408 if (efl_ui_scrollable_gravity_get_static_delegate == null)
1410 efl_ui_scrollable_gravity_get_static_delegate = new efl_ui_scrollable_gravity_get_delegate(gravity_get);
1413 if (methods.FirstOrDefault(m => m.Name == "GetGravity") != null)
1415 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_gravity_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_get_static_delegate) });
1418 if (efl_ui_scrollable_gravity_set_static_delegate == null)
1420 efl_ui_scrollable_gravity_set_static_delegate = new efl_ui_scrollable_gravity_set_delegate(gravity_set);
1423 if (methods.FirstOrDefault(m => m.Name == "SetGravity") != null)
1425 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_gravity_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_set_static_delegate) });
1428 if (efl_ui_scrollable_match_content_set_static_delegate == null)
1430 efl_ui_scrollable_match_content_set_static_delegate = new efl_ui_scrollable_match_content_set_delegate(match_content_set);
1433 if (methods.FirstOrDefault(m => m.Name == "SetMatchContent") != null)
1435 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_match_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_match_content_set_static_delegate) });
1438 if (efl_ui_scrollable_step_size_get_static_delegate == null)
1440 efl_ui_scrollable_step_size_get_static_delegate = new efl_ui_scrollable_step_size_get_delegate(step_size_get);
1443 if (methods.FirstOrDefault(m => m.Name == "GetStepSize") != null)
1445 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_step_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_get_static_delegate) });
1448 if (efl_ui_scrollable_step_size_set_static_delegate == null)
1450 efl_ui_scrollable_step_size_set_static_delegate = new efl_ui_scrollable_step_size_set_delegate(step_size_set);
1453 if (methods.FirstOrDefault(m => m.Name == "SetStepSize") != null)
1455 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_step_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_set_static_delegate) });
1458 if (efl_ui_scrollable_scroll_static_delegate == null)
1460 efl_ui_scrollable_scroll_static_delegate = new efl_ui_scrollable_scroll_delegate(scroll);
1463 if (methods.FirstOrDefault(m => m.Name == "Scroll") != null)
1465 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_static_delegate) });
1470 /// <summary>Returns the Eo class for the native methods of this class.</summary>
1471 /// <returns>The native class pointer.</returns>
1472 public override IntPtr GetEflClass()
1474 return Efl.Ui.IScrollableInteractiveConcrete.efl_ui_scrollable_interactive_interface_get();
1477 #pragma warning disable CA1707, CS1591, SA1300, SA1600
1480 private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_delegate(System.IntPtr obj, System.IntPtr pd);
1483 public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_api_delegate(System.IntPtr obj);
1485 public static Efl.Eo.FunctionWrapper<efl_ui_scrollable_content_pos_get_api_delegate> efl_ui_scrollable_content_pos_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_scrollable_content_pos_get_api_delegate>(Module, "efl_ui_scrollable_content_pos_get");
1487 private static Eina.Position2D.NativeStruct content_pos_get(System.IntPtr obj, System.IntPtr pd)
1489 Eina.Log.Debug("function efl_ui_scrollable_content_pos_get was called");
1490 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1493 Eina.Position2D _ret_var = default(Eina.Position2D);
1496 _ret_var = ((IScrollableInteractive)ws.Target).GetContentPos();
1500 Eina.Log.Warning($"Callback error: {e.ToString()}");
1501 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1509 return efl_ui_scrollable_content_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1513 private static efl_ui_scrollable_content_pos_get_delegate efl_ui_scrollable_content_pos_get_static_delegate;
1516 private delegate void efl_ui_scrollable_content_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos);
1519 public delegate void efl_ui_scrollable_content_pos_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos);
1521 public static Efl.Eo.FunctionWrapper<efl_ui_scrollable_content_pos_set_api_delegate> efl_ui_scrollable_content_pos_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_scrollable_content_pos_set_api_delegate>(Module, "efl_ui_scrollable_content_pos_set");
1523 private static void content_pos_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos)
1525 Eina.Log.Debug("function efl_ui_scrollable_content_pos_set was called");
1526 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1529 Eina.Position2D _in_pos = pos;
1533 ((IScrollableInteractive)ws.Target).SetContentPos(_in_pos);
1537 Eina.Log.Warning($"Callback error: {e.ToString()}");
1538 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1545 efl_ui_scrollable_content_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos);
1549 private static efl_ui_scrollable_content_pos_set_delegate efl_ui_scrollable_content_pos_set_static_delegate;
1552 private delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd);
1555 public delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_api_delegate(System.IntPtr obj);
1557 public static Efl.Eo.FunctionWrapper<efl_ui_scrollable_content_size_get_api_delegate> efl_ui_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_scrollable_content_size_get_api_delegate>(Module, "efl_ui_scrollable_content_size_get");
1559 private static Eina.Size2D.NativeStruct content_size_get(System.IntPtr obj, System.IntPtr pd)
1561 Eina.Log.Debug("function efl_ui_scrollable_content_size_get was called");
1562 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1565 Eina.Size2D _ret_var = default(Eina.Size2D);
1568 _ret_var = ((IScrollableInteractive)ws.Target).GetContentSize();
1572 Eina.Log.Warning($"Callback error: {e.ToString()}");
1573 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1581 return efl_ui_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1585 private static efl_ui_scrollable_content_size_get_delegate efl_ui_scrollable_content_size_get_static_delegate;
1588 private delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd);
1591 public delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_api_delegate(System.IntPtr obj);
1593 public static Efl.Eo.FunctionWrapper<efl_ui_scrollable_viewport_geometry_get_api_delegate> efl_ui_scrollable_viewport_geometry_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_scrollable_viewport_geometry_get_api_delegate>(Module, "efl_ui_scrollable_viewport_geometry_get");
1595 private static Eina.Rect.NativeStruct viewport_geometry_get(System.IntPtr obj, System.IntPtr pd)
1597 Eina.Log.Debug("function efl_ui_scrollable_viewport_geometry_get was called");
1598 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1601 Eina.Rect _ret_var = default(Eina.Rect);
1604 _ret_var = ((IScrollableInteractive)ws.Target).GetViewportGeometry();
1608 Eina.Log.Warning($"Callback error: {e.ToString()}");
1609 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1617 return efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1621 private static efl_ui_scrollable_viewport_geometry_get_delegate efl_ui_scrollable_viewport_geometry_get_static_delegate;
1624 private delegate void efl_ui_scrollable_bounce_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert);
1627 public delegate void efl_ui_scrollable_bounce_enabled_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert);
1629 public static Efl.Eo.FunctionWrapper<efl_ui_scrollable_bounce_enabled_get_api_delegate> efl_ui_scrollable_bounce_enabled_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_scrollable_bounce_enabled_get_api_delegate>(Module, "efl_ui_scrollable_bounce_enabled_get");
1631 private static void bounce_enabled_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert)
1633 Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_get was called");
1634 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1637 horiz = default(bool); vert = default(bool);
1640 ((IScrollableInteractive)ws.Target).GetBounceEnabled(out horiz, out vert);
1644 Eina.Log.Warning($"Callback error: {e.ToString()}");
1645 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1652 efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert);
1656 private static efl_ui_scrollable_bounce_enabled_get_delegate efl_ui_scrollable_bounce_enabled_get_static_delegate;
1659 private delegate void efl_ui_scrollable_bounce_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert);
1662 public delegate void efl_ui_scrollable_bounce_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert);
1664 public static Efl.Eo.FunctionWrapper<efl_ui_scrollable_bounce_enabled_set_api_delegate> efl_ui_scrollable_bounce_enabled_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_scrollable_bounce_enabled_set_api_delegate>(Module, "efl_ui_scrollable_bounce_enabled_set");
1666 private static void bounce_enabled_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert)
1668 Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_set was called");
1669 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1675 ((IScrollableInteractive)ws.Target).SetBounceEnabled(horiz, vert);
1679 Eina.Log.Warning($"Callback error: {e.ToString()}");
1680 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1687 efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert);
1691 private static efl_ui_scrollable_bounce_enabled_set_delegate efl_ui_scrollable_bounce_enabled_set_static_delegate;
1693 [return: MarshalAs(UnmanagedType.U1)]
1694 private delegate bool efl_ui_scrollable_scroll_freeze_get_delegate(System.IntPtr obj, System.IntPtr pd);
1696 [return: MarshalAs(UnmanagedType.U1)]
1697 public delegate bool efl_ui_scrollable_scroll_freeze_get_api_delegate(System.IntPtr obj);
1699 public static Efl.Eo.FunctionWrapper<efl_ui_scrollable_scroll_freeze_get_api_delegate> efl_ui_scrollable_scroll_freeze_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_scrollable_scroll_freeze_get_api_delegate>(Module, "efl_ui_scrollable_scroll_freeze_get");
1701 private static bool scroll_freeze_get(System.IntPtr obj, System.IntPtr pd)
1703 Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_get was called");
1704 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1707 bool _ret_var = default(bool);
1710 _ret_var = ((IScrollableInteractive)ws.Target).GetScrollFreeze();
1714 Eina.Log.Warning($"Callback error: {e.ToString()}");
1715 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1723 return efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1727 private static efl_ui_scrollable_scroll_freeze_get_delegate efl_ui_scrollable_scroll_freeze_get_static_delegate;
1730 private delegate void efl_ui_scrollable_scroll_freeze_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool freeze);
1733 public delegate void efl_ui_scrollable_scroll_freeze_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool freeze);
1735 public static Efl.Eo.FunctionWrapper<efl_ui_scrollable_scroll_freeze_set_api_delegate> efl_ui_scrollable_scroll_freeze_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_scrollable_scroll_freeze_set_api_delegate>(Module, "efl_ui_scrollable_scroll_freeze_set");
1737 private static void scroll_freeze_set(System.IntPtr obj, System.IntPtr pd, bool freeze)
1739 Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_set was called");
1740 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1746 ((IScrollableInteractive)ws.Target).SetScrollFreeze(freeze);
1750 Eina.Log.Warning($"Callback error: {e.ToString()}");
1751 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1758 efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), freeze);
1762 private static efl_ui_scrollable_scroll_freeze_set_delegate efl_ui_scrollable_scroll_freeze_set_static_delegate;
1764 [return: MarshalAs(UnmanagedType.U1)]
1765 private delegate bool efl_ui_scrollable_scroll_hold_get_delegate(System.IntPtr obj, System.IntPtr pd);
1767 [return: MarshalAs(UnmanagedType.U1)]
1768 public delegate bool efl_ui_scrollable_scroll_hold_get_api_delegate(System.IntPtr obj);
1770 public static Efl.Eo.FunctionWrapper<efl_ui_scrollable_scroll_hold_get_api_delegate> efl_ui_scrollable_scroll_hold_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_scrollable_scroll_hold_get_api_delegate>(Module, "efl_ui_scrollable_scroll_hold_get");
1772 private static bool scroll_hold_get(System.IntPtr obj, System.IntPtr pd)
1774 Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_get was called");
1775 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1778 bool _ret_var = default(bool);
1781 _ret_var = ((IScrollableInteractive)ws.Target).GetScrollHold();
1785 Eina.Log.Warning($"Callback error: {e.ToString()}");
1786 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1794 return efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1798 private static efl_ui_scrollable_scroll_hold_get_delegate efl_ui_scrollable_scroll_hold_get_static_delegate;
1801 private delegate void efl_ui_scrollable_scroll_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hold);
1804 public delegate void efl_ui_scrollable_scroll_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hold);
1806 public static Efl.Eo.FunctionWrapper<efl_ui_scrollable_scroll_hold_set_api_delegate> efl_ui_scrollable_scroll_hold_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_scrollable_scroll_hold_set_api_delegate>(Module, "efl_ui_scrollable_scroll_hold_set");
1808 private static void scroll_hold_set(System.IntPtr obj, System.IntPtr pd, bool hold)
1810 Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_set was called");
1811 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1817 ((IScrollableInteractive)ws.Target).SetScrollHold(hold);
1821 Eina.Log.Warning($"Callback error: {e.ToString()}");
1822 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1829 efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hold);
1833 private static efl_ui_scrollable_scroll_hold_set_delegate efl_ui_scrollable_scroll_hold_set_static_delegate;
1836 private delegate void efl_ui_scrollable_looping_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v);
1839 public delegate void efl_ui_scrollable_looping_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v);
1841 public static Efl.Eo.FunctionWrapper<efl_ui_scrollable_looping_get_api_delegate> efl_ui_scrollable_looping_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_scrollable_looping_get_api_delegate>(Module, "efl_ui_scrollable_looping_get");
1843 private static void looping_get(System.IntPtr obj, System.IntPtr pd, out bool loop_h, out bool loop_v)
1845 Eina.Log.Debug("function efl_ui_scrollable_looping_get was called");
1846 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1849 loop_h = default(bool); loop_v = default(bool);
1852 ((IScrollableInteractive)ws.Target).GetLooping(out loop_h, out loop_v);
1856 Eina.Log.Warning($"Callback error: {e.ToString()}");
1857 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1864 efl_ui_scrollable_looping_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out loop_h, out loop_v);
1868 private static efl_ui_scrollable_looping_get_delegate efl_ui_scrollable_looping_get_static_delegate;
1871 private delegate void efl_ui_scrollable_looping_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v);
1874 public delegate void efl_ui_scrollable_looping_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v);
1876 public static Efl.Eo.FunctionWrapper<efl_ui_scrollable_looping_set_api_delegate> efl_ui_scrollable_looping_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_scrollable_looping_set_api_delegate>(Module, "efl_ui_scrollable_looping_set");
1878 private static void looping_set(System.IntPtr obj, System.IntPtr pd, bool loop_h, bool loop_v)
1880 Eina.Log.Debug("function efl_ui_scrollable_looping_set was called");
1881 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1887 ((IScrollableInteractive)ws.Target).SetLooping(loop_h, loop_v);
1891 Eina.Log.Warning($"Callback error: {e.ToString()}");
1892 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1899 efl_ui_scrollable_looping_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop_h, loop_v);
1903 private static efl_ui_scrollable_looping_set_delegate efl_ui_scrollable_looping_set_static_delegate;
1906 private delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_delegate(System.IntPtr obj, System.IntPtr pd);
1909 public delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_api_delegate(System.IntPtr obj);
1911 public static Efl.Eo.FunctionWrapper<efl_ui_scrollable_movement_block_get_api_delegate> efl_ui_scrollable_movement_block_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_scrollable_movement_block_get_api_delegate>(Module, "efl_ui_scrollable_movement_block_get");
1913 private static Efl.Ui.ScrollBlock movement_block_get(System.IntPtr obj, System.IntPtr pd)
1915 Eina.Log.Debug("function efl_ui_scrollable_movement_block_get was called");
1916 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1919 Efl.Ui.ScrollBlock _ret_var = default(Efl.Ui.ScrollBlock);
1922 _ret_var = ((IScrollableInteractive)ws.Target).GetMovementBlock();
1926 Eina.Log.Warning($"Callback error: {e.ToString()}");
1927 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1935 return efl_ui_scrollable_movement_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1939 private static efl_ui_scrollable_movement_block_get_delegate efl_ui_scrollable_movement_block_get_static_delegate;
1942 private delegate void efl_ui_scrollable_movement_block_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block);
1945 public delegate void efl_ui_scrollable_movement_block_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollBlock block);
1947 public static Efl.Eo.FunctionWrapper<efl_ui_scrollable_movement_block_set_api_delegate> efl_ui_scrollable_movement_block_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_scrollable_movement_block_set_api_delegate>(Module, "efl_ui_scrollable_movement_block_set");
1949 private static void movement_block_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block)
1951 Eina.Log.Debug("function efl_ui_scrollable_movement_block_set was called");
1952 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1958 ((IScrollableInteractive)ws.Target).SetMovementBlock(block);
1962 Eina.Log.Warning($"Callback error: {e.ToString()}");
1963 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1970 efl_ui_scrollable_movement_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), block);
1974 private static efl_ui_scrollable_movement_block_set_delegate efl_ui_scrollable_movement_block_set_static_delegate;
1977 private delegate void efl_ui_scrollable_gravity_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y);
1980 public delegate void efl_ui_scrollable_gravity_get_api_delegate(System.IntPtr obj, out double x, out double y);
1982 public static Efl.Eo.FunctionWrapper<efl_ui_scrollable_gravity_get_api_delegate> efl_ui_scrollable_gravity_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_scrollable_gravity_get_api_delegate>(Module, "efl_ui_scrollable_gravity_get");
1984 private static void gravity_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y)
1986 Eina.Log.Debug("function efl_ui_scrollable_gravity_get was called");
1987 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1990 x = default(double); y = default(double);
1993 ((IScrollableInteractive)ws.Target).GetGravity(out x, out y);
1997 Eina.Log.Warning($"Callback error: {e.ToString()}");
1998 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
2005 efl_ui_scrollable_gravity_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y);
2009 private static efl_ui_scrollable_gravity_get_delegate efl_ui_scrollable_gravity_get_static_delegate;
2012 private delegate void efl_ui_scrollable_gravity_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y);
2015 public delegate void efl_ui_scrollable_gravity_set_api_delegate(System.IntPtr obj, double x, double y);
2017 public static Efl.Eo.FunctionWrapper<efl_ui_scrollable_gravity_set_api_delegate> efl_ui_scrollable_gravity_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_scrollable_gravity_set_api_delegate>(Module, "efl_ui_scrollable_gravity_set");
2019 private static void gravity_set(System.IntPtr obj, System.IntPtr pd, double x, double y)
2021 Eina.Log.Debug("function efl_ui_scrollable_gravity_set was called");
2022 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
2028 ((IScrollableInteractive)ws.Target).SetGravity(x, y);
2032 Eina.Log.Warning($"Callback error: {e.ToString()}");
2033 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
2040 efl_ui_scrollable_gravity_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y);
2044 private static efl_ui_scrollable_gravity_set_delegate efl_ui_scrollable_gravity_set_static_delegate;
2047 private delegate void efl_ui_scrollable_match_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h);
2050 public delegate void efl_ui_scrollable_match_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h);
2052 public static Efl.Eo.FunctionWrapper<efl_ui_scrollable_match_content_set_api_delegate> efl_ui_scrollable_match_content_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_scrollable_match_content_set_api_delegate>(Module, "efl_ui_scrollable_match_content_set");
2054 private static void match_content_set(System.IntPtr obj, System.IntPtr pd, bool w, bool h)
2056 Eina.Log.Debug("function efl_ui_scrollable_match_content_set was called");
2057 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
2063 ((IScrollableInteractive)ws.Target).SetMatchContent(w, h);
2067 Eina.Log.Warning($"Callback error: {e.ToString()}");
2068 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
2075 efl_ui_scrollable_match_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w, h);
2079 private static efl_ui_scrollable_match_content_set_delegate efl_ui_scrollable_match_content_set_static_delegate;
2082 private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_delegate(System.IntPtr obj, System.IntPtr pd);
2085 public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_api_delegate(System.IntPtr obj);
2087 public static Efl.Eo.FunctionWrapper<efl_ui_scrollable_step_size_get_api_delegate> efl_ui_scrollable_step_size_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_scrollable_step_size_get_api_delegate>(Module, "efl_ui_scrollable_step_size_get");
2089 private static Eina.Position2D.NativeStruct step_size_get(System.IntPtr obj, System.IntPtr pd)
2091 Eina.Log.Debug("function efl_ui_scrollable_step_size_get was called");
2092 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
2095 Eina.Position2D _ret_var = default(Eina.Position2D);
2098 _ret_var = ((IScrollableInteractive)ws.Target).GetStepSize();
2102 Eina.Log.Warning($"Callback error: {e.ToString()}");
2103 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
2111 return efl_ui_scrollable_step_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
2115 private static efl_ui_scrollable_step_size_get_delegate efl_ui_scrollable_step_size_get_static_delegate;
2118 private delegate void efl_ui_scrollable_step_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step);
2121 public delegate void efl_ui_scrollable_step_size_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct step);
2123 public static Efl.Eo.FunctionWrapper<efl_ui_scrollable_step_size_set_api_delegate> efl_ui_scrollable_step_size_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_scrollable_step_size_set_api_delegate>(Module, "efl_ui_scrollable_step_size_set");
2125 private static void step_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step)
2127 Eina.Log.Debug("function efl_ui_scrollable_step_size_set was called");
2128 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
2131 Eina.Position2D _in_step = step;
2135 ((IScrollableInteractive)ws.Target).SetStepSize(_in_step);
2139 Eina.Log.Warning($"Callback error: {e.ToString()}");
2140 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
2147 efl_ui_scrollable_step_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step);
2151 private static efl_ui_scrollable_step_size_set_delegate efl_ui_scrollable_step_size_set_static_delegate;
2154 private delegate void efl_ui_scrollable_scroll_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation);
2157 public delegate void efl_ui_scrollable_scroll_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation);
2159 public static Efl.Eo.FunctionWrapper<efl_ui_scrollable_scroll_api_delegate> efl_ui_scrollable_scroll_ptr = new Efl.Eo.FunctionWrapper<efl_ui_scrollable_scroll_api_delegate>(Module, "efl_ui_scrollable_scroll");
2161 private static void scroll(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool animation)
2163 Eina.Log.Debug("function efl_ui_scrollable_scroll was called");
2164 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
2167 Eina.Rect _in_rect = rect;
2171 ((IScrollableInteractive)ws.Target).Scroll(_in_rect, animation);
2175 Eina.Log.Warning($"Callback error: {e.ToString()}");
2176 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
2183 efl_ui_scrollable_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, animation);
2187 private static efl_ui_scrollable_scroll_delegate efl_ui_scrollable_scroll_static_delegate;
2189 #pragma warning restore CA1707, CS1591, SA1300, SA1600
2198 #pragma warning disable CS1591
2199 public static class Efl_UiIScrollableInteractiveConcrete_ExtensionMethods {
2200 public static Efl.BindableProperty<Eina.Position2D> ContentPos<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Ui.IScrollableInteractive, T>magic = null) where T : Efl.Ui.IScrollableInteractive {
2201 return new Efl.BindableProperty<Eina.Position2D>("content_pos", fac);
2207 public static Efl.BindableProperty<bool> ScrollFreeze<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Ui.IScrollableInteractive, T>magic = null) where T : Efl.Ui.IScrollableInteractive {
2208 return new Efl.BindableProperty<bool>("scroll_freeze", fac);
2211 public static Efl.BindableProperty<bool> ScrollHold<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Ui.IScrollableInteractive, T>magic = null) where T : Efl.Ui.IScrollableInteractive {
2212 return new Efl.BindableProperty<bool>("scroll_hold", fac);
2216 public static Efl.BindableProperty<Efl.Ui.ScrollBlock> MovementBlock<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Ui.IScrollableInteractive, T>magic = null) where T : Efl.Ui.IScrollableInteractive {
2217 return new Efl.BindableProperty<Efl.Ui.ScrollBlock>("movement_block", fac);
2222 public static Efl.BindableProperty<Eina.Position2D> StepSize<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Ui.IScrollableInteractive, T>magic = null) where T : Efl.Ui.IScrollableInteractive {
2223 return new Efl.BindableProperty<Eina.Position2D>("step_size", fac);
2227 #pragma warning restore CS1591