LibreOffice Module sw (master)  1
Public Member Functions | Public Attributes | List of all members
SwTextGlyphsKey Struct Reference

Defines a substring on a given output device, to be used as an std::unordered_map<> key. More...

#include <fntcache.hxx>

Collaboration diagram for SwTextGlyphsKey:
[legend]

Public Member Functions

 SwTextGlyphsKey (VclPtr< OutputDevice > const &pOutputDevice, const OUString &sText, sal_Int32 nIndex, sal_Int32 nLength)
 Defines a substring on a given output device, to be used as an std::unordered_map<> key. More...
 
bool operator== (SwTextGlyphsKey const &rhs) const
 

Public Attributes

VclPtr< OutputDevicem_pOutputDevice
 
OUString m_aText
 
sal_Int32 m_nIndex
 
sal_Int32 m_nLength
 
size_t mnHashCode
 

Detailed Description

Defines a substring on a given output device, to be used as an std::unordered_map<> key.

Definition at line 67 of file fntcache.hxx.

Constructor & Destructor Documentation

SwTextGlyphsKey::SwTextGlyphsKey ( VclPtr< OutputDevice > const &  pOutputDevice,
const OUString &  sText,
sal_Int32  nIndex,
sal_Int32  nLength 
)

Defines a substring on a given output device, to be used as an std::unordered_map<> key.

Definition at line 80 of file fntcache.cxx.

References VclPtr< OutputDevice >::get(), o3tl::hash_combine(), m_aText, m_nIndex, m_nLength, m_nLength, and mnHashCode.

Member Function Documentation

bool SwTextGlyphsKey::operator== ( SwTextGlyphsKey const &  rhs) const

Definition at line 90 of file fntcache.cxx.

References VclPtr< OutputDevice >::get(), m_aText, m_nIndex, m_nLength, and m_pOutputDevice.

Member Data Documentation

OUString SwTextGlyphsKey::m_aText
sal_Int32 SwTextGlyphsKey::m_nIndex
sal_Int32 SwTextGlyphsKey::m_nLength
VclPtr<OutputDevice> SwTextGlyphsKey::m_pOutputDevice

Definition at line 69 of file fntcache.hxx.

Referenced by SwFntObj::GetCachedTextWidth(), lcl_CreateLayout(), and operator==().

size_t SwTextGlyphsKey::mnHashCode

Definition at line 73 of file fntcache.hxx.

Referenced by SwTextGlyphsKeyHash::operator()(), and SwTextGlyphsKey().


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