diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2015-10-01 17:05:29 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-10-01 17:05:29 +0200 |
commit | 39f2c6a84cd715b11fb3ffa82a86abf2fb9bcd70 (patch) | |
tree | d6bc97f38d36892b14703c788cef782f13ee2a4d /src/xosd.h | |
download | kooldock-39f2c6a84cd715b11fb3ffa82a86abf2fb9bcd70.tar.gz kooldock-39f2c6a84cd715b11fb3ffa82a86abf2fb9bcd70.zip |
Initial import of kooldock 0.4.7
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src/xosd.h')
-rw-r--r-- | src/xosd.h | 58 |
1 files changed, 58 insertions, 0 deletions
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 <config.h> +#endif + +#include <qstring.h> +#include <qwidget.h> +#include <qfont.h> +#include <qpixmap.h> +#include <qbitmap.h> + +#include <netwm.h> +#include <kwin.h> + +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_ |