1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562
// Copyright © 2015, Peter Atashian // Licensed under the MIT License <LICENSE.md> //! FFI bindings to gdi32. #![cfg(all(windows, any(target_arch = "x86", target_arch = "x86_64")))] extern crate winapi; use winapi::*; extern "system" { // pub fn AbortDoc(); // pub fn AbortPath(); // pub fn AddFontMemResourceEx(); // pub fn AddFontResourceA(); // pub fn AddFontResourceExA(); // pub fn AddFontResourceExW(); // pub fn AddFontResourceW(); pub fn AngleArc( hdc: HDC, X: c_int, Y: c_int, dwRadius: DWORD, eStartAngle: FLOAT, eSweepAngle: FLOAT, ) -> BOOL; // pub fn AnimatePalette(); pub fn Arc( hdc: HDC, nLeftRect: c_int, nTopRect: c_int, nRightRect: c_int, nBottomRect: c_int, nXStartArc: c_int, nYStartArc: c_int, nXEndArc: c_int, nYEndArc: c_int, ) -> BOOL; pub fn ArcTo( hdc: HDC, nLeftRect: c_int, nTopRect: c_int, nRightRect: c_int, nBottomRect: c_int, nXRadial1: c_int, nYRadial1: c_int, nXRadial2: c_int, nYRadial2: c_int, ) -> BOOL; // pub fn BeginPath(); pub fn BitBlt( hdc: HDC, x: c_int, y: c_int, cx: c_int, cy: c_int, hdcSrc: HDC, x1: c_int, y1: c_int, rop: DWORD, ) -> BOOL; // pub fn CancelDC(); // pub fn CheckColorsInGamut(); pub fn ChoosePixelFormat(hdc: HDC, ppfd: *const PIXELFORMATDESCRIPTOR) -> c_int; pub fn Chord( hdc: HDC, nLeftRect: c_int, nTopRect: c_int, nRightRect: c_int, nBottomRect: c_int, nXRadial1: c_int, nYRadial1: c_int, nXRadial2: c_int, nYRadial2: c_int, ) -> BOOL; // pub fn CloseEnhMetaFile(); // pub fn CloseFigure(); // pub fn CloseMetaFile(); // pub fn ColorCorrectPalette(); // pub fn ColorMatchToTarget(); pub fn CombineRgn( hrgnDst: HRGN, hrgnSrc1: HRGN, hrgnSrc2: HRGN, fnCombineMode: c_int, ) -> c_int; // pub fn CombineTransform(); // pub fn CopyEnhMetaFileA(); // pub fn CopyEnhMetaFileW(); // pub fn CopyMetaFileA(); // pub fn CopyMetaFileW(); pub fn CreateBitmap( nWidth: c_int, nHeight: c_int, nPlanes: UINT, nBitCount: UINT, lpBits: *const c_void, ) -> HBITMAP; pub fn CreateBitmapIndirect(pbm: *const BITMAP) -> HBITMAP; // pub fn CreateBrushIndirect(); // pub fn CreateColorSpaceA(); // pub fn CreateColorSpaceW(); pub fn CreateCompatibleBitmap(hdc: HDC, cx: c_int, cy: c_int) -> HBITMAP; pub fn CreateCompatibleDC(hdc: HDC) -> HDC; pub fn CreateDCA( lpszDriver: LPCSTR, lpszDevice: LPCSTR, lpszOutput: LPCSTR, lpInitData: *const DEVMODEA, ) -> HDC; pub fn CreateDCW( lpszDriver: LPCWSTR, lpszDevice: LPCWSTR, lpszOutput: LPCWSTR, lpInitData: *const DEVMODEW, ) -> HDC; // pub fn CreateDIBPatternBrush(); // pub fn CreateDIBPatternBrushPt(); pub fn CreateDIBSection( hdc: HDC, lpbmi: *const BITMAPINFO, usage: UINT, ppvBits: *mut *mut c_void, hSection: HANDLE, offset: DWORD, ) -> HBITMAP; pub fn CreateDIBitmap( hdc: HDC, pbmih: *const BITMAPINFOHEADER, flInit: DWORD, pjBits: *const c_void, pbmi: *const BITMAPINFO, iUsage: UINT, ) -> HBITMAP; // pub fn CreateDiscardableBitmap(); // pub fn CreateEllipticRgn(); // pub fn CreateEllipticRgnIndirect(); // pub fn CreateEnhMetaFileA(); // pub fn CreateEnhMetaFileW(); pub fn CreateFontA( cHeight: c_int, cWidth: c_int, cEscapement: c_int, cOrientation: c_int, cWeight: c_int, bItalic: DWORD, bUnderline: DWORD, bStrikeOut: DWORD, iCharSet: DWORD, iOutPrecision: DWORD, iClipPrecision: DWORD, iQuality: DWORD, iPitchAndFamily: DWORD, pszFaceName: LPCSTR, ) -> HFONT; pub fn CreateFontIndirectA(lplf: *const LOGFONTA) -> HFONT; // pub fn CreateFontIndirectExA(); // pub fn CreateFontIndirectExW(); pub fn CreateFontIndirectW(lplf: *const LOGFONTW) -> HFONT; pub fn CreateFontW( cHeight: c_int, cWidth: c_int, cEscapement: c_int, cOrientation: c_int, cWeight: c_int, bItalic: DWORD, bUnderline: DWORD, bStrikeOut: DWORD, iCharSet: DWORD, iOutPrecision: DWORD, iClipPrecision: DWORD, iQuality: DWORD, iPitchAndFamily: DWORD, pszFaceName: LPCWSTR, ) -> HFONT; // pub fn CreateHalftonePalette(); // pub fn CreateHatchBrush(); // pub fn CreateICA(); // pub fn CreateICW(); // pub fn CreateMetaFileA(); // pub fn CreateMetaFileW(); // pub fn CreatePalette(); // pub fn CreatePatternBrush(); // pub fn CreatePen(); // pub fn CreatePenIndirect(); // pub fn CreatePolyPolygonRgn(); // pub fn CreatePolygonRgn(); pub fn CreateRectRgn( nLeftRect: c_int, nTopRect: c_int, nRightRect: c_int, nBottomRect: c_int, ) -> HRGN; // pub fn CreateRectRgnIndirect(); // pub fn CreateRoundRectRgn(); // pub fn CreateScalableFontResourceA(); // pub fn CreateScalableFontResourceW(); pub fn CreateSolidBrush(color: COLORREF) -> HBRUSH; // pub fn D3DKMTAcquireKeyedMutex(); // pub fn D3DKMTAcquireKeyedMutex2(); // pub fn D3DKMTCacheHybridQueryValue(); // pub fn D3DKMTCheckExclusiveOwnership(); // pub fn D3DKMTCheckMonitorPowerState(); // pub fn D3DKMTCheckMultiPlaneOverlaySupport(); // pub fn D3DKMTCheckOcclusion(); // pub fn D3DKMTCheckSharedResourceAccess(); // pub fn D3DKMTCheckVidPnExclusiveOwnership(); // pub fn D3DKMTCloseAdapter(); // pub fn D3DKMTConfigureSharedResource(); // pub fn D3DKMTCreateAllocation(); // pub fn D3DKMTCreateAllocation2(); // pub fn D3DKMTCreateContext(); // pub fn D3DKMTCreateDCFromMemory(); // pub fn D3DKMTCreateDevice(); // pub fn D3DKMTCreateKeyedMutex(); // pub fn D3DKMTCreateKeyedMutex2(); // pub fn D3DKMTCreateOutputDupl(); // pub fn D3DKMTCreateOverlay(); // pub fn D3DKMTCreateSynchronizationObject(); // pub fn D3DKMTCreateSynchronizationObject2(); // pub fn D3DKMTDestroyAllocation(); // pub fn D3DKMTDestroyContext(); // pub fn D3DKMTDestroyDCFromMemory(); // pub fn D3DKMTDestroyDevice(); // pub fn D3DKMTDestroyKeyedMutex(); // pub fn D3DKMTDestroyOutputDupl(); // pub fn D3DKMTDestroyOverlay(); // pub fn D3DKMTDestroySynchronizationObject(); // pub fn D3DKMTEnumAdapters(); // pub fn D3DKMTEscape(); // pub fn D3DKMTFlipOverlay(); // pub fn D3DKMTGetCachedHybridQueryValue(); // pub fn D3DKMTGetContextInProcessSchedulingPriority(); // pub fn D3DKMTGetContextSchedulingPriority(); // pub fn D3DKMTGetDeviceState(); // pub fn D3DKMTGetDisplayModeList(); // pub fn D3DKMTGetMultisampleMethodList(); // pub fn D3DKMTGetOverlayState(); // pub fn D3DKMTGetPresentHistory(); // pub fn D3DKMTGetPresentQueueEvent(); // pub fn D3DKMTGetProcessSchedulingPriorityClass(); // pub fn D3DKMTGetRuntimeData(); // pub fn D3DKMTGetScanLine(); // pub fn D3DKMTGetSharedPrimaryHandle(); // pub fn D3DKMTGetSharedResourceAdapterLuid(); // pub fn D3DKMTInvalidateActiveVidPn(); // pub fn D3DKMTLock(); // pub fn D3DKMTNetDispGetNextChunkInfo(); // pub fn D3DKMTNetDispQueryMiracastDisplayDeviceStatus(); // pub fn D3DKMTNetDispQueryMiracastDisplayDeviceSupport(); // pub fn D3DKMTNetDispStartMiracastDisplayDevice2(); // pub fn D3DKMTNetDispStopMiracastDisplayDevice(); // pub fn D3DKMTOfferAllocations(); // pub fn D3DKMTOpenAdapterFromDeviceName(); // pub fn D3DKMTOpenAdapterFromGdiDisplayName(); // pub fn D3DKMTOpenAdapterFromHdc(); // pub fn D3DKMTOpenAdapterFromLuid(); // pub fn D3DKMTOpenKeyedMutex(); // pub fn D3DKMTOpenKeyedMutex2(); // pub fn D3DKMTOpenNtHandleFromName(); // pub fn D3DKMTOpenResource(); // pub fn D3DKMTOpenResource2(); // pub fn D3DKMTOpenResourceFromNtHandle(); // pub fn D3DKMTOpenSyncObjectFromNtHandle(); // pub fn D3DKMTOpenSynchronizationObject(); // pub fn D3DKMTOutputDuplGetFrameInfo(); // pub fn D3DKMTOutputDuplGetMetaData(); // pub fn D3DKMTOutputDuplGetPointerShapeData(); // pub fn D3DKMTOutputDuplPresent(); // pub fn D3DKMTOutputDuplReleaseFrame(); // pub fn D3DKMTPinDirectFlipResources(); // pub fn D3DKMTPollDisplayChildren(); // pub fn D3DKMTPresent(); // pub fn D3DKMTPresentMultiPlaneOverlay(); // pub fn D3DKMTQueryAdapterInfo(); // pub fn D3DKMTQueryAllocationResidency(); // pub fn D3DKMTQueryRemoteVidPnSourceFromGdiDisplayName(); // pub fn D3DKMTQueryResourceInfo(); // pub fn D3DKMTQueryResourceInfoFromNtHandle(); // pub fn D3DKMTQueryStatistics(); // pub fn D3DKMTReclaimAllocations(); // pub fn D3DKMTReleaseKeyedMutex(); // pub fn D3DKMTReleaseKeyedMutex2(); // pub fn D3DKMTReleaseProcessVidPnSourceOwners(); // pub fn D3DKMTRender(); // pub fn D3DKMTSetAllocationPriority(); // pub fn D3DKMTSetContextInProcessSchedulingPriority(); // pub fn D3DKMTSetContextSchedulingPriority(); // pub fn D3DKMTSetDisplayMode(); // pub fn D3DKMTSetDisplayPrivateDriverFormat(); // pub fn D3DKMTSetGammaRamp(); // pub fn D3DKMTSetProcessSchedulingPriorityClass(); // pub fn D3DKMTSetQueuedLimit(); // pub fn D3DKMTSetStereoEnabled(); // pub fn D3DKMTSetVidPnSourceOwner(); // pub fn D3DKMTSetVidPnSourceOwner1(); // pub fn D3DKMTShareObjects(); // pub fn D3DKMTSharedPrimaryLockNotification(); // pub fn D3DKMTSharedPrimaryUnLockNotification(); // pub fn D3DKMTSignalSynchronizationObject(); // pub fn D3DKMTSignalSynchronizationObject2(); // pub fn D3DKMTUnlock(); // pub fn D3DKMTUnpinDirectFlipResources(); // pub fn D3DKMTUpdateOverlay(); // pub fn D3DKMTWaitForIdle(); // pub fn D3DKMTWaitForSynchronizationObject(); // pub fn D3DKMTWaitForSynchronizationObject2(); // pub fn D3DKMTWaitForVerticalBlankEvent(); // pub fn D3DKMTWaitForVerticalBlankEvent2(); // pub fn DPtoLP(); // pub fn DeleteColorSpace(); pub fn DeleteDC(hdc: HDC) -> BOOL; // pub fn DeleteEnhMetaFile(); // pub fn DeleteMetaFile(); pub fn DeleteObject(ho: HGDIOBJ) -> BOOL; pub fn DescribePixelFormat( hdc: HDC, iPixelFormat: c_int, nBytes: UINT, ppfd: LPPIXELFORMATDESCRIPTOR, ) -> c_int; // pub fn DeviceCapabilitiesExA(); // pub fn DeviceCapabilitiesExW(); // pub fn DrawEscape(); pub fn Ellipse(hdc: HDC, left: c_int, top: c_int, right: c_int, bottom: c_int) -> BOOL; // pub fn EnableEUDC(); // pub fn EndDoc(); // pub fn EndFormPage(); // pub fn EndPage(); // pub fn EndPath(); // pub fn EnumEnhMetaFile(); // pub fn EnumFontFamiliesA(); // pub fn EnumFontFamiliesExA(); // pub fn EnumFontFamiliesExW(); // pub fn EnumFontFamiliesW(); // pub fn EnumFontsA(); // pub fn EnumFontsW(); // pub fn EnumICMProfilesA(); // pub fn EnumICMProfilesW(); // pub fn EnumMetaFile(); // pub fn EnumObjects(); // pub fn EqualRgn(); // pub fn Escape(); // pub fn EudcLoadLinkW(); // pub fn EudcUnloadLinkW(); // pub fn ExcludeClipRect(); // pub fn ExtCreatePen(); // pub fn ExtCreateRegion(); // pub fn ExtEscape(); // pub fn ExtFloodFill(); pub fn ExtSelectClipRgn(hdc: HDC, hrgn: HRGN, mode: c_int) -> c_int; // pub fn ExtTextOutA(); // pub fn ExtTextOutW(); // pub fn FillPath(); // pub fn FillRgn(); // pub fn FixBrushOrgEx(); // pub fn FlattenPath(); // pub fn FloodFill(); // pub fn FrameRgn(); // pub fn GdiAlphaBlend(); // pub fn GdiArtificialDecrementDriver(); // pub fn GdiComment(); // pub fn GdiDeleteSpoolFileHandle(); // pub fn GdiEndDocEMF(); // pub fn GdiEndPageEMF(); // pub fn GdiFlush(); // pub fn GdiGetBatchLimit(); // pub fn GdiGetDC(); // pub fn GdiGetDevmodeForPage(); // pub fn GdiGetPageCount(); // pub fn GdiGetPageHandle(); // pub fn GdiGetSpoolFileHandle(); // pub fn GdiGradientFill(); // pub fn GdiPlayDCScript(); // pub fn GdiPlayEMF(); // pub fn GdiPlayJournal(); // pub fn GdiPlayPageEMF(); // pub fn GdiPlayPrivatePageEMF(); // pub fn GdiPlayScript(); // pub fn GdiResetDCEMF(); // pub fn GdiSetBatchLimit(); // pub fn GdiStartDocEMF(); // pub fn GdiStartPageEMF(); // pub fn GdiTransparentBlt(); pub fn GetArcDirection(hdc: HDC) -> c_int; // pub fn GetAspectRatioFilterEx(); // pub fn GetBitmapBits(); // pub fn GetBitmapDimensionEx(); // pub fn GetBkColor(); // pub fn GetBkMode(); // pub fn GetBoundsRect(); // pub fn GetBrushOrgEx(); // pub fn GetCharABCWidthsA(); // pub fn GetCharABCWidthsFloatA(); // pub fn GetCharABCWidthsFloatW(); // pub fn GetCharABCWidthsI(); // pub fn GetCharABCWidthsW(); // pub fn GetCharWidth32A(); // pub fn GetCharWidth32W(); // pub fn GetCharWidthA(); // pub fn GetCharWidthFloatA(); // pub fn GetCharWidthFloatW(); // pub fn GetCharWidthI(); // pub fn GetCharWidthW(); // pub fn GetCharacterPlacementA(); // pub fn GetCharacterPlacementW(); // pub fn GetClipBox(); // pub fn GetClipRgn(); // pub fn GetColorAdjustment(); // pub fn GetColorSpace(); // pub fn GetCurrentObject(); // pub fn GetCurrentPositionEx(); // pub fn GetDCBrushColor(); // pub fn GetDCOrgEx(); // pub fn GetDCPenColor(); // pub fn GetDIBColorTable(); pub fn GetDIBits( hdc: HDC, hbm: HBITMAP, start: UINT, cLines: UINT, lpvBits: LPVOID, lpbmi: LPBITMAPINFO, usage: UINT ) -> c_int; // pub fn GetDeviceCaps(); // pub fn GetDeviceGammaRamp(); // pub fn GetEnhMetaFileA(); // pub fn GetEnhMetaFileBits(); // pub fn GetEnhMetaFileDescriptionA(); // pub fn GetEnhMetaFileDescriptionW(); // pub fn GetEnhMetaFileHeader(); // pub fn GetEnhMetaFilePaletteEntries(); // pub fn GetEnhMetaFilePixelFormat(); // pub fn GetEnhMetaFileW(); // pub fn GetFontAssocStatus(); // pub fn GetFontData(); // pub fn GetFontLanguageInfo(); // pub fn GetFontResourceInfoW(); // pub fn GetFontUnicodeRanges(); // pub fn GetGlyphIndicesA(); // pub fn GetGlyphIndicesW(); // pub fn GetGlyphOutline(); // pub fn GetGlyphOutlineA(); // pub fn GetGlyphOutlineW(); // pub fn GetGraphicsMode(); // pub fn GetICMProfileA(); // pub fn GetICMProfileW(); // pub fn GetKerningPairs(); // pub fn GetKerningPairsA(); // pub fn GetKerningPairsW(); // pub fn GetLayout(); // pub fn GetLogColorSpaceA(); // pub fn GetLogColorSpaceW(); // pub fn GetMapMode(); // pub fn GetMetaFileA(); // pub fn GetMetaFileBitsEx(); // pub fn GetMetaFileW(); // pub fn GetMetaRgn(); // pub fn GetMiterLimit(); // pub fn GetNearestColor(); // pub fn GetNearestPaletteIndex(); // pub fn GetObjectA(); // pub fn GetObjectType(); // pub fn GetObjectW(); // pub fn GetOutlineTextMetricsA(); // pub fn GetOutlineTextMetricsW(); // pub fn GetPaletteEntries(); // pub fn GetPath(); // pub fn GetPixel(); // pub fn GetPixelFormat(); // pub fn GetPolyFillMode(); // pub fn GetROP2(); // pub fn GetRandomRgn(); // pub fn GetRasterizerCaps(); // pub fn GetRegionData(); // pub fn GetRelAbs(); // pub fn GetRgnBox(); pub fn GetStockObject(i: c_int) -> HGDIOBJ; // pub fn GetStretchBltMode(); // pub fn GetSystemPaletteEntries(); // pub fn GetSystemPaletteUse(); // pub fn GetTextAlign(); // pub fn GetTextCharacterExtra(); // pub fn GetTextCharset(); // pub fn GetTextCharsetInfo(); // pub fn GetTextColor(); // pub fn GetTextExtentExPointA(); // pub fn GetTextExtentExPointI(); // pub fn GetTextExtentExPointW(); // pub fn GetTextExtentPoint32A(); // pub fn GetTextExtentPoint32W(); // pub fn GetTextExtentPointA(); // pub fn GetTextExtentPointI(); // pub fn GetTextExtentPointW(); // pub fn GetTextFaceA(); // pub fn GetTextFaceW(); // pub fn GetTextMetricsA(); // pub fn GetTextMetricsW(); // pub fn GetViewportExtEx(); // pub fn GetViewportOrgEx(); // pub fn GetWinMetaFileBits(); // pub fn GetWindowExtEx(); // pub fn GetWindowOrgEx(); // pub fn GetWorldTransform(); // pub fn IntersectClipRect(); // pub fn InvertRgn(); // pub fn LPtoDP(); pub fn LineDDA( nXStart: c_int, nYStart: c_int, nXEnd: c_int, nYEnd: c_int, lpLineFunc: LINEDDAPROC, lpData: LPARAM, ) -> BOOL; pub fn LineTo(hdc: HDC, nXEnd: c_int, nYEnd: c_int); // pub fn MaskBlt(); // pub fn ModifyWorldTransform(); pub fn MoveToEx(hdc: HDC, X: c_int, Y: c_int, lpPoint:LPPOINT) -> BOOL; // pub fn OffsetClipRgn(); // pub fn OffsetRgn(); // pub fn OffsetViewportOrgEx(); // pub fn OffsetWindowOrgEx(); // pub fn PaintRgn(); pub fn PatBlt( hdc: HDC, nXLeft: c_int, nYLeft: c_int, nWidth: c_int, nHeight: c_int, dwRop: DWORD ) -> BOOL; // pub fn PathToRegion(); pub fn Pie( hdc: HDC, nLeftRect: c_int, nTopRect: c_int, nBottomRect: c_int, nXRadial1: c_int, nYRadial1: c_int, nXRadial2: c_int, nYRadial2: c_int, ) -> BOOL; // pub fn PlayEnhMetaFile(); // pub fn PlayEnhMetaFileRecord(); // pub fn PlayMetaFile(); // pub fn PlayMetaFileRecord(); // pub fn PlgBlt(); pub fn PolyBezier(hdc: HDC, lppt: *const POINT, cPoints: DWORD) -> BOOL; pub fn PolyBezierTo(hdc: HDC, lppt: *const POINT, cPoints: DWORD) -> BOOL; pub fn PolyDraw(hdc: HDC, lppt: *const POINT, lpbTypes: *const BYTE, cCount: c_int) -> BOOL; pub fn PolyPolygon( hdc: HDC, lpPoints: *const POINT, lpPolyCounts: *const INT, cCount: DWORD, ) -> BOOL; pub fn PolyPolyline( hdc: HDC, lppt: *const POINT, lpdwPolyPoints: *const DWORD, cCount: DWORD, ) -> BOOL; // pub fn PolyTextOutA(); // pub fn PolyTextOutW(); pub fn Polygon(hdc: HDC, lpPoints: *const POINT, nCount: c_int) -> BOOL; pub fn Polyline(hdc: HDC, lppt: *const POINT, cCount: c_int) -> BOOL; pub fn PolylineTo(hdc: HDC, lppt: *const POINT, cCount: DWORD) -> BOOL; // pub fn PtInRegion(); // pub fn PtVisible(); // pub fn RealizePalette(); // pub fn RectInRegion(); // pub fn RectVisible(); pub fn Rectangle(hdc: HDC, left: c_int, top: c_int, right: c_int, bottom: c_int) -> BOOL; // pub fn RemoveFontMemResourceEx(); // pub fn RemoveFontResourceA(); // pub fn RemoveFontResourceExA(); // pub fn RemoveFontResourceExW(); // pub fn RemoveFontResourceW(); // pub fn ResetDCA(); // pub fn ResetDCW(); // pub fn ResizePalette(); // pub fn RestoreDC(); pub fn RoundRect( hdc: HDC, nLeftRect: c_int, nTopRect: c_int, nRightRect: c_int, nBottomRect: c_int, nWidth: c_int, nHeight: c_int, ) -> BOOL; // pub fn SaveDC(); // pub fn ScaleViewportExtEx(); // pub fn ScaleWindowExtEx(); // pub fn SelectBrushLocal(); // pub fn SelectClipPath(); pub fn SelectClipRgn(hdc: HDC, hrgn: HRGN) -> c_int; // pub fn SelectFontLocal(); pub fn SelectObject(hdc: HDC, h: HGDIOBJ) -> HGDIOBJ; // pub fn SelectPalette(); // pub fn SetAbortProc(); pub fn SetArcDirection(hdc: HDC, ArcDirection: c_int) -> c_int; // pub fn SetBitmapBits(); // pub fn SetBitmapDimensionEx(); pub fn SetBkColor(hdc: HDC, color: COLORREF) -> COLORREF; // pub fn SetBkMode(); // pub fn SetBoundsRect(); // pub fn SetBrushOrgEx(); // pub fn SetColorAdjustment(); // pub fn SetColorSpace(); pub fn SetDCBrushColor(hdc: HDC, color: COLORREF) -> COLORREF; // pub fn SetDCPenColor(); // pub fn SetDIBColorTable(); // pub fn SetDIBits(); // pub fn SetDIBitsToDevice(); // pub fn SetDeviceGammaRamp(); // pub fn SetEnhMetaFileBits(); // pub fn SetFontEnumeration(); // pub fn SetGraphicsMode(); // pub fn SetICMMode(); // pub fn SetICMProfileA(); // pub fn SetICMProfileW(); // pub fn SetLayout(); // pub fn SetMagicColors(); // pub fn SetMapMode(); // pub fn SetMapperFlags(); // pub fn SetMetaFileBitsEx(); // pub fn SetMetaRgn(); // pub fn SetMiterLimit(); // pub fn SetPaletteEntries(); // pub fn SetPixel(); pub fn SetPixelFormat( hdc: HDC, iPixelFormat: c_int, ppfd: *const PIXELFORMATDESCRIPTOR, ) -> BOOL; // pub fn SetPixelV(); // pub fn SetPolyFillMode(); // pub fn SetROP2(); pub fn SetRectRgn(hrgn: HRGN, left: c_int, top: c_int, right: c_int, bottom: c_int) -> BOOL; // pub fn SetRelAbs(); // pub fn SetStretchBltMode(); // pub fn SetSystemPaletteUse(); // pub fn SetTextAlign(); // pub fn SetTextCharacterExtra(); pub fn SetTextColor(hdc: HDC, color: COLORREF) -> COLORREF; // pub fn SetTextJustification(); // pub fn SetViewportExtEx(); // pub fn SetViewportOrgEx(); // pub fn SetWinMetaFileBits(); // pub fn SetWindowExtEx(); // pub fn SetWindowOrgEx(); // pub fn SetWorldTransform(); // pub fn StartDocA(); // pub fn StartDocW(); // pub fn StartFormPage(); // pub fn StartPage(); // pub fn StretchBlt(); pub fn StretchDIBits( hdc: HDC, XDest: c_int, YDest: c_int, nDestWidth: c_int, nDestHeight: c_int, XSrc: c_int, YSrc: c_int, nSrcWidth: c_int, nSrcHeight: c_int, lpBits: *const VOID, lpBitsInfo: *const BITMAPINFO, iUsage: UINT, dwRop: DWORD ) -> c_int; // pub fn StrokeAndFillPath(); // pub fn StrokePath(); pub fn SwapBuffers(hdc: HDC) -> BOOL; pub fn TextOutA(hdc: HDC, x: c_int, y: c_int, lpString: LPCSTR, c: c_int) -> BOOL; pub fn TextOutW(hdc: HDC, x: c_int, y: c_int, lpString: LPCWSTR, c: c_int) -> BOOL; // pub fn TranslateCharsetInfo(); // pub fn UnrealizeObject(); // pub fn UpdateColors(); // pub fn UpdateICMRegKeyA(); // pub fn UpdateICMRegKeyW(); // pub fn WidenPath(); // pub fn gdiPlaySpoolStream(); }