LibreOffice Module vcl (master)  1
CustomWidgetDraw.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_CUSTOMWIDGETDRAW_HXX
12 #define INCLUDED_VCL_INC_CUSTOMWIDGETDRAW_HXX
13 
14 #include <vcl/dllapi.h>
15 #include <WidgetDrawInterface.hxx>
16 #include <WidgetThemeLibrary.hxx>
17 #include <headless/svpgdi.hxx>
18 #include <vcl/settings.hxx>
19 
20 namespace vcl
21 {
23 {
24 private:
27 
28 public:
29  CustomWidgetDraw(SvpSalGraphics& rGraphics);
30  ~CustomWidgetDraw() override;
31 
32  bool isNativeControlSupported(ControlType eType, ControlPart ePart) override;
33 
34  bool hitTestNativeControl(ControlType eType, ControlPart ePart,
35  const tools::Rectangle& rBoundingControlRegion, const Point& aPos,
36  bool& rIsInside) override;
37 
38  bool drawNativeControl(ControlType eType, ControlPart ePart,
39  const tools::Rectangle& rBoundingControlRegion, ControlState eState,
40  const ImplControlValue& aValue, const OUString& aCaptions) override;
41 
42  bool getNativeControlRegion(ControlType eType, ControlPart ePart,
43  const tools::Rectangle& rBoundingControlRegion, ControlState eState,
44  const ImplControlValue& aValue, const OUString& aCaption,
45  tools::Rectangle& rNativeBoundingRegion,
46  tools::Rectangle& rNativeContentRegion) override;
47 
48  bool updateSettings(AllSettings& rSettings) override;
49 };
50 
51 } // end vcl namespace
52 
53 #endif
54 
55 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define VCL_DLLPUBLIC
Definition: dllapi.h:29
static WidgetThemeLibrary * s_pWidgetImplementation
SvpSalGraphics & m_rGraphics
ControlType
These types are all based on the supported variants vcl/salnativewidgets.hxx and must be kept in-sync...