You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.2 KiB
59 lines
1.2 KiB
9 years ago
|
#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_
|