<summary> The application implemented rendering callback (IDWriteTextRenderer::DrawInlineObject) can use this to draw the inline object without needing to cast or query the object type. The text layout does not call this method directly. </summary> <param name="clientDrawingContext">The context passed to IDWriteTextLayout::Draw.</param> <param name="renderer">The renderer passed to IDWriteTextLayout::Draw as the object's containing parent.</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="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>
<summary> Layout uses this to determine the line breaking behavior of the inline object amidst the text. </summary> <param name="breakConditionBefore">Line-breaking condition between the object and the content immediately preceding it.</param> <param name="breakConditionAfter" >Line-breaking condition between the object and the content immediately following it.</param> <returns> Standard HRESULT error code. </returns>
<summary> TextLayout calls this callback function to get the measurement of the inline object. </summary> <param name="metrics">Returned metrics</param> <returns> Standard HRESULT error code. </returns>
<summary> TextLayout calls this callback function to get the visible extents (in DIPs) of the inline object. In the case of a simple bitmap, with no padding and no overhang, all the overhangs will simply be zeroes. </summary> <param name="overhangs">Overshoot of visible extents (in DIPs) outside the object.</param> <returns> Standard HRESULT error code. </returns> <remarks> The overhangs should be returned relative to the reported size of the object (DWRITE_INLINE_OBJECT_METRICS::width/height), and should not be baseline adjusted. If you have an image that is actually 100x100 DIPs, but you want it slightly inset (perhaps it has a glow) by 20 DIPs on each side, you would return a width/height of 60x60 and four overhangs of 20 DIPs. </remarks>
<summary> The IDWriteInlineObject interface wraps an application defined inline graphic, allowing DWrite to query metrics as if it was a glyph inline with the text. </summary>