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 )
2017-01-02 09:04:10 +03:00
, m_isPlasmaDesktop ( false )
2016-12-28 10:55:54 +03:00
, 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 ;
2017-01-02 09:04:10 +03:00
m_isPlasmaDesktop = rhs . m_isPlasmaDesktop ;
2016-12-28 10:55:54 +03:00
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 ;
}
2017-01-02 09:04:10 +03:00
bool WindowInfoWrap : : isPlasmaDesktop ( ) const
2016-12-28 10:55:54 +03:00
{
2017-01-02 09:04:10 +03:00
return m_isPlasmaDesktop ;
2016-12-28 10:55:54 +03:00
}
2017-01-02 09:04:10 +03:00
void WindowInfoWrap : : setIsPlasmaDesktop ( bool isPlasmaDesktop )
2016-12-28 10:55:54 +03:00
{
2017-01-02 09:04:10 +03:00
m_isPlasmaDesktop = isPlasmaDesktop ;
2016-12-28 10:55:54 +03:00
}
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 ;
}
2017-01-02 09:04:10 +03:00
void WindowInfoWrap : : setWid ( WId wid )
2016-12-28 10:55:54 +03:00
{
2017-01-02 09:04:10 +03:00
m_wid = wid ;
2016-12-28 10:55:54 +03:00
}
2017-01-02 09:04:10 +03:00
WId WindowInfoWrap : : wid ( ) const
2016-12-28 10:55:54 +03:00
{
2017-01-02 09:04:10 +03:00
return m_wid ;
2016-12-28 10:55:54 +03:00
}
2016-12-30 10:16:27 +03:00
}