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++
800 B
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2025 Agata Cacko
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef GUTTER_WIDTHS_CONFIG_H_
#define GUTTER_WIDTHS_CONFIG_H_

#include <QScopedPointer>
#include <QPoint>
#include <QRectF>
#include <KoUnit.h>


class GutterWidthsConfig
{
public:
    GutterWidthsConfig(KoUnit _baseUnit, qreal resolution, qreal _horizontal, qreal _vertical, qreal _diagonal, qreal _angleDegrees);
    GutterWidthsConfig(KoUnit _baseUnit, qreal resolution, qreal _all, qreal _angleDegrees);

public:

    qreal widthForAngleInPixels(qreal lineAngleDegrees);

public:


    const KoUnit baseUnit;

    const qreal resolution;
    const qreal horizontal;
    const qreal vertical;
    const qreal diagonal;
    const qreal angleDegrees;


};




#endif // GUTTER_WIDTHS_CONFIG_H_