Mercurial > games > semicongine
comparison fuhtark_test/include/winapi/usp10.h @ 1500:91c8c3b7cbf0
add: futhark tests for generating vulkan api
| author | sam <sam@basx.dev> |
|---|---|
| date | Wed, 26 Nov 2025 21:36:48 +0700 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1499:1f58458b7ef7 | 1500:91c8c3b7cbf0 |
|---|---|
| 1 /** | |
| 2 * This file has no copyright assigned and is placed in the Public Domain. | |
| 3 * This file is part of the w64 mingw-runtime package. | |
| 4 * No warranty is given; refer to the file DISCLAIMER within this package. | |
| 5 */ | |
| 6 #ifndef __usp10__ | |
| 7 #define __usp10__ | |
| 8 | |
| 9 #include <windows.h> | |
| 10 #ifdef __cplusplus | |
| 11 extern "C" { | |
| 12 #endif | |
| 13 | |
| 14 #define USPBUILD 0400 | |
| 15 #define SCRIPT_UNDEFINED 0 | |
| 16 | |
| 17 #define USP_E_SCRIPT_NOT_IN_FONT MAKE_HRESULT(SEVERITY_ERROR,FACILITY_ITF,0x200) | |
| 18 | |
| 19 typedef void *SCRIPT_CACHE; | |
| 20 | |
| 21 HRESULT WINAPI ScriptFreeCache(SCRIPT_CACHE *psc); | |
| 22 | |
| 23 typedef struct tag_SCRIPT_CONTROL { | |
| 24 DWORD uDefaultLanguage :16; | |
| 25 DWORD fContextDigits :1; | |
| 26 | |
| 27 DWORD fInvertPreBoundDir :1; | |
| 28 DWORD fInvertPostBoundDir :1; | |
| 29 DWORD fLinkStringBefore :1; | |
| 30 DWORD fLinkStringAfter :1; | |
| 31 DWORD fNeutralOverride :1; | |
| 32 DWORD fNumericOverride :1; | |
| 33 DWORD fLegacyBidiClass :1; | |
| 34 DWORD fReserved :8; | |
| 35 } SCRIPT_CONTROL; | |
| 36 | |
| 37 typedef struct tag_SCRIPT_STATE { | |
| 38 WORD uBidiLevel :5; | |
| 39 WORD fOverrideDirection :1; | |
| 40 WORD fInhibitSymSwap :1; | |
| 41 WORD fCharShape :1; | |
| 42 WORD fDigitSubstitute :1; | |
| 43 WORD fInhibitLigate :1; | |
| 44 WORD fDisplayZWG :1; | |
| 45 WORD fArabicNumContext :1; | |
| 46 WORD fGcpClusters :1; | |
| 47 WORD fReserved :1; | |
| 48 WORD fEngineReserved :2; | |
| 49 } SCRIPT_STATE; | |
| 50 | |
| 51 typedef struct tag_SCRIPT_ANALYSIS { | |
| 52 WORD eScript :10; | |
| 53 WORD fRTL :1; | |
| 54 WORD fLayoutRTL :1; | |
| 55 WORD fLinkBefore :1; | |
| 56 WORD fLinkAfter :1; | |
| 57 WORD fLogicalOrder :1; | |
| 58 WORD fNoGlyphIndex :1; | |
| 59 SCRIPT_STATE s; | |
| 60 } SCRIPT_ANALYSIS; | |
| 61 | |
| 62 typedef struct tag_SCRIPT_ITEM { | |
| 63 int iCharPos; | |
| 64 SCRIPT_ANALYSIS a; | |
| 65 } SCRIPT_ITEM; | |
| 66 | |
| 67 HRESULT WINAPI ScriptItemize(const WCHAR *pwcInChars,int cInChars,int cMaxItems,const SCRIPT_CONTROL *psControl,const SCRIPT_STATE *psState,SCRIPT_ITEM *pItems,int *pcItems); | |
| 68 HRESULT WINAPI ScriptLayout(int cRuns,const BYTE *pbLevel,int *piVisualToLogical,int *piLogicalToVisual); | |
| 69 | |
| 70 typedef enum tag_SCRIPT_JUSTIFY { | |
| 71 SCRIPT_JUSTIFY_NONE = 0,SCRIPT_JUSTIFY_ARABIC_BLANK = 1,SCRIPT_JUSTIFY_CHARACTER = 2,SCRIPT_JUSTIFY_RESERVED1 = 3,SCRIPT_JUSTIFY_BLANK = 4, | |
| 72 SCRIPT_JUSTIFY_RESERVED2 = 5,SCRIPT_JUSTIFY_RESERVED3 = 6,SCRIPT_JUSTIFY_ARABIC_NORMAL = 7,SCRIPT_JUSTIFY_ARABIC_KASHIDA = 8, | |
| 73 SCRIPT_JUSTIFY_ARABIC_ALEF = 9,SCRIPT_JUSTIFY_ARABIC_HA = 10,SCRIPT_JUSTIFY_ARABIC_RA = 11,SCRIPT_JUSTIFY_ARABIC_BA = 12, | |
| 74 SCRIPT_JUSTIFY_ARABIC_BARA = 13,SCRIPT_JUSTIFY_ARABIC_SEEN = 14,SCRIPT_JUSTIFY_RESERVED4 = 15 | |
| 75 } SCRIPT_JUSTIFY; | |
| 76 | |
| 77 typedef struct tag_SCRIPT_VISATTR { | |
| 78 WORD uJustification :4; | |
| 79 WORD fClusterStart :1; | |
| 80 WORD fDiacritic :1; | |
| 81 WORD fZeroWidth :1; | |
| 82 WORD fReserved :1; | |
| 83 WORD fShapeReserved :8; | |
| 84 } SCRIPT_VISATTR; | |
| 85 | |
| 86 HRESULT WINAPI ScriptShape(HDC hdc,SCRIPT_CACHE *psc,const WCHAR *pwcChars,int cChars,int cMaxGlyphs,SCRIPT_ANALYSIS *psa,WORD *pwOutGlyphs,WORD *pwLogClust,SCRIPT_VISATTR *psva,int *pcGlyphs); | |
| 87 | |
| 88 #ifndef LSDEFS_DEFINED | |
| 89 typedef struct tagGOFFSET { | |
| 90 LONG du; | |
| 91 LONG dv; | |
| 92 } GOFFSET; | |
| 93 #endif | |
| 94 | |
| 95 HRESULT WINAPI ScriptPlace(HDC hdc,SCRIPT_CACHE *psc,const WORD *pwGlyphs,int cGlyphs,const SCRIPT_VISATTR *psva,SCRIPT_ANALYSIS *psa,int *piAdvance,GOFFSET *pGoffset,ABC *pABC); | |
| 96 HRESULT WINAPI ScriptTextOut(const HDC hdc,SCRIPT_CACHE *psc,int x,int y,UINT fuOptions,const RECT *lprc,const SCRIPT_ANALYSIS *psa,const WCHAR *pwcReserved,int iReserved,const WORD *pwGlyphs,int cGlyphs,const int *piAdvance,const int *piJustify,const GOFFSET *pGoffset); | |
| 97 HRESULT WINAPI ScriptJustify(const SCRIPT_VISATTR *psva,const int *piAdvance,int cGlyphs,int iDx,int iMinKashida,int *piJustify); | |
| 98 | |
| 99 typedef struct tag_SCRIPT_LOGATTR { | |
| 100 BYTE fSoftBreak :1; | |
| 101 BYTE fWhiteSpace :1; | |
| 102 BYTE fCharStop :1; | |
| 103 BYTE fWordStop :1; | |
| 104 BYTE fInvalid :1; | |
| 105 BYTE fReserved :3; | |
| 106 } SCRIPT_LOGATTR; | |
| 107 | |
| 108 HRESULT WINAPI ScriptBreak(const WCHAR *pwcChars,int cChars,const SCRIPT_ANALYSIS *psa,SCRIPT_LOGATTR *psla); | |
| 109 HRESULT WINAPI ScriptCPtoX(int iCP,WINBOOL fTrailing,int cChars,int cGlyphs,const WORD *pwLogClust,const SCRIPT_VISATTR *psva,const int *piAdvance,const SCRIPT_ANALYSIS *psa,int *piX); | |
| 110 HRESULT WINAPI ScriptXtoCP(int iX,int cChars,int cGlyphs,const WORD *pwLogClust,const SCRIPT_VISATTR *psva,const int *piAdvance,const SCRIPT_ANALYSIS *psa,int *piCP,int *piTrailing); | |
| 111 HRESULT WINAPI ScriptGetLogicalWidths(const SCRIPT_ANALYSIS *psa,int cChars,int cGlyphs,const int *piGlyphWidth,const WORD *pwLogClust,const SCRIPT_VISATTR *psva,int *piDx); | |
| 112 HRESULT WINAPI ScriptApplyLogicalWidth(const int *piDx,int cChars,int cGlyphs,const WORD *pwLogClust,const SCRIPT_VISATTR *psva,const int *piAdvance,const SCRIPT_ANALYSIS *psa,ABC *pABC,int *piJustify); | |
| 113 | |
| 114 #define SGCM_RTL 0x00000001 | |
| 115 | |
| 116 HRESULT WINAPI ScriptGetCMap(HDC hdc,SCRIPT_CACHE *psc,const WCHAR *pwcInChars,int cChars,DWORD dwFlags,WORD *pwOutGlyphs); | |
| 117 HRESULT WINAPI ScriptGetGlyphABCWidth(HDC hdc,SCRIPT_CACHE *psc,WORD wGlyph,ABC *pABC); | |
| 118 | |
| 119 typedef struct { | |
| 120 DWORD langid :16; | |
| 121 DWORD fNumeric :1; | |
| 122 DWORD fComplex :1; | |
| 123 DWORD fNeedsWordBreaking :1; | |
| 124 DWORD fNeedsCaretInfo :1; | |
| 125 DWORD bCharSet :8; | |
| 126 DWORD fControl :1; | |
| 127 DWORD fPrivateUseArea :1; | |
| 128 DWORD fNeedsCharacterJustify :1; | |
| 129 DWORD fInvalidGlyph :1; | |
| 130 DWORD fInvalidLogAttr :1; | |
| 131 DWORD fCDM :1; | |
| 132 DWORD fAmbiguousCharSet :1; | |
| 133 DWORD fClusterSizeVaries :1; | |
| 134 DWORD fRejectInvalid :1; | |
| 135 } SCRIPT_PROPERTIES; | |
| 136 | |
| 137 HRESULT WINAPI ScriptGetProperties(const SCRIPT_PROPERTIES ***ppSp,int *piNumScripts); | |
| 138 | |
| 139 typedef struct { | |
| 140 int cBytes; | |
| 141 WORD wgBlank; | |
| 142 WORD wgDefault; | |
| 143 WORD wgInvalid; | |
| 144 WORD wgKashida; | |
| 145 int iKashidaWidth; | |
| 146 } SCRIPT_FONTPROPERTIES; | |
| 147 | |
| 148 HRESULT WINAPI ScriptGetFontProperties(HDC hdc,SCRIPT_CACHE *psc,SCRIPT_FONTPROPERTIES *sfp); | |
| 149 HRESULT WINAPI ScriptCacheGetHeight(HDC hdc,SCRIPT_CACHE *psc,long *tmHeight); | |
| 150 | |
| 151 #define SSA_PASSWORD 0x00000001 | |
| 152 #define SSA_TAB 0x00000002 | |
| 153 #define SSA_CLIP 0x00000004 | |
| 154 #define SSA_FIT 0x00000008 | |
| 155 #define SSA_DZWG 0x00000010 | |
| 156 #define SSA_FALLBACK 0x00000020 | |
| 157 #define SSA_BREAK 0x00000040 | |
| 158 #define SSA_GLYPHS 0x00000080 | |
| 159 #define SSA_RTL 0x00000100 | |
| 160 #define SSA_GCP 0x00000200 | |
| 161 #define SSA_HOTKEY 0x00000400 | |
| 162 #define SSA_METAFILE 0x00000800 | |
| 163 #define SSA_LINK 0x00001000 | |
| 164 #define SSA_HIDEHOTKEY 0x00002000 | |
| 165 #define SSA_HOTKEYONLY 0x00002400 | |
| 166 | |
| 167 #define SSA_FULLMEASURE 0x04000000 | |
| 168 #define SSA_LPKANSIFALLBACK 0x08000000 | |
| 169 #define SSA_PIDX 0x10000000 | |
| 170 #define SSA_LAYOUTRTL 0x20000000 | |
| 171 #define SSA_DONTGLYPH 0x40000000 | |
| 172 #define SSA_NOKASHIDA 0x80000000 | |
| 173 | |
| 174 typedef struct tag_SCRIPT_TABDEF { | |
| 175 int cTabStops; | |
| 176 int iScale; | |
| 177 int *pTabStops; | |
| 178 int iTabOrigin; | |
| 179 } SCRIPT_TABDEF; | |
| 180 | |
| 181 typedef void *SCRIPT_STRING_ANALYSIS; | |
| 182 | |
| 183 HRESULT WINAPI ScriptStringAnalyse(HDC hdc,const void *pString,int cString,int cGlyphs,int iCharset,DWORD dwFlags,int iReqWidth,SCRIPT_CONTROL *psControl,SCRIPT_STATE *psState,const int *piDx,SCRIPT_TABDEF *pTabdef,const BYTE *pbInClass,SCRIPT_STRING_ANALYSIS *pssa); | |
| 184 HRESULT WINAPI ScriptStringFree(SCRIPT_STRING_ANALYSIS *pssa); | |
| 185 const SIZE *WINAPI ScriptString_pSize(SCRIPT_STRING_ANALYSIS ssa); | |
| 186 const int *WINAPI ScriptString_pcOutChars(SCRIPT_STRING_ANALYSIS ssa); | |
| 187 const SCRIPT_LOGATTR *WINAPI ScriptString_pLogAttr(SCRIPT_STRING_ANALYSIS ssa); | |
| 188 HRESULT WINAPI ScriptStringGetOrder(SCRIPT_STRING_ANALYSIS ssa,UINT *puOrder); | |
| 189 HRESULT WINAPI ScriptStringCPtoX(SCRIPT_STRING_ANALYSIS ssa,int icp,WINBOOL fTrailing,int *pX); | |
| 190 HRESULT WINAPI ScriptStringXtoCP(SCRIPT_STRING_ANALYSIS ssa,int iX,int *piCh,int *piTrailing); | |
| 191 HRESULT WINAPI ScriptStringGetLogicalWidths(SCRIPT_STRING_ANALYSIS ssa,int *piDx); | |
| 192 HRESULT WINAPI ScriptStringValidate(SCRIPT_STRING_ANALYSIS ssa); | |
| 193 HRESULT WINAPI ScriptStringOut(SCRIPT_STRING_ANALYSIS ssa,int iX,int iY,UINT uOptions,const RECT *prc,int iMinSel,int iMaxSel,WINBOOL fDisabled); | |
| 194 | |
| 195 #define SIC_COMPLEX 1 | |
| 196 #define SIC_ASCIIDIGIT 2 | |
| 197 #define SIC_NEUTRAL 4 | |
| 198 | |
| 199 HRESULT WINAPI ScriptIsComplex(const WCHAR *pwcInChars,int cInChars,DWORD dwFlags); | |
| 200 | |
| 201 typedef struct tag_SCRIPT_DIGITSUBSTITUTE { | |
| 202 DWORD NationalDigitLanguage :16; | |
| 203 DWORD TraditionalDigitLanguage :16; | |
| 204 DWORD DigitSubstitute :8; | |
| 205 DWORD dwReserved; | |
| 206 } SCRIPT_DIGITSUBSTITUTE; | |
| 207 | |
| 208 HRESULT WINAPI ScriptRecordDigitSubstitution(LCID Locale,SCRIPT_DIGITSUBSTITUTE *psds); | |
| 209 | |
| 210 #define SCRIPT_DIGITSUBSTITUTE_CONTEXT 0 | |
| 211 #define SCRIPT_DIGITSUBSTITUTE_NONE 1 | |
| 212 #define SCRIPT_DIGITSUBSTITUTE_NATIONAL 2 | |
| 213 #define SCRIPT_DIGITSUBSTITUTE_TRADITIONAL 3 | |
| 214 | |
| 215 HRESULT WINAPI ScriptApplyDigitSubstitution(const SCRIPT_DIGITSUBSTITUTE *psds,SCRIPT_CONTROL *psc,SCRIPT_STATE *pss); | |
| 216 | |
| 217 #ifdef __cplusplus | |
| 218 } | |
| 219 #endif | |
| 220 #endif |
