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, MetricVector *_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 87 of file textlayout.hxx.

Constructor & Destructor Documentation

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

Definition at line 330 of file textlayout.cxx.

vcl::ControlTextRenderer::~ControlTextRenderer ( )

Definition at line 335 of file textlayout.cxx.

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

Member Function Documentation

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

Definition at line 339 of file textlayout.cxx.

References m_pImpl.

Referenced by Control::DrawControlText().

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

Definition at line 345 of file textlayout.cxx.

References m_pImpl.

Referenced by Control::GetControlTextRect().

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

Member Data Documentation

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

Definition at line 105 of file textlayout.hxx.

Referenced by DrawText(), and GetTextRect().


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