[]
IDWriteTextLayout::Draw calls this application callback when it needs to draw an inline object.
HResult DrawInlineObject(object clientDrawingContext, float originX, float originY, InlineObject inlineObject, bool isSideways, bool isRightToLeft, IntPtr clientDrawingEffectPtr)
Type | Name | Description |
---|---|---|
object | clientDrawingContext | The application-defined drawing context passed to IDWriteTextLayout::Draw. |
float | originX | X-coordinate at the top-left corner of the inline object. |
float | originY | Y-coordinate at the top-left corner of the inline object. |
InlineObject | inlineObject | The application-defined inline object set using IDWriteTextFormat::SetInlineObject. |
bool | isSideways | A Boolean flag that indicates whether the object's baseline runs alongside the baseline axis of the line. |
bool | isRightToLeft | A Boolean flag that indicates whether the object is in a right-to-left context, hinting that the drawing may want to mirror the normal image. |
IntPtr | clientDrawingEffectPtr | Application-defined drawing effects for the glyphs to render. Usually this argument represents effects such as the foreground brush filling the interior of a line. |
Type | Description |
---|---|
HResult | If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. |