1 | /* $Id: monitor.h,v 1.1 1999-05-24 20:19:14 ktk Exp $ */
|
---|
2 |
|
---|
3 | /*
|
---|
4 | * Monitor definitions
|
---|
5 | *
|
---|
6 | */
|
---|
7 |
|
---|
8 | #ifndef __WINE_MONITOR_H
|
---|
9 | #define __WINE_MONITOR_H
|
---|
10 |
|
---|
11 | #include "windef.h"
|
---|
12 |
|
---|
13 | struct tagMONITOR_DRIVER;
|
---|
14 |
|
---|
15 | typedef struct tagMONITOR
|
---|
16 | {
|
---|
17 | void *pDriverData;
|
---|
18 | } MONITOR;
|
---|
19 |
|
---|
20 | typedef struct tagMONITOR_DRIVER {
|
---|
21 | void (*pInitialize)(struct tagMONITOR *);
|
---|
22 | void (*pFinalize)(struct tagMONITOR *);
|
---|
23 | BOOL (*pIsSingleWindow)(struct tagMONITOR *);
|
---|
24 | int (*pGetWidth)(struct tagMONITOR *);
|
---|
25 | int (*pGetHeight)(struct tagMONITOR *);
|
---|
26 | int (*pGetDepth)(struct tagMONITOR *);
|
---|
27 | BOOL (*pGetScreenSaveActive)(struct tagMONITOR *);
|
---|
28 | void (*pSetScreenSaveActive)(struct tagMONITOR *, BOOL);
|
---|
29 | int (*pGetScreenSaveTimeout)(struct tagMONITOR *);
|
---|
30 | void (*pSetScreenSaveTimeout)(struct tagMONITOR *, int);
|
---|
31 | } MONITOR_DRIVER;
|
---|
32 |
|
---|
33 | extern MONITOR_DRIVER *MONITOR_Driver;
|
---|
34 |
|
---|
35 | extern MONITOR MONITOR_PrimaryMonitor;
|
---|
36 |
|
---|
37 | extern void MONITOR_Initialize(MONITOR *pMonitor);
|
---|
38 | extern void MONITOR_Finalize(MONITOR *pMonitor);
|
---|
39 | extern BOOL MONITOR_IsSingleWindow(MONITOR *pMonitor);
|
---|
40 | extern int MONITOR_GetWidth(MONITOR *pMonitor);
|
---|
41 | extern int MONITOR_GetHeight(MONITOR *pMonitor);
|
---|
42 | extern int MONITOR_GetDepth(MONITOR *pMonitor);
|
---|
43 | extern BOOL MONITOR_GetScreenSaveActive(MONITOR *pMonitor);
|
---|
44 | extern void MONITOR_SetScreenSaveActive(MONITOR *pMonitor, BOOL bActivate);
|
---|
45 | extern int MONITOR_GetScreenSaveTimeout(MONITOR *pMonitor);
|
---|
46 | extern void MONITOR_SetScreenSaveTimeout(MONITOR *pMonitor, int nTimeout);
|
---|
47 |
|
---|
48 | #endif /* __WINE_MONITOR_H */
|
---|
49 |
|
---|