1#include "DesktopXLib.h"
5CDesktopXLib::CDesktopXLib(QObject *parent) :
CDesktop(parent)
16int CDesktopXLib::Width()
18 return CDisplay::Instance()->Width();
21int CDesktopXLib::Height()
23 return CDisplay::Instance()->Height();
26QImage CDesktopXLib::GetDesktop()
28 return CDisplay::Instance()->GetDisplay();
31QImage CDesktopXLib::GetDesktop(
int x,
int y,
int width,
int height)
33 return CDisplay::Instance()->GetDisplay(x, y, width, height);
36QImage CDesktopXLib::GetCursor(QPoint &pos, QPoint &posHot)
38 return CDisplay::Instance()->GetCursor(pos, posHot);
41QPoint CDesktopXLib::GetCursorPosition()
43 return CDisplay::Instance()->GetCursorPosition();
46bool CDesktopXLib::GetHasCursor()
const
48 return CDisplay::Instance()->GetHasCursor();
51void CDesktopXLib::SetHasCursor(
bool hasCursor)
53 return CDisplay::Instance()->SetHasCursor(hasCursor);