mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-13 05:17:48 +03:00
60 lines
1.3 KiB
C++
60 lines
1.3 KiB
C++
#ifndef WINDOWINFOWRAP_H
|
|
#define WINDOWINFOWRAP_H
|
|
|
|
#include <QObject>
|
|
#include <QWidget>
|
|
#include <QRect>
|
|
|
|
namespace Latte {
|
|
|
|
class WindowInfoWrap {
|
|
|
|
public:
|
|
explicit WindowInfoWrap();
|
|
WindowInfoWrap(const WindowInfoWrap &other);
|
|
|
|
WindowInfoWrap &operator=(const WindowInfoWrap &rhs);
|
|
|
|
bool operator==(const WindowInfoWrap &rhs) const;
|
|
bool operator<(const WindowInfoWrap &rhs) const;
|
|
bool operator>(const WindowInfoWrap &rhs) const;
|
|
|
|
bool isValid() const;
|
|
void setIsValid(bool isValid);
|
|
|
|
bool isActive() const;
|
|
void setIsActive(bool isActive);
|
|
|
|
bool isMinimized() const;
|
|
void setIsMinimized(bool isMinimized);
|
|
|
|
bool isMaximized() const;
|
|
void setIsMaximized(bool isMaximized);
|
|
|
|
bool isFullscreen() const;
|
|
void setIsFullscreen(bool isFullscreen);
|
|
|
|
bool isOnCurrentDesktop() const;
|
|
void setIsOnCurrentDesktop(bool isOnCurrentDesktop);
|
|
|
|
QRect geometry() const;
|
|
void setGeometry(const QRect &geometry);
|
|
|
|
WId wid() const;
|
|
void setWid(WId wid);
|
|
|
|
private:
|
|
bool m_isValid : 1;
|
|
bool m_isActive : 1;
|
|
bool m_isMinimized : 1;
|
|
bool m_isMaximized : 1;
|
|
bool m_isFullscreen : 1;
|
|
bool m_isOnCurrentDesktop : 1;
|
|
QRect m_geometry;
|
|
WId m_wid;
|
|
};
|
|
|
|
}
|
|
|
|
#endif // WINDOWINFOWRAP_H
|