Win32 API 日本語リファレンス
ホームGraphics.DirectWrite › IDWriteTextLayout

IDWriteTextLayout

COM
IID53737037-6d14-410b-9bfe-0b182bb70961継承元IDWriteTextFormat自前メソッド開始 vtbl28

メソッド 39

vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。

vtblメソッド
28HRESULT SetMaxWidth(FLOAT maxWidth)
29HRESULT SetMaxHeight(FLOAT maxHeight)
30HRESULT SetFontCollection(IDWriteFontCollection* fontCollection, DWRITE_TEXT_RANGE textRange)
31HRESULT SetFontFamilyName(LPWSTR fontFamilyName, DWRITE_TEXT_RANGE textRange)
32HRESULT SetFontWeight(DWRITE_FONT_WEIGHT fontWeight, DWRITE_TEXT_RANGE textRange)
33HRESULT SetFontStyle(DWRITE_FONT_STYLE fontStyle, DWRITE_TEXT_RANGE textRange)
34HRESULT SetFontStretch(DWRITE_FONT_STRETCH fontStretch, DWRITE_TEXT_RANGE textRange)
35HRESULT SetFontSize(FLOAT fontSize, DWRITE_TEXT_RANGE textRange)
36HRESULT SetUnderline(BOOL hasUnderline, DWRITE_TEXT_RANGE textRange)
37HRESULT SetStrikethrough(BOOL hasStrikethrough, DWRITE_TEXT_RANGE textRange)
38HRESULT SetDrawingEffect(IUnknown* drawingEffect, DWRITE_TEXT_RANGE textRange)
39HRESULT SetInlineObject(IDWriteInlineObject* inlineObject, DWRITE_TEXT_RANGE textRange)
40HRESULT SetTypography(IDWriteTypography* typography, DWRITE_TEXT_RANGE textRange)
41HRESULT SetLocaleName(LPWSTR localeName, DWRITE_TEXT_RANGE textRange)
42FLOAT GetMaxWidth()
43FLOAT GetMaxHeight()
44HRESULT GetFontCollection(DWORD currentPosition, IDWriteFontCollection** fontCollection, DWRITE_TEXT_RANGE* textRange)
45HRESULT GetFontFamilyNameLength(DWORD currentPosition, DWORD* nameLength, DWRITE_TEXT_RANGE* textRange)
46HRESULT GetFontFamilyName(DWORD currentPosition, LPWSTR fontFamilyName, DWORD nameSize, DWRITE_TEXT_RANGE* textRange)
47HRESULT GetFontWeight(DWORD currentPosition, DWRITE_FONT_WEIGHT* fontWeight, DWRITE_TEXT_RANGE* textRange)
48HRESULT GetFontStyle(DWORD currentPosition, DWRITE_FONT_STYLE* fontStyle, DWRITE_TEXT_RANGE* textRange)
49HRESULT GetFontStretch(DWORD currentPosition, DWRITE_FONT_STRETCH* fontStretch, DWRITE_TEXT_RANGE* textRange)
50HRESULT GetFontSize(DWORD currentPosition, FLOAT* fontSize, DWRITE_TEXT_RANGE* textRange)
51HRESULT GetUnderline(DWORD currentPosition, BOOL* hasUnderline, DWRITE_TEXT_RANGE* textRange)
52HRESULT GetStrikethrough(DWORD currentPosition, BOOL* hasStrikethrough, DWRITE_TEXT_RANGE* textRange)
53HRESULT GetDrawingEffect(DWORD currentPosition, IUnknown** drawingEffect, DWRITE_TEXT_RANGE* textRange)
54HRESULT GetInlineObject(DWORD currentPosition, IDWriteInlineObject** inlineObject, DWRITE_TEXT_RANGE* textRange)
55HRESULT GetTypography(DWORD currentPosition, IDWriteTypography** typography, DWRITE_TEXT_RANGE* textRange)
56HRESULT GetLocaleNameLength(DWORD currentPosition, DWORD* nameLength, DWRITE_TEXT_RANGE* textRange)
57HRESULT GetLocaleName(DWORD currentPosition, LPWSTR localeName, DWORD nameSize, DWRITE_TEXT_RANGE* textRange)
58HRESULT Draw(void* clientDrawingContext, IDWriteTextRenderer* renderer, FLOAT originX, FLOAT originY)
59HRESULT GetLineMetrics(DWRITE_LINE_METRICS* lineMetrics, DWORD maxLineCount, DWORD* actualLineCount)
60HRESULT GetMetrics(DWRITE_TEXT_METRICS* textMetrics)
61HRESULT GetOverhangMetrics(DWRITE_OVERHANG_METRICS* overhangs)
62HRESULT GetClusterMetrics(DWRITE_CLUSTER_METRICS* clusterMetrics, DWORD maxClusterCount, DWORD* actualClusterCount)
63HRESULT DetermineMinWidth(FLOAT* minWidth)
64HRESULT HitTestPoint(FLOAT pointX, FLOAT pointY, BOOL* isTrailingHit, BOOL* isInside, DWRITE_HIT_TEST_METRICS* hitTestMetrics)
65HRESULT HitTestTextPosition(DWORD textPosition, BOOL isTrailingHit, FLOAT* pointX, FLOAT* pointY, DWRITE_HIT_TEST_METRICS* hitTestMetrics)
66HRESULT HitTestTextRange(DWORD textPosition, DWORD textLength, FLOAT originX, FLOAT originY, DWRITE_HIT_TEST_METRICS* hitTestMetrics, DWORD maxHitTestMetricsCount, DWORD* actualHitTestMetricsCount)