From 39f2c6a84cd715b11fb3ffa82a86abf2fb9bcd70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 1 Oct 2015 17:05:29 +0200 Subject: Initial import of kooldock 0.4.7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/xosd.h | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 src/xosd.h (limited to 'src/xosd.h') diff --git a/src/xosd.h b/src/xosd.h new file mode 100644 index 0000000..b40d8ab --- /dev/null +++ b/src/xosd.h @@ -0,0 +1,58 @@ +#ifndef XOSD_H_ +#define XOSD_H_ + +#ifdef HAVE_CONFIG_H +#include +#endif + +#include +#include +#include +#include +#include + +#include +#include + +class xosd : public QWidget +{ +Q_OBJECT + public: + xosd(QWidget* parent=0, const char *name=0); + + virtual ~xosd(); + void setText(QString t); + void setFont(QString font); + void setItalic(); + void setBold(); + void setSize(int size); + void setColor(QString color); + void setShadowColor(QString color); + void setShadowOffset(int off); + void move2(int x, int y); + void setOrientation(int orientation, int w, int mh); + void setClear(int nClean); + int yOffset; + int w, h; + int fontSize; + int fontStyle; + QString fontFamily; + + private: + NETWinInfo *info; + QString text; + QFont f; + QString fontColor; + QString shadowColor; + int shadowOffset; + int fOrientation; + QPixmap bgBuffer; + int dw, rdh; + int lastX, lastY; + int fCleaner; + QPixmap maskBuffer; + + protected: + void paintEvent(QPaintEvent *); +}; +#endif // XOSD_H_ -- cgit v1.2.1