#ifndef GLASS_H #define GLASS_H #include #include #include #include #include #include #include #include "Glass_global.h" enum GLASS_MODE { NORMAL, BLUR, GLASS, }; class GLASSSHARED_EXPORT Glass { public: Glass(); ~Glass(); bool IsCompositionEnabled(); void SetGlass(WId handle, GLASS_MODE mode); void SetTopmost(WId handle, bool isTopmost); void SetTransparent(WId handle, bool isTopmost, bool isTransparent); void DrawString(QLabel *label, QPaintEvent *event); void DrawString(QCheckBox *checkbox, QPaintEvent *event); static void SetBkColor(QColor color); private: void DrawString(QWidget *widget, QString &text, QPaintEvent *event); }; #endif // GLASS_H