KQuickImageEditor

mirrorcommand.h
1/*
2 * SPDX-FileCopyrightText: (C) 2020 Carl Schwan <carl@carlschwan.eu>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6
7#pragma once
8
9#include "undocommand.h"
10
11#include <QImage>
12#include <QRect>
13
14/**
15 * @brief MirrorCommand that mirror an image horizontally or vertically.
16 */
18{
19public:
20 MirrorCommand(bool horizontal, bool vertical);
21 ~MirrorCommand() override = default;
22
23 virtual QImage redo(QImage image) override;
24
25 virtual QImage undo(QImage image) override;
26
27private:
28 bool m_horizontal;
29 bool m_vertical;
30};
MirrorCommand that mirror an image horizontally or vertically.
virtual QImage undo(QImage image) override
Revert a change to the document.
virtual QImage redo(QImage image) override
Applies the change to the document.
A class implementing the command pattern.
Definition undocommand.h:15
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:40 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.