summaryrefslogtreecommitdiff
path: root/vcl/inc/quartz
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2013-06-01 17:12:29 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2013-06-03 15:11:53 +0200
commitea8422d42e838e7ddfeb8d9f77f3ecedecb29ce8 (patch)
tree8f389c873fe7297fdf5f4dd59d631f95e583bcc6 /vcl/inc/quartz
parentcacc516693b879c08bd3b1963eeed9c38928615f (diff)
Cherry-pick Core Text port from AOO
Manually picked from: http://svn.apache.org/viewvc?view=revision&sortby=log&revision=1480384 Author: hdu Date: Wed May 8 18:14:34 2013 UTC (3 weeks, 2 days ago) Changed paths: 55 Log Message: #i122195# add VCL support for 64bit OSX>=10.7 Change-Id: Ia799d7fdeb257e9bfd311338dcfdf97caf9d191f
Diffstat (limited to 'vcl/inc/quartz')
-rw-r--r--vcl/inc/quartz/salgdicommon.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/inc/quartz/salgdicommon.hxx b/vcl/inc/quartz/salgdicommon.hxx
index bbc6f8f9a550..c8a18198ffe9 100644
--- a/vcl/inc/quartz/salgdicommon.hxx
+++ b/vcl/inc/quartz/salgdicommon.hxx
@@ -39,6 +39,11 @@ public:
const CGFloat* AsArray() const { return m_fRGBA; }
bool IsVisible() const { return m_fRGBA[3] > 0; }
void SetAlpha( float fAlpha ) { m_fRGBA[3] = fAlpha; }
+
+ CGFloat GetRed() const { return m_fRGBA[0]; }
+ CGFloat GetGreen() const { return m_fRGBA[1]; }
+ CGFloat GetBlue() const { return m_fRGBA[2]; }
+ CGFloat GetAlpha() const { return m_fRGBA[3]; }
private:
CGFloat m_fRGBA[4]; // red, green, blue, alpha
};