summaryrefslogtreecommitdiffstats
path: root/src/util/clientGUIUtils_Win32.cpp
blob: 1b4d2ae924d4bf27d4f5b8bbea2c702a89075e4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

#include "clientGUIUtils.h"
#include <qwidget.h>

struct BlankScreen_Sysdep {

    bool locked;
	QWidget* blankwin;

    QString lockMsg;
    int blackColor, whiteColor;
    int offX, offY;
};

BlankScreen::BlankScreen()
{
	_sysdep = new BlankScreen_Sysdep;
    _sysdep->blankwin = new QWidget(0, Qt::X11BypassWindowManagerHint | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
    _sysdep->blankwin->setWindowState(Qt::WindowFullScreen);
    _sysdep->blankwin->show();
}

BlankScreen::~BlankScreen()
{
    delete _sysdep;
}

void BlankScreen::draw(bool force)
{
    
}

bool BlankScreen::lock()
{
   return true;
}

bool BlankScreen::lock_inputs()
{
    return true;
}

bool BlankScreen::unlock()
{
    return true;
}