Krita Source Code Documentation
Loading...
Searching...
No Matches
KoZoomState.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KOZOOMSTATE_H
8#define KOZOOMSTATE_H
9
10#include "KoZoomMode.h"
11#include <boost/operators.hpp>
12#include <QtGlobal>
13
17class KRITAFLAKE_EXPORT KoZoomState : public boost::equality_comparable<KoZoomState>
18{
19public:
20 KoZoomState() = default;
21 KoZoomState(KoZoomMode::Mode mode, qreal zoom, qreal minZoom, qreal maxZoom)
22 : mode(mode), zoom(zoom), minZoom(minZoom), maxZoom(maxZoom) {}
23
25 qreal zoom {1.0};
26 qreal minZoom {0.1};
27 qreal maxZoom {90.0};
28
29 bool operator==(const KoZoomState &other) const;
30};
31
32#endif // KOZOOMSTATE_H
bool operator==(const KisRegion &lhs, const KisRegion &rhs)
@ ZOOM_CONSTANT
zoom x %
Definition KoZoomMode.h:24
KoZoomState()=default
KoZoomState(KoZoomMode::Mode mode, qreal zoom, qreal minZoom, qreal maxZoom)
Definition KoZoomState.h:21