1 /* 2 This file is part of the Okteta Gui library, made within the KDE community. 3 4 SPDX-FileCopyrightText: 2021 Friedrich W. H. Kossebau <kossebau@kde.org> 5 6 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 7 */ 8 9 #ifndef OKTETA_ZOOMPINCHCONTROLLER_HPP 10 #define OKTETA_ZOOMPINCHCONTROLLER_HPP 11 12 class QPinchGesture; 13 14 namespace Okteta { 15 class AbstractByteArrayView; 16 17 class ZoomPinchController 18 { 19 public: 20 explicit ZoomPinchController(AbstractByteArrayView* view); 21 22 public: 23 bool handlePinchGesture(QPinchGesture* pinchGesture); 24 25 private: 26 AbstractByteArrayView* mView; 27 double mOriginalZoomLevel = -1; 28 }; 29 30 } 31 32 #endif 33