comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/internal/win32/WINAPI.d @ 39:0ecb2b338560

further work on phobosification
author Frank Benoit <benoit@tionex.de>
date Wed, 25 Mar 2009 13:20:43 +0100
parents 2e09b0e6857a
children ed96ea2a2764
comparison
equal deleted inserted replaced
38:2e09b0e6857a 39:0ecb2b338560
1775 alias HANDLE HPAINTBUFFER; 1775 alias HANDLE HPAINTBUFFER;
1776 1776
1777 extern (Windows){ 1777 extern (Windows){
1778 HRESULT AssocQueryStringA(ASSOCF flags, int str, LPCSTR pszAssoc, LPCSTR pszExtra, LPSTR pszOut, DWORD *pcchOut); 1778 HRESULT AssocQueryStringA(ASSOCF flags, int str, LPCSTR pszAssoc, LPCSTR pszExtra, LPSTR pszOut, DWORD *pcchOut);
1779 HRESULT AssocQueryStringW(ASSOCF flags, int str, LPCWSTR pszAssoc, LPCWSTR pszExtra, LPWSTR pszOut, DWORD *pcchOut); 1779 HRESULT AssocQueryStringW(ASSOCF flags, int str, LPCWSTR pszAssoc, LPCWSTR pszExtra, LPWSTR pszOut, DWORD *pcchOut);
1780 int AddFontResourceExA(char* lpszFilename, int fl, void* pdv); 1780 int AddFontResourceExA(LPCSTR lpszFilename, int fl, void* pdv);
1781 int AddFontResourceExW(wchar* lpszFilename, int fl, void* pdv); 1781 int AddFontResourceExW(LPCWSTR lpszFilename, int fl, void* pdv);
1782 1782
1783 BOOL AlphaBlend( 1783 BOOL AlphaBlend(
1784 HDC hdcDest, // handle to destination DC 1784 HDC hdcDest, // handle to destination DC
1785 int nXOriginDest, // x-coord of upper-left corner 1785 int nXOriginDest, // x-coord of upper-left corner
1786 int nYOriginDest, // y-coord of upper-left corner 1786 int nYOriginDest, // y-coord of upper-left corner
3415 int SHSipPreference(HWND hwnd, int st); 3415 int SHSipPreference(HWND hwnd, int st);
3416 } 3416 }
3417 3417
3418 // USP methods (Unicode Complex Script processor) 3418 // USP methods (Unicode Complex Script processor)
3419 HRESULT ScriptBreak( 3419 HRESULT ScriptBreak(
3420 WCHAR *pwcChars, 3420 LPCWSTR pwcChars,
3421 int cChars, 3421 int cChars,
3422 SCRIPT_ANALYSIS *psa, 3422 SCRIPT_ANALYSIS *psa,
3423 SCRIPT_LOGATTR *psla 3423 SCRIPT_LOGATTR *psla
3424 ); 3424 );
3425 HRESULT ScriptCPtoX( 3425 HRESULT ScriptCPtoX(
3460 int *piNumScripts 3460 int *piNumScripts
3461 ); 3461 );
3462 HRESULT ScriptGetCMap( 3462 HRESULT ScriptGetCMap(
3463 HDC hdc, 3463 HDC hdc,
3464 SCRIPT_CACHE* psc, 3464 SCRIPT_CACHE* psc,
3465 WCHAR* pwcInChars, 3465 LPCWSTR pwcInChars,
3466 int cChars, 3466 int cChars,
3467 DWORD dwFlags, 3467 DWORD dwFlags,
3468 WORD* pwOutGlyphs 3468 WORD* pwOutGlyphs
3469 ); 3469 );
3470 HRESULT ScriptStringAnalyse( 3470 HRESULT ScriptStringAnalyse(
3471 HDC hdc, 3471 HDC hdc,
3472 void* pString, 3472 LPCVOID pString,
3473 int cString, 3473 int cString,
3474 int cGlyphs, 3474 int cGlyphs,
3475 int iCharset, 3475 int iCharset,
3476 DWORD dwFlags, 3476 DWORD dwFlags,
3477 int iReqWidth, 3477 int iReqWidth,
3495 HRESULT ScriptStringFree( 3495 HRESULT ScriptStringFree(
3496 SCRIPT_STRING_ANALYSIS* pssa 3496 SCRIPT_STRING_ANALYSIS* pssa
3497 ); 3497 );
3498 3498
3499 HRESULT ScriptItemize( 3499 HRESULT ScriptItemize(
3500 WCHAR *pwcInChars, 3500 LPCWSTR pwcInChars,
3501 int cInChars, 3501 int cInChars,
3502 int cMaxItems, 3502 int cMaxItems,
3503 SCRIPT_CONTROL *psControl, 3503 SCRIPT_CONTROL *psControl,
3504 SCRIPT_STATE *psState, 3504 SCRIPT_STATE *psState,
3505 SCRIPT_ITEM *pItems, 3505 SCRIPT_ITEM *pItems,
3523 ABC *pABC 3523 ABC *pABC
3524 ); 3524 );
3525 HRESULT ScriptShape( 3525 HRESULT ScriptShape(
3526 HDC hdc, // in 3526 HDC hdc, // in
3527 SCRIPT_CACHE *psc, // in/out 3527 SCRIPT_CACHE *psc, // in/out
3528 WCHAR *pwcChars, // 3528 LPCWSTR pwcChars, //
3529 int cChars, 3529 int cChars,
3530 int cMaxGlyphs, 3530 int cMaxGlyphs,
3531 SCRIPT_ANALYSIS *psa, 3531 SCRIPT_ANALYSIS *psa,
3532 WORD *pwOutGlyphs, 3532 WORD *pwOutGlyphs,
3533 WORD *pwLogClust, 3533 WORD *pwLogClust,