1 |
/* |
2 |
* PearPC |
3 |
* syswin.h |
4 |
* |
5 |
* Copyright (C) 2004 Stefan Weyergraf |
6 |
* |
7 |
* This program is free software; you can redistribute it and/or modify |
8 |
* it under the terms of the GNU General Public License version 2 as |
9 |
* published by the Free Software Foundation. |
10 |
* |
11 |
* This program is distributed in the hope that it will be useful, |
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
* GNU General Public License for more details. |
15 |
* |
16 |
* You should have received a copy of the GNU General Public License |
17 |
* along with this program; if not, write to the Free Software |
18 |
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 |
*/ |
20 |
|
21 |
#ifndef __SYSWIN_H__ |
22 |
#define __SYSWIN_H__ |
23 |
|
24 |
#include "system/systhread.h" |
25 |
#include "system/display.h" |
26 |
|
27 |
extern HWND gHWNDMain; |
28 |
extern CRITICAL_SECTION gDrawCS; |
29 |
extern int gMenuHeight; |
30 |
extern BITMAPINFO gMenuBitmapInfo; |
31 |
extern byte *menuData; |
32 |
|
33 |
class Win32Display: public SystemDisplay |
34 |
{ |
35 |
char mCurTitle[200]; |
36 |
char *mTitle; |
37 |
HCURSOR mInvisibleCursor; |
38 |
HCURSOR mVisibleCursor; |
39 |
|
40 |
public: |
41 |
DisplayCharacteristics mWinChar; |
42 |
|
43 |
Win32Display(const char *name, const DisplayCharacteristics &chr, int redraw_ms); |
44 |
virtual ~Win32Display(); |
45 |
virtual void getHostCharacteristics(Container &modes); |
46 |
virtual void convertCharacteristicsToHost(DisplayCharacteristics &aHostChar, const DisplayCharacteristics &aClientChar); |
47 |
virtual bool changeResolution(const DisplayCharacteristics &aHostChar); |
48 |
virtual int toString(char *buf, int buflen) const; |
49 |
virtual void finishMenu(); |
50 |
virtual void updateTitle(); |
51 |
virtual void setMouseGrab(bool enable); |
52 |
virtual void displayShow(); |
53 |
void initCursor(); |
54 |
void showCursor(bool visible); |
55 |
void createBitmap(); |
56 |
}; |
57 |
|
58 |
#endif |