LibreOffice Module vcl (master)  1
WidgetDrawInterface.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  */
10 
11 #ifndef INCLUDED_VCL_INC_WIDGETDRAWINTERFACE_HXX
12 #define INCLUDED_VCL_INC_WIDGETDRAWINTERFACE_HXX
13 
14 #include <vcl/dllapi.h>
15 #include <vcl/salnativewidgets.hxx>
16 #include <vcl/settings.hxx>
17 
18 namespace vcl
19 {
21 {
22 public:
23  virtual ~WidgetDrawInterface() COVERITY_NOEXCEPT_FALSE {}
24 
32  virtual inline bool isNativeControlSupported(ControlType eType, ControlPart ePart);
33 
47  virtual inline bool hitTestNativeControl(ControlType eType, ControlPart ePart,
48  const tools::Rectangle& rBoundingControlRegion,
49  const Point& aPos, bool& rIsInside);
50 
63  virtual inline bool drawNativeControl(ControlType eType, ControlPart ePart,
64  const tools::Rectangle& rBoundingControlRegion,
65  ControlState eState, const ImplControlValue& aValue,
66  const OUString& aCaptions);
67 
87  virtual inline bool getNativeControlRegion(ControlType eType, ControlPart ePart,
88  const tools::Rectangle& rBoundingControlRegion,
89  ControlState eState, const ImplControlValue& aValue,
90  const OUString& aCaption,
91  tools::Rectangle& rNativeBoundingRegion,
92  tools::Rectangle& rNativeContentRegion);
93 
94  virtual inline bool updateSettings(AllSettings& rSettings);
95 };
96 
98 
100  const Point&, bool&)
101 {
102  return false;
103 }
104 
106  ControlState, const ImplControlValue&, const OUString&)
107 {
108  return false;
109 }
110 
113  const OUString&, tools::Rectangle&,
115 {
116  return false;
117 }
118 
120 }
121 
122 #endif
123 
124 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual bool hitTestNativeControl(ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, const Point &aPos, bool &rIsInside)
Query if a position is inside the native widget part.
virtual bool isNativeControlSupported(ControlType eType, ControlPart ePart)
Query the platform layer for native control support.
virtual bool getNativeControlRegion(ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, ControlState eState, const ImplControlValue &aValue, const OUString &aCaption, tools::Rectangle &rNativeBoundingRegion, tools::Rectangle &rNativeContentRegion)
Get the native control regions for the control part.
virtual bool drawNativeControl(ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, ControlState eState, const ImplControlValue &aValue, const OUString &aCaptions)
Draw the requested control.
ControlType
These types are all based on the supported variants vcl/salnativewidgets.hxx and must be kept in-sync...
#define VCL_PLUGIN_PUBLIC
Definition: dllapi.h:40
virtual bool updateSettings(AllSettings &rSettings)
virtual ~WidgetDrawInterface() COVERITY_NOEXCEPT_FALSE