1999-02-04 11:12:55 +01:00
|
|
|
/*
|
|
|
|
* Monitor definitions
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_MONITOR_H
|
|
|
|
#define __WINE_MONITOR_H
|
|
|
|
|
1999-04-01 10:16:08 +02:00
|
|
|
#include "windef.h"
|
|
|
|
|
1999-02-04 11:12:55 +01:00
|
|
|
struct tagMONITOR_DRIVER;
|
|
|
|
|
|
|
|
typedef struct tagMONITOR
|
|
|
|
{
|
1999-04-01 10:16:08 +02:00
|
|
|
void *pDriverData;
|
1999-02-04 11:12:55 +01:00
|
|
|
} MONITOR;
|
|
|
|
|
|
|
|
typedef struct tagMONITOR_DRIVER {
|
1999-04-01 10:16:08 +02:00
|
|
|
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);
|
1999-02-04 11:12:55 +01:00
|
|
|
} MONITOR_DRIVER;
|
|
|
|
|
1999-04-01 10:16:08 +02:00
|
|
|
extern MONITOR_DRIVER *MONITOR_Driver;
|
|
|
|
|
1999-02-04 11:12:55 +01:00
|
|
|
extern MONITOR MONITOR_PrimaryMonitor;
|
|
|
|
|
|
|
|
extern void MONITOR_Initialize(MONITOR *pMonitor);
|
|
|
|
extern void MONITOR_Finalize(MONITOR *pMonitor);
|
1999-04-01 10:16:08 +02:00
|
|
|
extern BOOL MONITOR_IsSingleWindow(MONITOR *pMonitor);
|
1999-02-04 11:12:55 +01:00
|
|
|
extern int MONITOR_GetWidth(MONITOR *pMonitor);
|
|
|
|
extern int MONITOR_GetHeight(MONITOR *pMonitor);
|
|
|
|
extern int MONITOR_GetDepth(MONITOR *pMonitor);
|
1999-04-01 10:16:08 +02:00
|
|
|
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);
|
1999-02-04 11:12:55 +01:00
|
|
|
|
|
|
|
#endif /* __WINE_MONITOR_H */
|
1999-04-01 10:16:08 +02:00
|
|
|
|