SetTextColor function Null safety gdi32

int SetTextColor (
  1. int hdc,
  2. int color
)

The SetTextColor function sets the text color for the specified device context to the specified color.

COLORREF SetTextColor(
  HDC      hdc,
  COLORREF color
);

Implementation

int SetTextColor(int hdc, int color) {
  final _SetTextColor = _gdi32.lookupFunction<
      Int32 Function(IntPtr hdc, Int32 color),
      int Function(int hdc, int color)>('SetTextColor');
  return _SetTextColor(hdc, color);
}