setBackgroundImagePosition method

  1. @override
Future setBackgroundImagePosition(
  1. double x,
  2. double y, {
  3. bool clamp = false,
})
override

Moves the background image to the relative offset from the origin (bottom-left) specified by x and y. If clamp is true, the image cannot be positioned outside the bounds of the viewport.

Implementation

@override
Future setBackgroundImagePosition(double x, double y,
    {bool clamp = false}) async {
  _module.ccall(
      "set_background_image_position",
      "void",
      ["void*".toJS, "float".toJS, "float".toJS, "bool".toJS].toJS,
      [_viewer!, x.toJS, y.toJS, clamp.toJS].toJS,
      null);
}