1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-26 11:21:40 +03:00
latte-dock/app/windowinfowrap.cpp

132 lines
2.2 KiB
C++
Raw Normal View History

2016-12-28 10:55:54 +03:00
#include "windowinfowrap.h"
2016-12-30 10:24:04 +03:00
namespace Latte {
2016-12-28 10:55:54 +03:00
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;
}
2016-12-30 10:24:04 +03:00
bool WindowInfoWrap::operator==(const WindowInfoWrap &rhs) const
2016-12-28 10:55:54 +03:00
{
return m_wid == rhs.m_wid;
}
2016-12-30 10:24:04 +03:00
bool WindowInfoWrap::operator<(const WindowInfoWrap &rhs) const
2016-12-28 10:55:54 +03:00
{
return m_wid < rhs.m_wid;
}
2016-12-30 10:24:04 +03:00
bool WindowInfoWrap::operator>(const WindowInfoWrap &rhs) const
2016-12-28 10:55:54 +03:00
{
return m_wid > rhs.m_wid;
}
2016-12-30 10:24:04 +03:00
bool WindowInfoWrap::isValid() const
2016-12-28 10:55:54 +03:00
{
return m_isValid;
}
2016-12-30 10:24:04 +03:00
void WindowInfoWrap::setIsValid(bool isValid)
2016-12-28 10:55:54 +03:00
{
m_isValid = isValid;
}
2016-12-30 10:24:04 +03:00
bool WindowInfoWrap::isActive() const
2016-12-28 10:55:54 +03:00
{
return m_isActive;
}
2016-12-30 10:24:04 +03:00
void WindowInfoWrap::setIsActive(bool isActive)
2016-12-28 10:55:54 +03:00
{
m_isActive = isActive;
}
2016-12-30 10:24:04 +03:00
bool WindowInfoWrap::isMinimized() const
2016-12-28 10:55:54 +03:00
{
return m_isMinimized;
}
2016-12-30 10:24:04 +03:00
void WindowInfoWrap::setIsMinimized(bool isMinimized)
2016-12-28 10:55:54 +03:00
{
m_isMinimized = isMinimized;
}
2016-12-30 10:24:04 +03:00
bool WindowInfoWrap::isMaximized() const
2016-12-28 10:55:54 +03:00
{
return m_isMaximized;
}
2016-12-30 10:24:04 +03:00
void WindowInfoWrap::setIsMaximized(bool isMaximized)
2016-12-28 10:55:54 +03:00
{
m_isMaximized = isMaximized;
}
2016-12-30 10:24:04 +03:00
bool WindowInfoWrap::isFullscreen() const
2016-12-28 10:55:54 +03:00
{
return m_isFullscreen;
}
2016-12-30 10:24:04 +03:00
void WindowInfoWrap::setIsFullscreen(bool isFullscreen)
2016-12-28 10:55:54 +03:00
{
m_isFullscreen = isFullscreen;
}
2016-12-30 10:24:04 +03:00
bool WindowInfoWrap::isOnCurrentDesktop() const
2016-12-28 10:55:54 +03:00
{
return m_isOnCurrentDesktop;
}
2016-12-30 10:24:04 +03:00
void WindowInfoWrap::setIsOnCurrentDesktop(bool isOnCurrentDesktop)
2016-12-28 10:55:54 +03:00
{
m_isOnCurrentDesktop = isOnCurrentDesktop;
}
2016-12-30 10:24:04 +03:00
QRect WindowInfoWrap::geometry() const
2016-12-28 10:55:54 +03:00
{
return m_geometry;
}
2016-12-30 10:24:04 +03:00
void WindowInfoWrap::setGeometry(const QRect &geometry)
2016-12-28 10:55:54 +03:00
{
m_geometry = geometry;
}
2016-12-30 10:24:04 +03:00
WId WindowInfoWrap::wid() const
2016-12-28 10:55:54 +03:00
{
return m_wid;
}
2016-12-30 10:24:04 +03:00
void WindowInfoWrap::setWid(WId wid)
2016-12-28 10:55:54 +03:00
{
m_wid = wid;
}
}