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))
 
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
 
IDWriteFontFace * GetDWriteFace (const WinFontInstance &rWinFont, float *lfSize) const
 
bool performRender (GenericSalLayout const &rLayout, SalGraphics &rGraphics, HDC hDC, bool &bRetry, bool bRenderingModeNatural)
 

Private Attributes

ID2D1Factory * mpD2DFactory
 
IDWriteFactory * mpDWriteFactory
 
ID2D1DCRenderTarget * mpRT
 
const D2D1_RENDER_TARGET_PROPERTIES mRTProps
 
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 36 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) 
)

◆ CreateRenderTarget()

HRESULT D2DWriteTextOutRenderer::CreateRenderTarget ( bool  bRenderingModeNatural)

◆ GetDWriteFace()

IDWriteFontFace * D2DWriteTextOutRenderer::GetDWriteFace ( const WinFontInstance rWinFont,
float *  lfSize 
) const
private

◆ GetRenderingModeNatural()

bool D2DWriteTextOutRenderer::GetRenderingModeNatural ( ) const
inline

Definition at line 55 of file DWriteTextRenderer.hxx.

References mbRenderingModeNatural.

◆ 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

Member Data Documentation

◆ mbRenderingModeNatural

bool D2DWriteTextOutRenderer::mbRenderingModeNatural
private

Definition at line 70 of file DWriteTextRenderer.hxx.

Referenced by GetRenderingModeNatural().

◆ meTextAntiAliasMode

D2DTextAntiAliasMode D2DWriteTextOutRenderer::meTextAntiAliasMode
private

Definition at line 71 of file DWriteTextRenderer.hxx.

◆ mpD2DFactory

ID2D1Factory* D2DWriteTextOutRenderer::mpD2DFactory
private

Definition at line 65 of file DWriteTextRenderer.hxx.

◆ mpDWriteFactory

IDWriteFactory* D2DWriteTextOutRenderer::mpDWriteFactory
private

Definition at line 66 of file DWriteTextRenderer.hxx.

◆ mpRT

ID2D1DCRenderTarget* D2DWriteTextOutRenderer::mpRT
private

Definition at line 67 of file DWriteTextRenderer.hxx.

◆ mRTProps

const D2D1_RENDER_TARGET_PROPERTIES D2DWriteTextOutRenderer::mRTProps
private

Definition at line 68 of file DWriteTextRenderer.hxx.


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