1 | /* $Id: monitor.h,v 1.2 1999-11-27 14:15:42 cbratschi 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 | #ifdef __cplusplus
|
---|
14 | extern "C" {
|
---|
15 | #endif
|
---|
16 |
|
---|
17 | struct tagMONITOR_DRIVER;
|
---|
18 |
|
---|
19 | typedef struct tagMONITOR
|
---|
20 | {
|
---|
21 | void *pDriverData;
|
---|
22 | } MONITOR;
|
---|
23 |
|
---|
24 | typedef struct tagMONITOR_DRIVER {
|
---|
25 | void (*pInitialize)(struct tagMONITOR *);
|
---|
26 | void (*pFinalize)(struct tagMONITOR *);
|
---|
27 | BOOL (*pIsSingleWindow)(struct tagMONITOR *);
|
---|
28 | int (*pGetWidth)(struct tagMONITOR *);
|
---|
29 | int (*pGetHeight)(struct tagMONITOR *);
|
---|
30 | int (*pGetDepth)(struct tagMONITOR *);
|
---|
31 | BOOL (*pGetScreenSaveActive)(struct tagMONITOR *);
|
---|
32 | void (*pSetScreenSaveActive)(struct tagMONITOR *, BOOL);
|
---|
33 | int (*pGetScreenSaveTimeout)(struct tagMONITOR *);
|
---|
34 | void (*pSetScreenSaveTimeout)(struct tagMONITOR *, int);
|
---|
35 | } MONITOR_DRIVER;
|
---|
36 |
|
---|
37 | extern MONITOR_DRIVER *MONITOR_Driver;
|
---|
38 |
|
---|
39 | extern MONITOR MONITOR_PrimaryMonitor;
|
---|
40 |
|
---|
41 | extern void MONITOR_Initialize(MONITOR *pMonitor);
|
---|
42 | extern void MONITOR_Finalize(MONITOR *pMonitor);
|
---|
43 | extern BOOL MONITOR_IsSingleWindow(MONITOR *pMonitor);
|
---|
44 | extern int MONITOR_GetWidth(MONITOR *pMonitor);
|
---|
45 | extern int MONITOR_GetHeight(MONITOR *pMonitor);
|
---|
46 | extern int MONITOR_GetDepth(MONITOR *pMonitor);
|
---|
47 | extern BOOL MONITOR_GetScreenSaveActive(MONITOR *pMonitor);
|
---|
48 | extern void MONITOR_SetScreenSaveActive(MONITOR *pMonitor, BOOL bActivate);
|
---|
49 | extern int MONITOR_GetScreenSaveTimeout(MONITOR *pMonitor);
|
---|
50 | extern void MONITOR_SetScreenSaveTimeout(MONITOR *pMonitor, int nTimeout);
|
---|
51 |
|
---|
52 | #ifdef __cplusplus
|
---|
53 | } // extern "C"
|
---|
54 | #endif
|
---|
55 |
|
---|
56 | #endif /* __WINE_MONITOR_H */
|
---|
57 |
|
---|