' PBXA64 V23 declarations for gdi32.pbi
#IF NOT %DEF(PBX_GDI32_PBI)
#DEFINE PBX_GDI32_PBI
#INCLUDE ONCE "Legacy/Platform/win_types.inc"
#INCLUDE ONCE "Legacy/Platform/win_consts.inc"

DECLARE FUNCTION CreateSolidBrush LIB "gdi32.dll" ALIAS "CreateSolidBrush" (BYVAL color AS DWORD) AS QUAD
DECLARE FUNCTION DeleteObject LIB "gdi32.dll" ALIAS "DeleteObject" (BYVAL hObject AS QUAD) AS LONG
DECLARE FUNCTION SelectObject LIB "gdi32.dll" ALIAS "SelectObject" (BYVAL hdc AS QUAD, BYVAL h AS QUAD) AS QUAD
DECLARE FUNCTION GetStockObject LIB "gdi32.dll" ALIAS "GetStockObject" (BYVAL i AS LONG) AS QUAD
DECLARE FUNCTION CreatePen LIB "gdi32.dll" ALIAS "CreatePen" (BYVAL iStyle AS LONG, BYVAL cWidth AS LONG, BYVAL color AS DWORD) AS QUAD
DECLARE FUNCTION CreateCompatibleDC LIB "gdi32.dll" ALIAS "CreateCompatibleDC" (BYVAL hdc AS QUAD) AS QUAD
DECLARE FUNCTION DeleteDC LIB "gdi32.dll" ALIAS "DeleteDC" (BYVAL hdc AS QUAD) AS LONG
DECLARE FUNCTION GetDeviceCaps LIB "gdi32.dll" ALIAS "GetDeviceCaps" (BYVAL hdc AS QUAD, BYVAL index AS LONG) AS LONG
DECLARE FUNCTION Rectangle LIB "gdi32.dll" ALIAS "Rectangle" (BYVAL hdc AS QUAD, BYVAL left AS LONG, BYVAL top AS LONG, BYVAL right AS LONG, BYVAL bottom AS LONG) AS LONG
DECLARE FUNCTION Ellipse LIB "gdi32.dll" ALIAS "Ellipse" (BYVAL hdc AS QUAD, BYVAL left AS LONG, BYVAL top AS LONG, BYVAL right AS LONG, BYVAL bottom AS LONG) AS LONG
DECLARE FUNCTION MoveToEx LIB "gdi32.dll" ALIAS "MoveToEx" (BYVAL hdc AS QUAD, BYVAL x AS LONG, BYVAL y AS LONG, BYVAL lppt AS QUAD) AS LONG
DECLARE FUNCTION LineTo LIB "gdi32.dll" ALIAS "LineTo" (BYVAL hdc AS QUAD, BYVAL x AS LONG, BYVAL y AS LONG) AS LONG
DECLARE FUNCTION TextOutA LIB "gdi32.dll" ALIAS "TextOutA" (BYVAL hdc AS QUAD, BYVAL x AS LONG, BYVAL y AS LONG, BYVAL lpString AS ASCIIZ PTR, BYVAL c AS LONG) AS LONG
DECLARE FUNCTION TextOutW LIB "gdi32.dll" ALIAS "TextOutW" (BYVAL hdc AS QUAD, BYVAL x AS LONG, BYVAL y AS LONG, BYVAL lpString AS WSTRING, BYVAL c AS LONG) AS LONG
DECLARE FUNCTION GetTextExtentPoint32A LIB "gdi32.dll" ALIAS "GetTextExtentPoint32A" (BYVAL hdc AS QUAD, BYVAL lpString AS ASCIIZ PTR, BYVAL c AS LONG, BYVAL psizl AS QUAD) AS LONG
DECLARE FUNCTION GetTextExtentPoint32W LIB "gdi32.dll" ALIAS "GetTextExtentPoint32W" (BYVAL hdc AS QUAD, BYVAL lpString AS WSTRING, BYVAL c AS LONG, BYVAL psizl AS QUAD) AS LONG
DECLARE FUNCTION BitBlt LIB "gdi32.dll" ALIAS "BitBlt" (BYVAL hdc AS QUAD, BYVAL x AS LONG, BYVAL y AS LONG, BYVAL cx AS LONG, BYVAL cy AS LONG, BYVAL hdcSrc AS QUAD, BYVAL x1 AS LONG, BYVAL y1 AS LONG, BYVAL rop AS DWORD) AS LONG
DECLARE FUNCTION StretchBlt LIB "gdi32.dll" ALIAS "StretchBlt" (BYVAL hdc AS QUAD, BYVAL x AS LONG, BYVAL y AS LONG, BYVAL cx AS LONG, BYVAL cy AS LONG, BYVAL hdcSrc AS QUAD, BYVAL xSrc AS LONG, BYVAL ySrc AS LONG, BYVAL cxSrc AS LONG, BYVAL cySrc AS LONG, BYVAL rop AS DWORD) AS LONG
DECLARE FUNCTION CreateCompatibleBitmap LIB "gdi32.dll" ALIAS "CreateCompatibleBitmap" (BYVAL hdc AS QUAD, BYVAL cx AS LONG, BYVAL cy AS LONG) AS QUAD
DECLARE FUNCTION CreateDIBSection LIB "gdi32.dll" ALIAS "CreateDIBSection" (BYVAL hdc AS QUAD, BYVAL pbmi AS QUAD, BYVAL usage AS LONG, BYVAL ppvBits AS QUAD, BYVAL hSection AS QUAD, BYVAL offset AS DWORD) AS QUAD
DECLARE FUNCTION SetBkMode LIB "gdi32.dll" ALIAS "SetBkMode" (BYVAL hdc AS QUAD, BYVAL mode AS LONG) AS LONG
DECLARE FUNCTION SetTextColor LIB "gdi32.dll" ALIAS "SetTextColor" (BYVAL hdc AS QUAD, BYVAL color AS DWORD) AS DWORD
DECLARE FUNCTION SetBkColor LIB "gdi32.dll" ALIAS "SetBkColor" (BYVAL hdc AS QUAD, BYVAL color AS DWORD) AS DWORD
DECLARE FUNCTION GetObjectA LIB "gdi32.dll" ALIAS "GetObjectA" (BYVAL h AS QUAD, BYVAL c AS LONG, BYVAL pv AS QUAD) AS LONG
DECLARE FUNCTION GetObjectW LIB "gdi32.dll" ALIAS "GetObjectW" (BYVAL h AS QUAD, BYVAL c AS LONG, BYVAL pv AS QUAD) AS LONG
DECLARE FUNCTION CreateFontA LIB "gdi32.dll" ALIAS "CreateFontA" (BYVAL cHeight AS LONG, BYVAL cWidth AS LONG, BYVAL cEscapement AS LONG, BYVAL cOrientation AS LONG, BYVAL cWeight AS LONG, BYVAL bItalic AS DWORD, BYVAL bUnderline AS DWORD, BYVAL bStrikeOut AS DWORD, BYVAL iCharSet AS DWORD, BYVAL iOutPrecision AS DWORD, BYVAL iClipPrecision AS DWORD, BYVAL iQuality AS DWORD, BYVAL iPitchAndFamily AS DWORD, BYVAL pszFaceName AS ASCIIZ PTR) AS QUAD
DECLARE FUNCTION CreateFontW LIB "gdi32.dll" ALIAS "CreateFontW" (BYVAL cHeight AS LONG, BYVAL cWidth AS LONG, BYVAL cEscapement AS LONG, BYVAL cOrientation AS LONG, BYVAL cWeight AS LONG, BYVAL bItalic AS DWORD, BYVAL bUnderline AS DWORD, BYVAL bStrikeOut AS DWORD, BYVAL iCharSet AS DWORD, BYVAL iOutPrecision AS DWORD, BYVAL iClipPrecision AS DWORD, BYVAL iQuality AS DWORD, BYVAL iPitchAndFamily AS DWORD, BYVAL pszFaceName AS WSTRING) AS QUAD

#ENDIF
