LibreOffice Module vcl (master) 1
Public Member Functions | Private Attributes | List of all members
GlyphItem Class Reference

#include <impglyphitem.hxx>

Collaboration diagram for GlyphItem:
[legend]

Public Member Functions

 GlyphItem (int nCharPos, int nCharCount, sal_GlyphId aGlyphId, const DevicePoint &rLinearPos, GlyphItemFlags nFlags, DeviceCoordinate nOrigWidth, int nXOffset, int nYOffset)
 
bool IsInCluster () const
 
bool IsRTLGlyph () const
 
bool IsDiacritic () const
 
bool IsVertical () const
 
bool IsSpacing () const
 
bool IsDropped () const
 
bool IsClusterStart () const
 
bool IsUnsafeToBreak () const
 
bool IsSafeToInsertKashida () const
 
bool GetGlyphBoundRect (const LogicalFontInstance *, tools::Rectangle &) const
 
bool GetGlyphOutline (const LogicalFontInstance *, basegfx::B2DPolyPolygon &) const
 
void dropGlyph ()
 
sal_GlyphId glyphId () const
 
int charCount () const
 
DeviceCoordinate origWidth () const
 
int charPos () const
 
int xOffset () const
 
int yOffset () const
 
DeviceCoordinate newWidth () const
 
const DevicePointlinearPos () const
 
void setNewWidth (DeviceCoordinate width)
 
void addNewWidth (DeviceCoordinate width)
 
void setLinearPos (const DevicePoint &point)
 
void setLinearPosX (double x)
 
void adjustLinearPosX (double diff)
 
bool operator== (const GlyphItem &other) const
 
bool operator!= (const GlyphItem &other) const
 

Private Attributes

DevicePoint m_aLinearPos
 
DeviceCoordinate m_nOrigWidth
 
sal_Int32 m_nCharPos
 
sal_Int32 m_nXOffset
 
sal_Int32 m_nYOffset
 
DeviceCoordinate m_nNewWidth
 
sal_GlyphId m_aGlyphId
 
GlyphItemFlags m_nFlags
 
sal_Int8 m_nCharCount
 

Detailed Description

Definition at line 52 of file impglyphitem.hxx.

Constructor & Destructor Documentation

◆ GlyphItem()

GlyphItem::GlyphItem ( int  nCharPos,
int  nCharCount,
sal_GlyphId  aGlyphId,
const DevicePoint rLinearPos,
GlyphItemFlags  nFlags,
DeviceCoordinate  nOrigWidth,
int  nXOffset,
int  nYOffset 
)
inline

Definition at line 65 of file impglyphitem.hxx.

References m_nFlags.

Member Function Documentation

◆ addNewWidth()

void GlyphItem::addNewWidth ( DeviceCoordinate  width)
inline

Definition at line 106 of file impglyphitem.hxx.

◆ adjustLinearPosX()

void GlyphItem::adjustLinearPosX ( double  diff)
inline

Definition at line 109 of file impglyphitem.hxx.

References basegfx::Tuple2D< typename TYPE >::adjustX().

◆ charCount()

int GlyphItem::charCount ( ) const
inline

Definition at line 97 of file impglyphitem.hxx.

Referenced by vcl::PDFWriterImpl::drawLayout().

◆ charPos()

int GlyphItem::charPos ( ) const
inline

◆ dropGlyph()

void GlyphItem::dropGlyph ( )
inline

Definition at line 133 of file impglyphitem.hxx.

References IS_DROPPED, m_nCharPos, and m_nFlags.

◆ GetGlyphBoundRect()

bool GlyphItem::GetGlyphBoundRect ( const LogicalFontInstance pFontInstance,
tools::Rectangle rRect 
) const
inline

◆ GetGlyphOutline()

bool GlyphItem::GetGlyphOutline ( const LogicalFontInstance pFontInstance,
basegfx::B2DPolyPolygon rPoly 
) const
inline

Definition at line 127 of file impglyphitem.hxx.

References LogicalFontInstance::GetGlyphOutline(), IsVertical(), and m_aGlyphId.

Referenced by SalLayout::GetOutline().

◆ glyphId()

sal_GlyphId GlyphItem::glyphId ( ) const
inline

Definition at line 96 of file impglyphitem.hxx.

Referenced by vcl::PDFWriterImpl::drawLayout().

◆ IsClusterStart()

bool GlyphItem::IsClusterStart ( ) const
inline

Definition at line 85 of file impglyphitem.hxx.

References IS_CLUSTER_START, and m_nFlags.

Referenced by vcl::PDFWriterImpl::drawLayout().

◆ IsDiacritic()

bool GlyphItem::IsDiacritic ( ) const
inline

Definition at line 81 of file impglyphitem.hxx.

