theshell/shell/window.h

71 lines
1.7 KiB
C
Raw Normal View History

2017-08-05 01:20:02 -04:00
/****************************************
2018-01-08 02:26:23 -05:00
*
2017-08-05 01:20:02 -04:00
* theShell - Desktop Environment
2019-01-01 05:52:05 -05:00
* Copyright (C) 2019 Victor Tran
2017-08-05 01:20:02 -04:00
*
* 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/>.
2018-01-08 02:26:23 -05:00
*
2017-08-05 01:20:02 -04:00
* *************************************/
2016-03-17 04:46:40 -04:00
#ifndef WINDOW_H
#define WINDOW_H
#include <QObject>
#include <QIcon>
2016-03-17 04:46:40 -04:00
//#include <X11/Xlib.h>
typedef unsigned long Window;
2016-07-14 08:37:19 -04:00
class WmWindow
2016-03-17 04:46:40 -04:00
{
2016-07-14 08:37:19 -04:00
2016-03-17 04:46:40 -04:00
public:
2016-07-14 08:37:19 -04:00
explicit WmWindow();
2016-03-17 04:46:40 -04:00
2016-07-14 08:37:19 -04:00
QString title() const;
2016-03-17 04:46:40 -04:00
void setTitle(QString);
2016-07-14 08:37:19 -04:00
unsigned long PID() const;
void setPID(unsigned long);
2016-07-14 08:37:19 -04:00
Window WID() const;
void setWID(Window);
2016-07-14 08:37:19 -04:00
QIcon icon() const;
void setIcon(QIcon);
2016-07-14 08:37:19 -04:00
bool attention() const;
void setAttention(bool attention);
2016-07-14 08:37:19 -04:00
int desktop() const;
void setDesktop(int desktop);
2016-07-14 08:37:19 -04:00
bool isMinimized() const;
2016-06-30 02:07:29 -04:00
void setMinimized(bool minimized);
2017-08-04 07:18:42 -04:00
QRect geometry() const;
void setGeometry(QRect geometry);
2016-03-17 04:46:40 -04:00
signals:
public slots:
private:
QString winTitle = "";
int id = 0;
unsigned long pid = 0;
Window wid = 0;
QIcon ic;
bool attn = false;
int dk = 0;
2016-06-30 02:07:29 -04:00
bool min = false;
2017-08-04 07:18:42 -04:00
QRect geo;
2016-03-17 04:46:40 -04:00
};
#endif // WINDOW_H