#ifndef GLASS_H #define GLASS_H #include #include #include #include #include #include #include #include "Glass_global.h" class GLASSSHARED_EXPORT Glass { public: Glass(); ~Glass(); bool IsCompositionEnabled(); void SetGlass(WId handle, bool isGlass); 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); QPixmap GetAppIconPixmap(WId handle); QPixmap GetTrayIconPixmap(WId handle); static void SetBkColor(QColor color); private: void DrawString(QWidget *widget, QString &text, QPaintEvent *event); QPixmap GetIconPixmap(WId handle, int idx); }; #endif // GLASS_H