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
13/**
14 * @brief MirrorCommand that mirror an image horizontally or vertically.
15 */
17{
18public:
19 MirrorCommand(bool horizontal, bool vertical);
20 ~MirrorCommand() override = default;
21
22 QImage redo(QImage image) override;
23
24 QImage undo(QImage image) override;
25
26private:
27 bool m_horizontal;
28 bool m_vertical;
29};
MirrorCommand that mirror an image horizontally or vertically.
QImage undo(QImage image) override
Revert a change to the document.
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 Mon Nov 18 2024 12:17:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.