References IS_DIACRITIC, and m_nFlags.

◆ IsDropped()

bool GlyphItem::IsDropped ( ) const
inline

Definition at line 84 of file impglyphitem.hxx.

References IS_DROPPED, and m_nFlags.

◆ IsInCluster()

bool GlyphItem::IsInCluster ( ) const
inline

Definition at line 79 of file impglyphitem.hxx.

References IS_IN_CLUSTER, and m_nFlags.

Referenced by vcl::PDFWriterImpl::drawLayout().

◆ IsRTLGlyph()

bool GlyphItem::IsRTLGlyph ( ) const
inline

Definition at line 80 of file impglyphitem.hxx.

References IS_RTL_GLYPH, and m_nFlags.

◆ IsSafeToInsertKashida()

bool GlyphItem::IsSafeToInsertKashida ( ) const
inline

Definition at line 87 of file impglyphitem.hxx.

References IS_SAFE_TO_INSERT_KASHIDA, and m_nFlags.

◆ IsSpacing()

bool GlyphItem::IsSpacing ( ) const
inline

◆ IsUnsafeToBreak()

bool GlyphItem::IsUnsafeToBreak ( ) const
inline

Definition at line 86 of file impglyphitem.hxx.

References IS_UNSAFE_TO_BREAK, and m_nFlags.

◆ IsVertical()

bool GlyphItem::IsVertical ( ) const
inline

Definition at line 82 of file impglyphitem.hxx.

References IS_VERTICAL, and m_nFlags.

Referenced by vcl::PDFWriterImpl::drawLayout(), GetGlyphBoundRect(), and GetGlyphOutline().

◆ linearPos()

const DevicePoint & GlyphItem::linearPos ( ) const
inline

Definition at line 103 of file impglyphitem.hxx.

◆ newWidth()

DeviceCoordinate GlyphItem::newWidth ( ) const
inline

◆ operator!=()

bool GlyphItem::operator!= ( const GlyphItem other) const
inline

Definition at line 118 of file impglyphitem.hxx.

◆ operator==()

bool GlyphItem::operator== ( const GlyphItem other) const
inline

◆ origWidth()

DeviceCoordinate GlyphItem::origWidth ( ) const
inline

Definition at line 98 of file impglyphitem.hxx.

◆ setLinearPos()

void GlyphItem::setLinearPos ( const DevicePoint point)
inline

Definition at line 107 of file impglyphitem.hxx.

References point().

◆ setLinearPosX()

void GlyphItem::setLinearPosX ( double  x)
inline

Definition at line 108 of file impglyphitem.hxx.

References basegfx::Tuple2D< typename TYPE >::setX(), and x.

◆ setNewWidth()

void GlyphItem::setNewWidth ( DeviceCoordinate  width)
inline

Definition at line 105 of file impglyphitem.hxx.

◆ xOffset()

int GlyphItem::xOffset ( ) const
inline

Definition at line 100 of file impglyphitem.hxx.

◆ yOffset()

int GlyphItem::yOffset ( ) const
inline

Definition at line 101 of file impglyphitem.hxx.

Member Data Documentation

◆ m_aGlyphId

sal_GlyphId GlyphItem::m_aGlyphId
private

Definition at line 60 of file impglyphitem.hxx.

Referenced by GetGlyphBoundRect(), GetGlyphOutline(), and operator==().

◆ m_aLinearPos

DevicePoint GlyphItem::m_aLinearPos
private

Definition at line 54 of file impglyphitem.hxx.

Referenced by operator==().

◆ m_nCharCount

sal_Int8 GlyphItem::m_nCharCount
private

Definition at line 62 of file impglyphitem.hxx.

Referenced by operator==().

◆ m_nCharPos

sal_Int32 GlyphItem::m_nCharPos
private

Definition at line 56 of file impglyphitem.hxx.

Referenced by dropGlyph(), and operator==().

◆ m_nFlags

GlyphItemFlags GlyphItem::m_nFlags
private

Definition at line 61 of file impglyphitem.hxx.

Referenced by dropGlyph(), and operator==().

◆ m_nNewWidth

DeviceCoordinate GlyphItem::m_nNewWidth
private

Definition at line 59 of file impglyphitem.hxx.

Referenced by operator==().

◆ m_nOrigWidth

DeviceCoordinate GlyphItem::m_nOrigWidth
private

Definition at line 55 of file impglyphitem.hxx.

Referenced by operator==().

◆ m_nXOffset

sal_Int32 GlyphItem::m_nXOffset
private

Definition at line 57 of file impglyphitem.hxx.

Referenced by operator==().

◆ m_nYOffset

sal_Int32 GlyphItem::m_nYOffset
private

Definition at line 58 of file impglyphitem.hxx.

Referenced by operator==().


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