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
17
class
KRITAFLAKE_EXPORT
KoZoomState
:
public
boost::equality_comparable<KoZoomState>
18
{
19
public
:
20
KoZoomState
() =
default
;
21
KoZoomState
(
KoZoomMode::Mode
mode, qreal zoom, qreal minZoom, qreal maxZoom)
22
: mode(mode), zoom(zoom), minZoom(minZoom), maxZoom(maxZoom) {}
23
24
KoZoomMode::Mode
mode =
KoZoomMode::ZOOM_CONSTANT
;
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
operator==
bool operator==(const KisRegion &lhs, const KisRegion &rhs)
Definition
KisRegion.cpp:398
KoZoomMode.h
KoZoomMode::Mode
Mode
Definition
KoZoomMode.h:23
KoZoomMode::ZOOM_CONSTANT
@ ZOOM_CONSTANT
zoom x %
Definition
KoZoomMode.h:24
KoZoomState
Definition
KoZoomState.h:18
KoZoomState::KoZoomState
KoZoomState()=default
KoZoomState::KoZoomState
KoZoomState(KoZoomMode::Mode mode, qreal zoom, qreal minZoom, qreal maxZoom)
Definition
KoZoomState.h:21
libs
flake
KoZoomState.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52