From 251f26064f0ce721a635dd6e9358fd867181fcd5 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 26 Mar 2015 09:07:44 -0400 Subject: headers for gdi bitmaps, reflecting an idea about one possible principle/system that the winapi could follow: * if a header traditionally provided information about multiple implementation areas (i.e. bitmaps, brushes, clipping, etc.), provide the definitions for each of these areas in a designated header, and have the canonical header include them. * within each header, ideally begin by providing all of the enums, and then similarly all #defines, typedefs, and function signatures and/or forward declarations. --- wingdi_bitmap_fnapi.h | 270 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 270 insertions(+) create mode 100644 wingdi_bitmap_fnapi.h (limited to 'wingdi_bitmap_fnapi.h') diff --git a/wingdi_bitmap_fnapi.h b/wingdi_bitmap_fnapi.h new file mode 100644 index 0000000..4642ca1 --- /dev/null +++ b/wingdi_bitmap_fnapi.h @@ -0,0 +1,270 @@ +#include + +BOOL __stdcall AlphaBlend( + HDC hdcDest, + int xoriginDest, + int yoriginDest, + int wDest, + int hDest, + HDC hdcSrc, + int xoriginSrc, + int yoriginSrc, + int wSrc, + int hSrc, + BLENDFUNCTION ftn); + + +BOOL __stdcall BitBlt( + HDC hdcDest, + int nXDest, + int nYDest, + int nWidth, + int nHeight, + HDC hdcSrc, + int nXSrc, + int nYSrc, + DWORD dwRop); + + +HBITMAP __stdcall CreateBitmap( + int nWidth, + int nHeight, + UINT cPlanes, + UINT cBitsPerPel, + const void * lpvBits); + +HBITMAP __stdcall CreateBitmapIndirect( + const BITMAP * lpbm); + + +HBITMAP __stdcall CreateCompatibleBitmap( + HDC hdc, + int nWidth, + int nHeight); + + +HBITMAP __stdcall CreateDIBitmap( + HDC hdc, + const BITMAPINFOHEADER * lpbmih, + DWORD fdwInit, + const void * lpbInit, + const BITMAPINFO * lpbmi, + UINT fuUsage); + + +HBITMAP __stdcall CreateDIBSection( + HDC hdc, + const BITMAPINFO * pbmi, + UINT iUsage, + VOID ** ppvBits, + HANDLE hSection, + DWORD dwOffset); + + +HBITMAP __stdcall CreateDiscardableBitmap( + HDC hdc, + int nWidth, + int nHeight); + +BOOL __stdcall ExtFloodFill( + HDC hdc, + int nXStart, + int nYStart, + COLORREF crColor, + UINT fuFillType); + + +BOOL __stdcall GradientFill( + HDC hdc, + PTRIVERTEX pVertex, + ULONG nVertex, + PVOID pMesh, + ULONG nMesh, + ULONG ulMode); + + +BOOL __stdcall TransparentBlt( + HDC hdcDest, + int xoriginDest, + int yoriginDest, + int wDest, + int hDest, + HDC hdcSrc, + int xoriginSrc, + int yoriginSrc, + int wSrc, + int hSrc, + UINT crTransparent); + + +LONG __stdcall GetBitmapBits( + HBITMAP hbmp, + LONG cbBuffer, + LPVOID lpvBits); + + +BOOL __stdcall GetBitmapDimensionEx( + HBITMAP hBitmap, + LPSIZE lpDimension); + + +UINT __stdcall GetDIBColorTable( + HDC hdc, + UINT uStartIndex, + UINT cEntries, + RGBQUAD * pColors); + + +int __stdcall GetDIBits( + HDC hdc, + HBITMAP hbmp, + UINT uStartScan, + UINT cScanLines, + LPVOID lpvBits, + LPBITMAPINFO lpbi, + UINT uUsage); + + +COLORREF __stdcall GetPixel( + HDC hdc, + int nXPos, + int nYPos); + + +int __stdcall GetStretchBltMode( + HDC hdc); + + +HBITMAP __stdcall LoadBitmapA( + HINSTANCE hInstance, + char * lpBitmapName); + +HBITMAP __stdcall LoadBitmapM( + HINSTANCE hInstance, + char * lpBitmapName); + +HBITMAP __stdcall LoadBitmapW( + HINSTANCE hInstance, + WCHAR lpBitmapName); + +#define __default_variant (LoadBitmap) + + +BOOL __stdcall MaskBlt( + HDC hdcDest, + int nXDest, + int nYDest, + int nWidth, + int nHeight, + HDC hdcSrc, + int nXSrc, + int nYSrc, + HBITMAP hbmMask, + int xMask, + int yMask, + DWORD dwRop); + + +BOOL __stdcall PlgBlt( + HDC hdcDest, + const POINT * lpPoint, + HDC hdcSrc, + int nXSrc, + int nYSrc, + int nWidth, + int nHeight, + HBITMAP hbmMask, + int xMask, + int yMask); + + +LONG __stdcall SetBitmapBits( + HBITMAP hbmp, + DWORD cBytes, + const void * lpBits); + +BOOL __stdcall SetBitmapDimensionEx( + HBITMAP hBitmap, + int nWidth, + int nHeight, + LPSIZE lpSize); + + +UINT __stdcall SetDIBColorTable( + HDC hdc, + UINT uStartIndex, + UINT cEntries, + const RGBQUAD * pColors); + + +int __stdcall SetDIBits( + HDC hdc, + HBITMAP hbmp, + UINT uStartScan, + UINT cScanLines, + const void * lpvBits, + const BITMAPINFO *l pbmi, + UINT fuColorUse); + +int __stdcall SetDIBitsToDevice( + HDC hdc, + int XDest, + int YDest, + DWORD dwWidth, + DWORD dwHeight, + int XSrc, + int YSrc, + UINT uStartScan, + UINT cScanLines, + const void * lpvBits, + const BITMAPINFO * lpbmi, + UINT fuColorUse); + + +COLORREF __stdcall SetPixel( + HDC hdc, + int X, + int Y, + COLORREF crColor); + + +BOOL __stdcall SetPixelV( + HDC hdc, + int X, + int Y, + COLORREF crColor); + + +int __stdcall SetStretchBltMode( + HDC hdc, + int iStretchMode); + + +BOOL __stdcall StretchBlt( + HDC hdcDest, + int nXOriginDest, + int nYOriginDest, + int nWidthDest, + int nHeightDest, + HDC hdcSrc, + int nXOriginSrc, + int nYOriginSrc, + int nWidthSrc, + int nHeightSrc, + DWORD dwRop); + + +int __stdcall StretchDIBits( + HDC hdc, + int XDest, + int YDest, + int nDestWidth, + int nDestHeight, + int XSrc, + int YSrc, + int nSrcWidth, + int nSrcHeight, + const void * lpBits, + const BITMAPINFO * lpBitsInfo, + UINT iUsage, + DWORD dwRop); -- cgit v1.2.3