Beispiel #1
0
 ///<summary>Scrolls the ScrollBox to the widget during the next layout pass.</summary>
 public void ScrollWidgetIntoView(Widget WidgetToFind, bool AnimateScroll, EDescendantScrollDestination ScrollDestination) =>
 ScrollBox_methods.ScrollWidgetIntoView_method.Invoke(ObjPointer, WidgetToFind, AnimateScroll, ScrollDestination);
Beispiel #2
0
            internal static unsafe void Invoke(IntPtr obj, Widget WidgetToFind, bool AnimateScroll, EDescendantScrollDestination ScrollDestination)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((IntPtr *)(b + 0)) = WidgetToFind;
                *((bool *)(b + 8))   = AnimateScroll;
                *(b + 9)             = (byte)ScrollDestination;
                Main.GetProcessEvent(obj, ScrollWidgetIntoView_ptr, new IntPtr(p));;
            }
        }