File: monitor.h

package info (click to toggle)
wine 0.0.20000109-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 22,652 kB
  • ctags: 59,973
  • sloc: ansic: 342,054; perl: 3,697; yacc: 3,059; tcl: 2,647; makefile: 2,466; lex: 1,494; sh: 394
file content (47 lines) | stat: -rw-r--r-- 1,438 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * Monitor definitions
 *
 */

#ifndef __WINE_MONITOR_H
#define __WINE_MONITOR_H

#include "windef.h"

struct tagMONITOR_DRIVER;

typedef struct tagMONITOR 
{
  void *pDriverData;
} MONITOR;

typedef struct tagMONITOR_DRIVER {
  void   (*pInitialize)(struct tagMONITOR *);
  void   (*pFinalize)(struct tagMONITOR *);
  BOOL   (*pIsSingleWindow)(struct tagMONITOR *);
  int    (*pGetWidth)(struct tagMONITOR *);
  int    (*pGetHeight)(struct tagMONITOR *);
  int    (*pGetDepth)(struct tagMONITOR *);
  BOOL   (*pGetScreenSaveActive)(struct tagMONITOR *);
  void   (*pSetScreenSaveActive)(struct tagMONITOR *, BOOL);
  int    (*pGetScreenSaveTimeout)(struct tagMONITOR *);
  void   (*pSetScreenSaveTimeout)(struct tagMONITOR *, int);
} MONITOR_DRIVER;

extern MONITOR_DRIVER *MONITOR_Driver;

extern MONITOR MONITOR_PrimaryMonitor;

extern void MONITOR_Initialize(MONITOR *pMonitor);
extern void MONITOR_Finalize(MONITOR *pMonitor);
extern BOOL MONITOR_IsSingleWindow(MONITOR *pMonitor);
extern int MONITOR_GetWidth(MONITOR *pMonitor);
extern int MONITOR_GetHeight(MONITOR *pMonitor);
extern int MONITOR_GetDepth(MONITOR *pMonitor);
extern BOOL MONITOR_GetScreenSaveActive(MONITOR *pMonitor);
extern void MONITOR_SetScreenSaveActive(MONITOR *pMonitor, BOOL bActivate);
extern int MONITOR_GetScreenSaveTimeout(MONITOR *pMonitor);
extern void MONITOR_SetScreenSaveTimeout(MONITOR *pMonitor, int nTimeout);

#endif /* __WINE_MONITOR_H */