mirror of
https://github.com/KDE/latte-dock.git
synced 2024-12-25 19:21:41 +03:00
132 lines
2.2 KiB
C++
132 lines
2.2 KiB
C++
#include "windowinfowrap.h"
|
|
|
|
namespace Latte {
|
|
|
|
WindowInfoWrap::WindowInfoWrap()
|
|
: m_isValid(false)
|
|
, m_isActive(false)
|
|
, m_isMinimized(false)
|
|
, m_isMaximized(false)
|
|
, m_isFullscreen(false)
|
|
, m_isOnCurrentDesktop(false)
|
|
, m_wid(0)
|
|
{
|
|
|
|
}
|
|
|
|
WindowInfoWrap::WindowInfoWrap(const WindowInfoWrap &other)
|
|
{
|
|
*this = other;
|
|
}
|
|
|
|
WindowInfoWrap &WindowInfoWrap::operator=(const WindowInfoWrap &rhs)
|
|
{
|
|
m_isValid = rhs.m_isValid;
|
|
m_isActive = rhs.m_isActive;
|
|
m_isMinimized = rhs.m_isMinimized;
|
|
m_isMaximized = rhs.m_isMaximized;
|
|
m_isFullscreen = rhs.m_isFullscreen;
|
|
m_isOnCurrentDesktop = rhs.m_isOnCurrentDesktop;
|
|
m_geometry = rhs.m_geometry;
|
|
m_wid = rhs.m_wid;
|
|
|
|
return *this;
|
|
}
|
|
|
|
bool WindowInfoWrap::operator==(const WindowInfoWrap &rhs) const
|
|
{
|
|
return m_wid == rhs.m_wid;
|
|
}
|
|
|
|
bool WindowInfoWrap::operator<(const WindowInfoWrap &rhs) const
|
|
{
|
|
return m_wid < rhs.m_wid;
|
|
}
|
|
|
|
bool WindowInfoWrap::operator>(const WindowInfoWrap &rhs) const
|
|
{
|
|
return m_wid > rhs.m_wid;
|
|
}
|
|
|
|
bool WindowInfoWrap::isValid() const
|
|
{
|
|
return m_isValid;
|
|
}
|
|
|
|
void WindowInfoWrap::setIsValid(bool isValid)
|
|
{
|
|
m_isValid = isValid;
|
|
}
|
|
|
|
bool WindowInfoWrap::isActive() const
|
|
{
|
|
return m_isActive;
|
|
}
|
|
|
|
void WindowInfoWrap::setIsActive(bool isActive)
|
|
{
|
|
m_isActive = isActive;
|
|
}
|
|
|
|
bool WindowInfoWrap::isMinimized() const
|
|
{
|
|
return m_isMinimized;
|
|
}
|
|
|
|
void WindowInfoWrap::setIsMinimized(bool isMinimized)
|
|
{
|
|
m_isMinimized = isMinimized;
|
|
}
|
|
|
|
bool WindowInfoWrap::isMaximized() const
|
|
{
|
|
return m_isMaximized;
|
|
}
|
|
|
|
void WindowInfoWrap::setIsMaximized(bool isMaximized)
|
|
{
|
|
m_isMaximized = isMaximized;
|
|
}
|
|
|
|
bool WindowInfoWrap::isFullscreen() const
|
|
{
|
|
return m_isFullscreen;
|
|
}
|
|
|
|
void WindowInfoWrap::setIsFullscreen(bool isFullscreen)
|
|
{
|
|
m_isFullscreen = isFullscreen;
|
|
}
|
|
|
|
bool WindowInfoWrap::isOnCurrentDesktop() const
|
|
{
|
|
return m_isOnCurrentDesktop;
|
|
}
|
|
|
|
void WindowInfoWrap::setIsOnCurrentDesktop(bool isOnCurrentDesktop)
|
|
{
|
|
m_isOnCurrentDesktop = isOnCurrentDesktop;
|
|
}
|
|
|
|
QRect WindowInfoWrap::geometry() const
|
|
{
|
|
return m_geometry;
|
|
}
|
|
|
|
void WindowInfoWrap::setGeometry(const QRect &geometry)
|
|
{
|
|
m_geometry = geometry;
|
|
}
|
|
|
|
WId WindowInfoWrap::wid() const
|
|
{
|
|
return m_wid;
|
|
}
|
|
|
|
void WindowInfoWrap::setWid(WId wid)
|
|
{
|
|
m_wid = wid;
|
|
}
|
|
|
|
}
|