summaryrefslogtreecommitdiff
path: root/vcl/inc/impglyphitem.hxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2022-04-08 17:54:26 +0200
committerLuboš Luňák <l.lunak@collabora.com>2022-04-09 15:01:23 +0200
commit136d9b34459edb444fb5154fa8b5c74d877099d5 (patch)
tree5d86ce9aba6c4a5dfe3e32c5ba6efdf5a4bfde81 /vcl/inc/impglyphitem.hxx
parent0c852a14d61d2c06322b8a0e51960604fd212e2b (diff)
no public data members in GlyphItem
Change-Id: Ib5911a8ad33aefffa972f583c2b5fc7d42a2b9bf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132746 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl/inc/impglyphitem.hxx')
-rw-r--r--vcl/inc/impglyphitem.hxx18
1 files changed, 12 insertions, 6 deletions
diff --git a/vcl/inc/impglyphitem.hxx b/vcl/inc/impglyphitem.hxx
index 57efcd827ccb..7228911a3ed7 100644
--- a/vcl/inc/impglyphitem.hxx
+++ b/vcl/inc/impglyphitem.hxx
@@ -50,27 +50,26 @@ template <> struct typed_flags<GlyphItemFlags> : is_typed_flags<GlyphItemFlags,
class VCL_DLLPUBLIC GlyphItem
{
+ DevicePoint m_aLinearPos; // absolute position of non rotated string
sal_Int32 m_nOrigWidth; // original glyph width
sal_Int32 m_nCharPos; // index in string
sal_Int32 m_nXOffset;
+ sal_Int32 m_nNewWidth; // width after adjustments
sal_GlyphId m_aGlyphId;
sal_Int8 m_nCharCount; // number of characters making up this glyph
GlyphItemFlags m_nFlags;
public:
- DevicePoint m_aLinearPos; // absolute position of non rotated string
- sal_Int32 m_nNewWidth; // width after adjustments
-
GlyphItem(int nCharPos, int nCharCount, sal_GlyphId aGlyphId, const DevicePoint& rLinearPos,
GlyphItemFlags nFlags, int nOrigWidth, int nXOffset)
- : m_nOrigWidth(nOrigWidth)
+ : m_aLinearPos(rLinearPos)
+ , m_nOrigWidth(nOrigWidth)
, m_nCharPos(nCharPos)
, m_nXOffset(nXOffset)
+ , m_nNewWidth(nOrigWidth)
, m_aGlyphId(aGlyphId)
, m_nCharCount(nCharCount)
, m_nFlags(nFlags)
- , m_aLinearPos(rLinearPos)
- , m_nNewWidth(nOrigWidth)
{
}
@@ -92,6 +91,13 @@ public:
int origWidth() const { return m_nOrigWidth; }
int charPos() const { return m_nCharPos; }
int xOffset() const { return m_nXOffset; }
+ sal_Int32 newWidth() const { return m_nNewWidth; }
+ const DevicePoint& linearPos() const { return m_aLinearPos; }
+
+ void setNewWidth(sal_Int32 width) { m_nNewWidth = width; }
+ void addNewWidth(sal_Int32 width) { m_nNewWidth += width; }
+ void setLinearPosX(double x) { m_aLinearPos.setX(x); }
+ void adjustLinearPosX(double diff) { m_aLinearPos.adjustX(diff); }
};
bool GlyphItem::GetGlyphBoundRect(const LogicalFontInstance* pFontInstance,