Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_tool_ellipse_base.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2009 Boudewijn Rempt <boud@valdyas.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef KIS_TOOL_ELLIPSE_BASE_H
8#define KIS_TOOL_ELLIPSE_BASE_H
9
11#include <kis_cursor.h>
12
13class KRITAUI_EXPORT KisToolEllipseBase : public KisToolRectangleBase
14{
15public:
16 KisToolEllipseBase(KoCanvasBase * canvas, KisToolEllipseBase::ToolType type, const QCursor & cursor=KisCursor::load("tool_ellipse_cursor.png", 6, 6));
17
18 void paintRectangle(QPainter &gc, const QRectF &imageRect) override;
19
20protected:
21 bool showRoundCornersGUI() const override;
22};
23
24#endif // KIS_TOOL_ELLIPSE_BASE_H
static QCursor load(const QString &cursorName, int hotspotX=-1, int hotspotY=-1)
virtual void paintRectangle(QPainter &gc, const QRectF &imageRect)
virtual bool showRoundCornersGUI() const