Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
575 B
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2009 Sven Langkamp <[email protected]>
 *
 *  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