source: trunk/include/win/monitor.h

Last change on this file was 21916, checked in by dmik, 14 years ago

Merge branch gcc-kmk to trunk.

File size: 1.5 KB
Line 
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
14extern "C" {
15#endif
16
17struct tagMONITOR_DRIVER;
18
19typedef struct tagMONITOR
20{
21 void *pDriverData;
22} MONITOR;
23
24typedef 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
37extern MONITOR_DRIVER *MONITOR_Driver;
38
39extern MONITOR MONITOR_PrimaryMonitor;
40
41extern void MONITOR_Initialize(MONITOR *pMonitor);
42extern void MONITOR_Finalize(MONITOR *pMonitor);
43extern BOOL MONITOR_IsSingleWindow(MONITOR *pMonitor);
44extern int MONITOR_GetWidth(MONITOR *pMonitor);
45extern int MONITOR_GetHeight(MONITOR *pMonitor);
46extern int MONITOR_GetDepth(MONITOR *pMonitor);
47extern BOOL MONITOR_GetScreenSaveActive(MONITOR *pMonitor);
48extern void MONITOR_SetScreenSaveActive(MONITOR *pMonitor, BOOL bActivate);
49extern int MONITOR_GetScreenSaveTimeout(MONITOR *pMonitor);
50extern void MONITOR_SetScreenSaveTimeout(MONITOR *pMonitor, int nTimeout);
51
52#ifdef __cplusplus
53} // extern "C"
54#endif
55
56#endif /* __WINE_MONITOR_H */
57
Note: See TracBrowser for help on using the repository browser.