summary refs log tree commit diff
path: root/src/ui/DropShadow.h
blob: 4ace473148e378f43d5ddae45dde08d3083413ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later

#pragma once

#include <QColor>

class QPainter;

class DropShadow
{
public:
        static void draw(QPainter &painter,
                         qint16 margin,
                         qreal radius,
                         QColor start,
                         QColor end,
                         qreal startPosition,
                         qreal endPosition0,
                         qreal endPosition1,
                         qreal width,
                         qreal height);
};