LibreOffice Module vcl (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
D2DWriteTextOutRenderer Class Reference

#include <DWriteTextRenderer.hxx>

Inheritance diagram for D2DWriteTextOutRenderer:
[legend]
Collaboration diagram for D2DWriteTextOutRenderer:
[legend]

Public Member Functions

 D2DWriteTextOutRenderer (bool bRenderingModeNatural)
 
virtual ~D2DWriteTextOutRenderer () override
 
bool operator() (GenericSalLayout const &rLayout, SalGraphics &rGraphics, HDC hDC, bool bRenderingModeNatural) override
 
HRESULT BindDC (HDC hDC, tools::Rectangle const &rRect=tools::Rectangle(0, 0, 1, 1))
 
bool BindFont (HDC hDC)
 
bool ReleaseFont ()
 
std::vector< tools::RectangleGetGlyphInkBoxes (uint16_t const *pGid, uint16_t const *pGidEnd) const
 
ID2D1RenderTarget * GetRenderTarget () const
 
IDWriteFontFace * GetFontFace () const
 
float GetEmHeight () const
 
HRESULT CreateRenderTarget (bool bRenderingModeNatural)
 
bool Ready () const
 
void applyTextAntiAliasMode (bool bRenderingModeNatural)
 
bool GetRenderingModeNatural () const
 
- Public Member Functions inherited from TextOutRenderer
virtual ~TextOutRenderer ()=default
 
virtual bool operator() (GenericSalLayout const &rLayout, SalGraphics &rGraphics, HDC hDC, bool bRenderingModeNatural)=0
 

Private Member Functions

 D2DWriteTextOutRenderer (const D2DWriteTextOutRenderer &)=delete
 
D2DWriteTextOutRendereroperator= (const D2DWriteTextOutRenderer &)=delete
 
bool GetDWriteFaceFromHDC (HDC hDC, IDWriteFontFace **ppFontFace, float *lfSize) const
 
bool performRender (GenericSalLayout const &rLayout, SalGraphics &rGraphics, HDC hDC, bool &bRetry, bool bRenderingModeNatural)
 

Private Attributes

ID2D1Factory * mpD2DFactory
 
IDWriteFactory * mpDWriteFactory
 
IDWriteGdiInterop * mpGdiInterop
 
ID2D1DCRenderTarget * mpRT
 
const D2D1_RENDER_TARGET_PROPERTIES mRTProps
 
IDWriteFontFace * mpFontFace
 
float mlfEmHeight
 
HDC mhDC
 
bool mbRenderingModeNatural
 
D2DTextAntiAliasMode meTextAntiAliasMode
 

Additional Inherited Members

- Static Public Member Functions inherited from TextOutRenderer
static TextOutRendererget (bool bUseDWrite, bool bRenderingModeNatural)
 
- Protected Member Functions inherited from TextOutRenderer
 TextOutRenderer ()=default
 
 TextOutRenderer (const TextOutRenderer &)=delete
 
TextOutRendereroperator= (const TextOutRenderer &)=delete
 

Detailed Description

Definition at line 37 of file DWriteTextRenderer.hxx.

Constructor & Destructor Documentation

◆ D2DWriteTextOutRenderer() [1/2]

D2DWriteTextOutRenderer::D2DWriteTextOutRenderer ( bool  bRenderingModeNatural)
explicit

◆ ~D2DWriteTextOutRenderer()

virtual D2DWriteTextOutRenderer::~D2DWriteTextOutRenderer ( )
overridevirtual

◆ D2DWriteTextOutRenderer() [2/2]

D2DWriteTextOutRenderer::D2DWriteTextOutRenderer ( const D2DWriteTextOutRenderer )
privatedelete

Member Function Documentation

◆ applyTextAntiAliasMode()

void D2DWriteTextOutRenderer::applyTextAntiAliasMode ( bool  bRenderingModeNatural)

◆ BindDC()

HRESULT D2DWriteTextOutRenderer::BindDC ( HDC  hDC,
tools::Rectangle const &  rRect = tools::Rectangle(0, 0, 1, 1) 
)

◆ BindFont()

bool D2DWriteTextOutRenderer::BindFont ( HDC  hDC)

◆ CreateRenderTarget()

HRESULT D2DWriteTextOutRenderer::CreateRenderTarget ( bool  bRenderingModeNatural)

◆ GetDWriteFaceFromHDC()

bool D2DWriteTextOutRenderer::GetDWriteFaceFromHDC ( HDC  hDC,
IDWriteFontFace **  ppFontFace,
float *  lfSize 
) const
private

◆ GetEmHeight()

float D2DWriteTextOutRenderer::GetEmHeight ( ) const
inline

Definition at line 56 of file DWriteTextRenderer.hxx.

References mlfEmHeight.

◆ GetFontFace()

IDWriteFontFace * D2DWriteTextOutRenderer::GetFontFace ( ) const
inline

Definition at line 55 of file DWriteTextRenderer.hxx.

References mpFontFace.

◆ GetGlyphInkBoxes()

std::vector< tools::Rectangle > D2DWriteTextOutRenderer::GetGlyphInkBoxes ( uint16_t const *  pGid,
uint16_t const *  pGidEnd 
) const

◆ GetRenderingModeNatural()

bool D2DWriteTextOutRenderer::GetRenderingModeNatural ( ) const
inline

Definition at line 64 of file DWriteTextRenderer.hxx.

References mbRenderingModeNatural.

◆ GetRenderTarget()

ID2D1RenderTarget * D2DWriteTextOutRenderer::GetRenderTarget ( ) const
inline

Definition at line 54 of file DWriteTextRenderer.hxx.

References mpRT.

◆ operator()()

bool D2DWriteTextOutRenderer::operator() ( GenericSalLayout const &  rLayout,
SalGraphics rGraphics,
HDC  hDC,
bool  bRenderingModeNatural 
)
overridevirtual

Implements TextOutRenderer.

◆ operator=()

D2DWriteTextOutRenderer & D2DWriteTextOutRenderer::operator= ( const D2DWriteTextOutRenderer )
privatedelete

◆ performRender()

bool D2DWriteTextOutRenderer::performRender ( GenericSalLayout const &  rLayout,
SalGraphics rGraphics,
HDC  hDC,
bool &  bRetry,
bool  bRenderingModeNatural 
)
private

◆ Ready()

bool D2DWriteTextOutRenderer::Ready ( ) const

◆ ReleaseFont()

bool D2DWriteTextOutRenderer::ReleaseFont ( )

Member Data Documentation

◆ mbRenderingModeNatural

bool D2DWriteTextOutRenderer::mbRenderingModeNatural
private

Definition at line 83 of file DWriteTextRenderer.hxx.

Referenced by GetRenderingModeNatural().

◆ meTextAntiAliasMode

D2DTextAntiAliasMode D2DWriteTextOutRenderer::meTextAntiAliasMode
private

Definition at line 84 of file DWriteTextRenderer.hxx.

◆ mhDC

HDC D2DWriteTextOutRenderer::mhDC
private

Definition at line 82 of file DWriteTextRenderer.hxx.

◆ mlfEmHeight

float D2DWriteTextOutRenderer::mlfEmHeight
private

Definition at line 81 of file DWriteTextRenderer.hxx.

Referenced by GetEmHeight().

◆ mpD2DFactory

ID2D1Factory* D2DWriteTextOutRenderer::mpD2DFactory
private

Definition at line 74 of file DWriteTextRenderer.hxx.

◆ mpDWriteFactory

IDWriteFactory* D2DWriteTextOutRenderer::mpDWriteFactory
private

Definition at line 75 of file DWriteTextRenderer.hxx.

◆ mpFontFace

IDWriteFontFace* D2DWriteTextOutRenderer::mpFontFace
private

Definition at line 80 of file DWriteTextRenderer.hxx.

Referenced by GetFontFace().

◆ mpGdiInterop

IDWriteGdiInterop* D2DWriteTextOutRenderer::mpGdiInterop
private

Definition at line 76 of file DWriteTextRenderer.hxx.

◆ mpRT

ID2D1DCRenderTarget* D2DWriteTextOutRenderer::mpRT
private

Definition at line 77 of file DWriteTextRenderer.hxx.

Referenced by GetRenderTarget().

◆ mRTProps

const D2D1_RENDER_TARGET_PROPERTIES D2DWriteTextOutRenderer::mRTProps
private

Definition at line 78 of file DWriteTextRenderer.hxx.


The documentation for this class was generated from the following file: