File indexing completed on 2024-12-22 04:12:59

0001 /*
0002  *  SPDX-FileCopyrightText: 2009 Sven Langkamp <sven.langkamp@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 #ifndef KIS_SHAPE_TOOL_HELPER_H
0007 #define KIS_SHAPE_TOOL_HELPER_H
0008 
0009 #include <kritaui_export.h>
0010 
0011 #include <QRectF>
0012 
0013 class KoShape;
0014 
0015 /**
0016  * KisShapeToolHelper provides shapes and fallback shapes for shape based tools
0017  */
0018 class KRITAUI_EXPORT KisShapeToolHelper
0019 {
0020 public:
0021     static KoShape* createRectangleShape(const QRectF& rect, qreal roundCornersX, qreal roundCornersY);
0022 
0023     static KoShape* createEllipseShape(const QRectF& rect);
0024 
0025 
0026 };
0027 
0028 
0029 #endif