File: kis_shape_tool_helper.h

package info (click to toggle)
krita 1%3A5.2.9%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 535,928 kB
  • sloc: cpp: 644,668; python: 15,986; ansic: 10,315; xml: 8,488; perl: 622; sh: 214; sql: 129; lisp: 110; makefile: 8
file content (29 lines) | stat: -rw-r--r-- 575 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 *  SPDX-FileCopyrightText: 2009 Sven Langkamp <sven.langkamp@gmail.com>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */
#ifndef KIS_SHAPE_TOOL_HELPER_H
#define KIS_SHAPE_TOOL_HELPER_H

#include <kritaui_export.h>

#include <QRectF>

class KoShape;

/**
 * KisShapeToolHelper provides shapes and fallback shapes for shape based tools
 */
class KRITAUI_EXPORT KisShapeToolHelper
{
public:
    static KoShape* createRectangleShape(const QRectF& rect, qreal roundCornersX, qreal roundCornersY);

    static KoShape* createEllipseShape(const QRectF& rect);


};


#endif