Freigeben über


IDWriteTextRenderer::DrawInlineObject Method

IDWriteTextLayout::Draw calls this application callback when it needs to draw an inline object.

Syntax

virtual HRESULT DrawInlineObject(
  void * clientDrawingContext,
  FLOAT  originX,
  FLOAT  originY,
  IDWriteInlineObject * inlineObject,
  BOOL  isSideways,
  BOOL  isRightToLeft,
  IUnknown * clientDrawingEffect
) = 0;

Parameter

  • clientDrawingContext
    The application-defined drawing context passed to IDWriteTextLayout::Draw.

  • originX
    X-coordinate at the top-left corner of the inline object.

  • originY
    Y-coordinate at the top-left corner of the inline object.

  • inlineObject
    The application-defined inline object set using IDWriteTextFormat::SetInlineObject.

  • isSideways
    A Boolean flag that indicates whether the object's baseline runs alongside the baseline axis of the line.

  • 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.

  • clientDrawingEffect
    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.

Rückgabewert

Ist Methode erfolgreich, wird "S_OK" zurückgegeben. Andernfalls wird ein HRESULT-Fehlercode zurückgegeben.

Anforderungen

Mindestens unterstützter Client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista

Mindestens unterstützter Server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008

Header

Dwrite.h

Bibliothek

Dwrite.lib

DLL

Dwrite.dll

Siehe auch

IDWriteTextRenderer