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 ()
 
virtual ~D2DWriteTextOutRenderer () override
 
bool operator() (GenericSalLayout const &rLayout, SalGraphics &rGraphics, HDC hDC) 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 Ready () const
 
void applyTextAntiAliasMode ()
 
void changeTextAntiAliasMode (D2DTextAntiAliasMode eMode)
 
- Public Member Functions inherited from TextOutRenderer
virtual ~TextOutRenderer ()=default
 

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)
 

Private Attributes

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

Additional Inherited Members

- Static Public Member Functions inherited from TextOutRenderer
static TextOutRendererget (bool bUseDWrite)
 
- 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::D2DWriteTextOutRenderer ( )
explicit
virtual D2DWriteTextOutRenderer::~D2DWriteTextOutRenderer ( )
overridevirtual
D2DWriteTextOutRenderer::D2DWriteTextOutRenderer ( const D2DWriteTextOutRenderer )
privatedelete

Member Function Documentation

void D2DWriteTextOutRenderer::applyTextAntiAliasMode ( )
HRESULT D2DWriteTextOutRenderer::BindDC ( HDC  hDC,
tools::Rectangle const &  rRect = tools::Rectangle(0, 0, 1, 1) 
)
bool D2DWriteTextOutRenderer::BindFont ( HDC  hDC)
void D2DWriteTextOutRenderer::changeTextAntiAliasMode ( D2DTextAntiAliasMode  eMode)
HRESULT D2DWriteTextOutRenderer::CreateRenderTarget ( )
bool D2DWriteTextOutRenderer::GetDWriteFaceFromHDC ( HDC  hDC,
IDWriteFontFace **  ppFontFace,
float *  lfSize 
) const
private
float D2DWriteTextOutRenderer::GetEmHeight ( ) const
inline

Definition at line 55 of file DWriteTextRenderer.hxx.

References mlfEmHeight.

IDWriteFontFace* D2DWriteTextOutRenderer::GetFontFace ( ) const
inline

Definition at line 54 of file DWriteTextRenderer.hxx.

References mpFontFace.

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

Definition at line 53 of file DWriteTextRenderer.hxx.

References mpRT.

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

Implements TextOutRenderer.

D2DWriteTextOutRenderer& D2DWriteTextOutRenderer::operator= ( const D2DWriteTextOutRenderer )
privatedelete
bool D2DWriteTextOutRenderer::performRender ( GenericSalLayout const &  rLayout,
SalGraphics rGraphics,
HDC  hDC,
bool &  bRetry 
)
private
bool D2DWriteTextOutRenderer::Ready ( ) const
bool D2DWriteTextOutRenderer::ReleaseFont ( )

Member Data Documentation

D2DTextAntiAliasMode D2DWriteTextOutRenderer::meTextAntiAliasMode
private

Definition at line 81 of file DWriteTextRenderer.hxx.

HDC D2DWriteTextOutRenderer::mhDC
private

Definition at line 80 of file DWriteTextRenderer.hxx.

float D2DWriteTextOutRenderer::mlfEmHeight
private

Definition at line 79 of file DWriteTextRenderer.hxx.

Referenced by GetEmHeight().

ID2D1Factory* D2DWriteTextOutRenderer::mpD2DFactory
private

Definition at line 72 of file DWriteTextRenderer.hxx.

IDWriteFactory* D2DWriteTextOutRenderer::mpDWriteFactory
private

Definition at line 73 of file DWriteTextRenderer.hxx.

IDWriteFontFace* D2DWriteTextOutRenderer::mpFontFace
private

Definition at line 78 of file DWriteTextRenderer.hxx.

Referenced by GetFontFace().

IDWriteGdiInterop* D2DWriteTextOutRenderer::mpGdiInterop
private

Definition at line 74 of file DWriteTextRenderer.hxx.

ID2D1DCRenderTarget* D2DWriteTextOutRenderer::mpRT
private

Definition at line 75 of file DWriteTextRenderer.hxx.

Referenced by GetRenderTarget().

const D2D1_RENDER_TARGET_PROPERTIES D2DWriteTextOutRenderer::mRTProps
private

Definition at line 76 of file DWriteTextRenderer.hxx.


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