Rectangle function Null safety gdi32
The Rectangle function draws a rectangle. The rectangle is outlined by using the current pen and filled by using the current brush.
BOOL Rectangle(
HDC hdc,
int left,
int top,
int right,
int bottom
);
Implementation
int Rectangle(int hdc, int left, int top, int right, int bottom) {
final _Rectangle = _gdi32.lookupFunction<
Int32 Function(
IntPtr hdc, Int32 left, Int32 top, Int32 right, Int32 bottom),
int Function(
int hdc, int left, int top, int right, int bottom)>('Rectangle');
return _Rectangle(hdc, left, top, right, bottom);
}