theshell/window.cpp

91 lines
1.8 KiB
C++
Raw Normal View History

2017-08-05 15:20:02 +10:00
/****************************************
*
* theShell - Desktop Environment
* Copyright (C) 2017 Victor Tran
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* *************************************/
2016-03-17 19:46:40 +11:00
#include "window.h"
2016-07-14 22:37:19 +10:00
WmWindow::WmWindow()
2016-03-17 19:46:40 +11:00
{
}
void WmWindow::setTitle(QString title) {
winTitle = title;
}
2016-07-14 22:37:19 +10:00
QString WmWindow::title() const {
2016-03-17 19:46:40 +11:00
return winTitle;
}
void WmWindow::setPID(unsigned long id) {
2016-03-17 19:46:40 +11:00
this->id = id;
}
2016-07-14 22:37:19 +10:00
unsigned long WmWindow::PID() const {
2016-03-17 19:46:40 +11:00
return id;
}
void WmWindow::setWID(Window wid) {
this->wid = wid;
}
2016-07-14 22:37:19 +10:00
Window WmWindow::WID() const {
return this->wid;
}
void WmWindow::setIcon(QIcon icon) {
this->ic = icon;
}
2016-07-14 22:37:19 +10:00
QIcon WmWindow::icon() const {
return ic;
}
2016-07-14 22:37:19 +10:00
bool WmWindow::attention() const {
return attn;
}
void WmWindow::setAttention(bool attention) {
attn = attention;
}
2016-07-14 22:37:19 +10:00
int WmWindow::desktop() const {
return dk;
}
void WmWindow::setDesktop(int desktop) {
dk = desktop;
}
2016-06-30 16:07:29 +10:00
2016-07-14 22:37:19 +10:00
bool WmWindow::isMinimized() const {
2016-06-30 16:07:29 +10:00
return min;
}
void WmWindow::setMinimized(bool minimized) {
min = minimized;
}
2017-08-04 21:18:42 +10:00
void WmWindow::setGeometry(QRect geometry) {
geo = geometry;
}
QRect WmWindow::geometry() const {
return geo;
}