setOffset method

  1. @override
bool setOffset(
  1. double width,
  2. double height
)
override

@brief Method is used to specify an offset for the circle’s position. @param width Horizontal offset in pixels. @param height Vertical offset in pixels. @return true if the operation is successful, false otherwise.

Dart code snippet: @snippet location_window_map_objects_example.dart dart_CircleMapObject_setOffset

Implementation

@override
bool setOffset(double width, double height) {
    final _setOffsetFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
        Uint8 Function(Pointer<Void>, Float, Float),
        int Function(Pointer<Void>, double, double)
      >('navigine_sdk_flutter_CircleMapObject_setOffset__Width_Height'));
    final _widthHandle = navigine_sdk_flutter_double_ToFfi(width);
    final _heightHandle = navigine_sdk_flutter_double_ToFfi(height);
    final _handle = this.handle;
    final __resultHandle = _setOffsetFfi(_handle, _widthHandle, _heightHandle);
    navigine_sdk_flutter_double_ReleaseFfiHandle(_widthHandle);
    navigine_sdk_flutter_double_ReleaseFfiHandle(_heightHandle);
    final _result = navigine_sdk_flutter_bool_FromFfi(__resultHandle);
    navigine_sdk_flutter_bool_ReleaseFfiHandle(__resultHandle);
    return _result;
}