aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop-unified/src-DE/LDesktopBackground.h
blob: a2e467480f7787cc742e12121d129e45bad55eb6 (plain)
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
//===========================================
//  Lumina-DE source code
//  Copyright (c) 2016, Henry Hu
//  Available under the 3-clause BSD license
//  See the LICENSE file for full details
//===========================================
#ifndef _LUMINA_DESKTOP_LDESKTOPBACKGROUND_H_
#define _LUMINA_DESKTOP_LDESKTOPBACKGROUND_H_

#include <QString>
#include <QWidget>
#include <QPixmap>

class LDesktopBackground: public QWidget {
    Q_OBJECT
public:
    LDesktopBackground();
    virtual ~LDesktopBackground();

    virtual void paintEvent(QPaintEvent*);
    static QPixmap setBackground(const QString&, const QString&, QRect geom);

private:
    QPixmap *bgPixmap;
};

#endif // _LUMINA_DESKTOP_LDESKTOPBACKGROUND_H_
bgstack15