summaryrefslogtreecommitdiff
path: root/vcl/source/gdi
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2018-07-25 15:41:14 +0200
committerJan Holesovsky <kendy@collabora.com>2018-11-09 18:42:23 +0100
commit8fcfa3853a81106db2ea1f16341d30ae9055be95 (patch)
treebec28547f652250f5f0283b71afa36eb4422bd01 /vcl/source/gdi
parent4e6b448b998e3589baa2de46fb2135f1162695ed (diff)
custom widgets: Custom Widget Themes
Change-Id: I7ec57d18fe99f906aeb6dbb40d0d30c2ac8b51c4
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r--vcl/source/gdi/salnativewidgets-none.cxx50
1 files changed, 36 insertions, 14 deletions
diff --git a/vcl/source/gdi/salnativewidgets-none.cxx b/vcl/source/gdi/salnativewidgets-none.cxx
index 6de0ace197c7..2f8051e7e1c2 100644
--- a/vcl/source/gdi/salnativewidgets-none.cxx
+++ b/vcl/source/gdi/salnativewidgets-none.cxx
@@ -19,33 +19,55 @@
#include <salgdi.hxx>
-/****************************************************************
- * Placeholder for no native widgets
- ***************************************************************/
-
-bool SalGraphics::IsNativeControlSupported( ControlType, ControlPart )
+bool SalGraphics::IsNativeControlSupported(ControlType eType, ControlPart ePart)
{
+ if (hasWidgetDraw())
+ return m_pWidgetDraw->isNativeControlSupported(eType, ePart);
+
return false;
}
-bool SalGraphics::hitTestNativeControl( ControlType, ControlPart,
- const tools::Rectangle&, const Point&, bool& )
+bool SalGraphics::hitTestNativeControl(ControlType eType, ControlPart ePart,
+ const tools::Rectangle& rBoundingControlRegion,
+ const Point& rPosition, bool& rIsInside)
{
+ if (hasWidgetDraw())
+ {
+ return m_pWidgetDraw->hitTestNativeControl(eType, ePart, rBoundingControlRegion, rPosition, rIsInside);
+ }
+
return false;
}
-bool SalGraphics::drawNativeControl( ControlType, ControlPart,
- const tools::Rectangle&, ControlState,
- const ImplControlValue&, const OUString& )
+bool SalGraphics::drawNativeControl(ControlType eType, ControlPart ePart,
+ const tools::Rectangle& rBoundingControlRegion,
+ ControlState eState, const ImplControlValue& aValue,
+ const OUString& aCaptions)
{
+ if (hasWidgetDraw())
+ {
+ return m_pWidgetDraw->drawNativeControl(eType, ePart, rBoundingControlRegion,
+ eState, aValue, aCaptions);
+ }
+
return false;
}
-bool SalGraphics::getNativeControlRegion( ControlType, ControlPart,
- const tools::Rectangle&, ControlState,
- const ImplControlValue&,
- const OUString&, tools::Rectangle&, tools::Rectangle& )
+bool SalGraphics::getNativeControlRegion(ControlType eType, ControlPart ePart,
+ const tools::Rectangle& rBoundingControlRegion,
+ ControlState eState,
+ const ImplControlValue& aValue,
+ const OUString& aCaption,
+ tools::Rectangle& rNativeBoundingRegion,
+ tools::Rectangle& rNativeContentRegion)
{
+ if (hasWidgetDraw())
+ {
+ return m_pWidgetDraw->getNativeControlRegion(eType, ePart, rBoundingControlRegion,
+ eState, aValue, aCaption,
+ rNativeBoundingRegion, rNativeContentRegion);
+ }
+
return false;
}