LibreOffice Module vcl (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
vcl::ControlTextRenderer Class Referencefinal

a class which allows rendering text of a Control onto a device, by taking into account the metrics of a reference device. More...

#include <textlayout.hxx>

Public Member Functions

 ControlTextRenderer (const Control &_rControl, OutputDevice &_rTargetDevice, OutputDevice &_rReferenceDevice)
 
 ~ControlTextRenderer ()
 
tools::Rectangle DrawText (const tools::Rectangle &_rRect, const OUString &_rText, DrawTextFlags _nStyle, std::vector< tools::Rectangle > *_pVector, OUString *_pDisplayText, const Size *i_pDeviceSize)
 
tools::Rectangle GetTextRect (const tools::Rectangle &_rRect, const OUString &_rText, DrawTextFlags _nStyle, Size *o_pDeviceSize)
 

Private Member Functions

 ControlTextRenderer (const ControlTextRenderer &)=delete
 
ControlTextRendereroperator= (const ControlTextRenderer &)=delete
 

Private Attributes

::std::unique_ptr< ReferenceDeviceTextLayoutm_pImpl
 

Detailed Description

a class which allows rendering text of a Control onto a device, by taking into account the metrics of a reference device.

Definition at line 88 of file textlayout.hxx.

Constructor & Destructor Documentation

◆ ControlTextRenderer() [1/2]

vcl::ControlTextRenderer::ControlTextRenderer ( const Control _rControl,
OutputDevice _rTargetDevice,
OutputDevice _rReferenceDevice 
)

Definition at line 316 of file textlayout.cxx.

References m_pImpl.

◆ ~ControlTextRenderer()

vcl::ControlTextRenderer::~ControlTextRenderer ( )

Definition at line 321 of file textlayout.cxx.

◆ ControlTextRenderer() [2/2]

vcl::ControlTextRenderer::ControlTextRenderer ( const ControlTextRenderer )
privatedelete

Member Function Documentation

◆ DrawText()

tools::Rectangle vcl::ControlTextRenderer::DrawText ( const tools::Rectangle _rRect,
const OUString &  _rText,
DrawTextFlags  _nStyle,
std::vector< tools::Rectangle > *  _pVector,
OUString *  _pDisplayText,
const Size i_pDeviceSize 
)

Definition at line 325 of file textlayout.cxx.

References m_pImpl.

Referenced by Control::DrawControlText().

◆ GetTextRect()

tools::Rectangle vcl::ControlTextRenderer::GetTextRect ( const tools::Rectangle _rRect,
const OUString &  _rText,
DrawTextFlags  _nStyle,
Size o_pDeviceSize = nullptr 
)

Definition at line 331 of file textlayout.cxx.

References m_pImpl.

Referenced by Control::GetControlTextRect().

◆ operator=()

ControlTextRenderer & vcl::ControlTextRenderer::operator= ( const ControlTextRenderer )
privatedelete

Member Data Documentation

◆ m_pImpl

::std::unique_ptr< ReferenceDeviceTextLayout > vcl::ControlTextRenderer::m_pImpl
private

Definition at line 106 of file textlayout.hxx.

Referenced by DrawText(), and GetTextRect().


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