Mercurial > projects > dynamin
comparison dynamin/c/windows.d @ 93:8b2d3b3cbca6
Add bindings to 5 more Windows functions.
author | Jordan Miner <jminer7@gmail.com> |
---|---|
date | Tue, 07 Jun 2011 15:33:39 -0500 |
parents | 0d6778fea624 |
children | acdbb30fee7e |
comparison
equal
deleted
inserted
replaced
92:27445f24d5fd | 93:8b2d3b3cbca6 |
---|---|
746 | 746 |
747 HDC CreateCompatibleDC(HDC hdc); | 747 HDC CreateCompatibleDC(HDC hdc); |
748 | 748 |
749 BOOL DeleteDC(HDC hdc); | 749 BOOL DeleteDC(HDC hdc); |
750 | 750 |
751 int SaveDC(HDC hdc); | |
752 | |
753 BOOL RestoreDC(HDC hdc, int nSavedDC); | |
754 | |
751 HGDIOBJ SelectObject(HDC hdc, HGDIOBJ hObject); | 755 HGDIOBJ SelectObject(HDC hdc, HGDIOBJ hObject); |
752 | 756 |
753 BOOL DeleteObject(HGDIOBJ hObject); | 757 BOOL DeleteObject(HGDIOBJ hObject); |
754 | 758 |
755 int GetObjectW(HANDLE h, int c, VOID* pv); | 759 int GetObjectW(HANDLE h, int c, VOID* pv); |
787 int EnumFontFamiliesExW( | 791 int EnumFontFamiliesExW( |
788 HDC hdc, LOGFONT* lpLogfont, | 792 HDC hdc, LOGFONT* lpLogfont, |
789 FONTENUMPROCW lpProc, LPARAM lParam, DWORD dwFlags); | 793 FONTENUMPROCW lpProc, LPARAM lParam, DWORD dwFlags); |
790 | 794 |
791 alias int function(ENUMLOGFONTEX*, TEXTMETRIC*, DWORD, LPARAM) FONTENUMPROCW; | 795 alias int function(ENUMLOGFONTEX*, TEXTMETRIC*, DWORD, LPARAM) FONTENUMPROCW; |
796 | |
797 HFONT CreateFontW( | |
798 int cHeight, int cWidth, int cEscapement, int cOrientation, int cWeight, DWORD bItalic, | |
799 DWORD bUnderline, DWORD bStrikeOut, DWORD iCharSet, DWORD iOutPrecision, DWORD iClipPrecision, | |
800 DWORD iQuality, DWORD iPitchAndFamily, LPCWSTR pszFaceName); | |
801 | |
802 HFONT CreateFontIndirectW(LOGFONTW* lplf); | |
803 | |
804 BOOL TextOutW(HDC hdc, int x, int y, LPCWSTR lpString, int c); | |
792 //}}} | 805 //}}} |
793 | 806 |
794 //{{{ message functions | 807 //{{{ message functions |
795 BOOL GetMessageW(MSG* lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax); | 808 BOOL GetMessageW(MSG* lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax); |
796 | 809 |
1590 alias PostMessageW PostMessage; | 1603 alias PostMessageW PostMessage; |
1591 alias SendMessageW SendMessage; | 1604 alias SendMessageW SendMessage; |
1592 alias LoadImageW LoadImage; | 1605 alias LoadImageW LoadImage; |
1593 alias GetObjectW GetObject; | 1606 alias GetObjectW GetObject; |
1594 alias EnumFontFamiliesExW EnumFontFamiliesEx; | 1607 alias EnumFontFamiliesExW EnumFontFamiliesEx; |
1608 alias CreateFontW CreateFont; | |
1609 alias CreateFontIndirectW CreateFontIndirect; | |
1610 alias TextOutW TextOut; | |
1595 alias SystemParametersInfoW SystemParametersInfo; | 1611 alias SystemParametersInfoW SystemParametersInfo; |
1596 alias GetVersionExW GetVersionEx; | 1612 alias GetVersionExW GetVersionEx; |
1597 alias GetModuleHandleW GetModuleHandle; | 1613 alias GetModuleHandleW GetModuleHandle; |
1598 alias LoadLibraryW LoadLibrary; | 1614 alias LoadLibraryW LoadLibrary; |
1599 alias SHGetSpecialFolderPathW SHGetSpecialFolderPath; | 1615 alias SHGetSpecialFolderPathW SHGetSpecialFolderPath; |