<summary>
IDWriteTextLayout::Draw calls this application callback when it needs to
draw an inline object.
</summary>
<param name="clientDrawingContext">The context passed to
IDWriteTextLayout::Draw.</param>
<param name="originX">X-coordinate at the top-left corner of the
inline object.</param>
<param name="originY">Y-coordinate at the top-left corner of the
inline object.</param>
<param name="orientationAngle">Orientation of the inline object.</param>
<param name="inlineObject">The object set using IDWriteTextLayout::SetInlineObject.</param>
<param name="isSideways">The object should be drawn on its side.</param>
<param name="isRightToLeft">The object is in an right-to-left context
and should be drawn flipped.</param>
<param name="clientDrawingEffect">The drawing effect set in
IDWriteTextLayout::SetDrawingEffect.</param>
<returns>
Standard HRESULT error code.
</returns>
<remarks>
The right-to-left flag is a hint to draw the appropriate visual for
that reading direction. For example, it would look strange to draw an
arrow pointing to the right to indicate a submenu. The sideways flag
similarly hints that the object is drawn in a different orientation.
If a non-identity orientation is passed, the top left of the inline
object should be rotated around the given x and y coordinates.
IDWriteAnalyzer2::GetGlyphOrientationTransform returns the necessary
transform for this.
</remarks>
<summary> IDWriteTextLayout::Draw calls this application callback when it needs to draw an inline object. </summary> <param name="clientDrawingContext">The context passed to IDWriteTextLayout::Draw.</param> <param name="originX">X-coordinate at the top-left corner of the inline object.</param> <param name="originY">Y-coordinate at the top-left corner of the inline object.</param> <param name="orientationAngle">Orientation of the inline object.</param> <param name="inlineObject">The object set using IDWriteTextLayout::SetInlineObject.</param> <param name="isSideways">The object should be drawn on its side.</param> <param name="isRightToLeft">The object is in an right-to-left context and should be drawn flipped.</param> <param name="clientDrawingEffect">The drawing effect set in IDWriteTextLayout::SetDrawingEffect.</param> <returns> Standard HRESULT error code. </returns> <remarks> The right-to-left flag is a hint to draw the appropriate visual for that reading direction. For example, it would look strange to draw an arrow pointing to the right to indicate a submenu. The sideways flag similarly hints that the object is drawn in a different orientation. If a non-identity orientation is passed, the top left of the inline object should be rotated around the given x and y coordinates. IDWriteAnalyzer2::GetGlyphOrientationTransform returns the necessary transform for this. </remarks>