From 0db0e7e6087fef12e0feaf2f7d8a4826e98c6e9b Mon Sep 17 00:00:00 2001 From: "hoonik.lee" Date: Sat, 6 Apr 2013 18:22:35 +0900 Subject: [PATCH] Add anti-aliasing APIs in Public Canvas Change-Id: I74d596c9a2132c5aacccb23a6f48377465be7945 Signed-off-by: hoonik.lee --- inc/FGrpCanvas.h | 20 ++++++++++++++++++++ src/graphics/FGrpCanvas.cpp | 16 ++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/inc/FGrpCanvas.h b/inc/FGrpCanvas.h index 82c9c34..01ad2de 100644 --- a/inc/FGrpCanvas.h +++ b/inc/FGrpCanvas.h @@ -1591,6 +1591,26 @@ public: */ CompositeMode GetCompositeMode(void) const; + /** + * Enables or disables anti-aliasing to the current instance of %Canvas. + * + * @since 2.1 + * + * @param[in] enable Set to @c true to enable anti-aliasing for the current instance of %Canvas, @n + * else @c false + * @remarks By default, the anti-aliasing is enabled. + */ + void SetAntiAliasingEnabled(bool enable); + + /** + * Checks whether anti-aliasing is enabled to the current instance. + * + * @since 2.1 + * + * @return @c true if the anti-aliasing is enabled to the current instance. + * else @c false + */ + bool IsAntiAliasingEnabled(void) const; private: // diff --git a/src/graphics/FGrpCanvas.cpp b/src/graphics/FGrpCanvas.cpp index 3baff87..6aaa820 100644 --- a/src/graphics/FGrpCanvas.cpp +++ b/src/graphics/FGrpCanvas.cpp @@ -1258,4 +1258,20 @@ Canvas::GetCompositeMode(void) const return this->__pImpl->GetCompositeMode(); } +void +Canvas::SetAntiAliasingEnabled(bool enable) +{ + CHECK_CONSTRUCTED; + + return this->__pImpl->SetAntialiasingEnabled(enable); +} + +bool +Canvas::IsAntiAliasingEnabled(void) const +{ + CHECK_CONSTRUCTED_EX(true); + + return this->__pImpl->IsAntialiasingEnabled(); +} + }} // Tizen::Graphics -- 2.7.4