bump product version to 6.4.0.3
[LibreOffice.git] / vcl / inc / qt5 / Qt5Graphics_Controls.hxx
blob2676fa6413a45ec41e0b8a432753a5ddb0de691f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #pragma once
22 #include <vclpluginapi.h>
23 #include <WidgetDrawInterface.hxx>
25 #include <memory>
27 #include <QtGui/QImage>
28 #include <QtGui/QPainter>
29 #include <QtGui/QRegion>
30 #include <QtWidgets/QPushButton>
32 class VCLPLUG_QT5_PUBLIC Qt5Graphics_Controls final : public vcl::WidgetDrawInterface
34 std::unique_ptr<QImage> m_image;
35 QRect m_lastPopupRect;
37 public:
38 Qt5Graphics_Controls();
40 QImage* getImage() { return m_image.get(); }
42 bool isNativeControlSupported(ControlType nType, ControlPart nPart) override;
43 bool hitTestNativeControl(ControlType nType, ControlPart nPart,
44 const tools::Rectangle& rControlRegion, const Point& aPos,
45 bool& rIsInside) override;
46 bool drawNativeControl(ControlType nType, ControlPart nPart,
47 const tools::Rectangle& rControlRegion, ControlState nState,
48 const ImplControlValue& aValue, const OUString& aCaption) override;
49 bool getNativeControlRegion(ControlType nType, ControlPart nPart,
50 const tools::Rectangle& rControlRegion, ControlState nState,
51 const ImplControlValue& aValue, const OUString& aCaption,
52 tools::Rectangle& rNativeBoundingRegion,
53 tools::Rectangle& rNativeContentRegion) override;
56 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */