setScrollPercent method

int setScrollPercent(
  1. double horizontalPercent,
  2. double verticalPercent
)

Implementation

int setScrollPercent(double horizontalPercent, double verticalPercent) =>
    (ptr.ref.vtable + 4)
            .cast<
                Pointer<
                    NativeFunction<
                        Int32 Function(Pointer, Double horizontalPercent,
                            Double verticalPercent)>>>()
            .value
            .asFunction<
                int Function(Pointer, double horizontalPercent,
                    double verticalPercent)>()(
        ptr.ref.lpVtbl, horizontalPercent, verticalPercent);