LibreOffice Module toolkit (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
VCLXFont Class Referencefinal

#include <vclxfont.hxx>

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

Public Member Functions

 VCLXFont ()
 
virtual ~VCLXFont () override
 
void Init (css::awt::XDevice &rxDev, const vcl::Font &rFont)
 
const vcl::FontGetFont () const
 
css::awt::FontDescriptor SAL_CALL getFontDescriptor () override
 
css::awt::SimpleFontMetric SAL_CALL getFontMetric () override
 
sal_Int16 SAL_CALL getCharWidth (sal_Unicode c) override
 
css::uno::Sequence< sal_Int16 > SAL_CALL getCharWidths (sal_Unicode nFirst, sal_Unicode nLast) override
 
sal_Int32 SAL_CALL getStringWidth (const OUString &str) override
 
sal_Int32 SAL_CALL getStringWidthArray (const OUString &str, css::uno::Sequence< sal_Int32 > &rDXArray) override
 
void SAL_CALL getKernPairs (css::uno::Sequence< sal_Unicode > &rnChars1, css::uno::Sequence< sal_Unicode > &rnChars2, css::uno::Sequence< sal_Int16 > &rnKerns) override
 
sal_Bool SAL_CALL hasGlyphs (const OUString &aText) override
 

Private Member Functions

bool ImplAssertValidFontMetric ()
 

Private Attributes

std::mutex maMutex
 
css::uno::Reference< css::awt::XDevice > mxDevice
 
vcl::Font maFont
 
std::unique_ptr< FontMetricmpFontMetric
 

Detailed Description

Definition at line 38 of file vclxfont.hxx.

Constructor & Destructor Documentation

◆ VCLXFont()

VCLXFont::VCLXFont ( )

Definition at line 33 of file vclxfont.cxx.

References mpFontMetric.

◆ ~VCLXFont()

VCLXFont::~VCLXFont ( )
overridevirtual

Definition at line 38 of file vclxfont.cxx.

Member Function Documentation

◆ getCharWidth()

sal_Int16 VCLXFont::getCharWidth ( sal_Unicode  c)
override

◆ getCharWidths()

css::uno::Sequence< sal_Int16 > VCLXFont::getCharWidths ( sal_Unicode  nFirst,
sal_Unicode  nLast 
)
override

◆ GetFont()

const vcl::Font & VCLXFont::GetFont ( ) const
inline

Definition at line 55 of file vclxfont.hxx.

Referenced by VCLUnoHelper::CreateFont().

◆ getFontDescriptor()

css::awt::FontDescriptor VCLXFont::getFontDescriptor ( )
override

Definition at line 67 of file vclxfont.cxx.

References VCLUnoHelper::CreateFontDescriptor(), maFont, and maMutex.

◆ getFontMetric()

css::awt::SimpleFontMetric VCLXFont::getFontMetric ( )
override

◆ getKernPairs()

void VCLXFont::getKernPairs ( css::uno::Sequence< sal_Unicode > &  rnChars1,
css::uno::Sequence< sal_Unicode > &  rnChars2,
css::uno::Sequence< sal_Int16 > &  rnKerns 
)
override

Definition at line 166 of file vclxfont.cxx.

◆ getStringWidth()

sal_Int32 VCLXFont::getStringWidth ( const OUString &  str)
override

◆ getStringWidthArray()

sal_Int32 VCLXFont::getStringWidthArray ( const OUString &  str,
css::uno::Sequence< sal_Int32 > &  rDXArray 
)
override

◆ hasGlyphs()

sal_Bool VCLXFont::hasGlyphs ( const OUString &  aText)
override

◆ ImplAssertValidFontMetric()

bool VCLXFont::ImplAssertValidFontMetric ( )
private

◆ Init()

void VCLXFont::Init ( css::awt::XDevice &  rxDev,
const vcl::Font rFont 
)

Definition at line 42 of file vclxfont.cxx.

References maFont, mpFontMetric, and mxDevice.

Member Data Documentation

◆ maFont

vcl::Font VCLXFont::maFont
private

◆ maMutex

std::mutex VCLXFont::maMutex
private

◆ mpFontMetric

std::unique_ptr<FontMetric> VCLXFont::mpFontMetric
private

Definition at line 46 of file vclxfont.hxx.

Referenced by getFontMetric(), ImplAssertValidFontMetric(), Init(), and VCLXFont().

◆ mxDevice

css::uno::Reference< css::awt::XDevice> VCLXFont::mxDevice
private

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