DrawRectanglePro method

  1. @override
void DrawRectanglePro(
  1. RectangleD rec,
  2. Vector2D origin,
  3. double rotation,
  4. ColorD color,
)
override

Draw a color-filled rectangle with pro parameters

Implementation

@override
void DrawRectanglePro(
  RectangleD rec,
  Vector2D origin,
  double rotation,
  ColorD color,
) => _ffi.DrawRectanglePro(
  $.Rectangle$.Ref1(rec).asNativePointer<RectangleC>().ref,
  $.Vector2$.Ref1(origin).asNativePointer<Vector2C>().ref,
  rotation,
  $.Color$.Ref1(color).asNativePointer<ColorC>().ref,
);