blob: 2d9a351571b2f04610b94da1c6cd0a44b893835c (
plain)
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
48
49
50
51
52
53
|
/**
* @file screen.h
* @author Joe Wingbermuehle
* @date 2005-2006
*
* @brief Header for screen functions.
*
* Note that screen here refers to physical monitors. Screens are
* determined using the xinerama extension (if available). There will
* always be at least one screen.
*
*/
#ifndef SCREEN_H
#define SCREEN_H
/** Structure to contain information about a screen. */
typedef struct ScreenType {
int index; /**< The index of this screen. */
int x, y; /**< The location of this screen. */
int width, height; /**< The size of this screen. */
} ScreenType;
void InitializeScreens();
void StartupScreens();
void ShutdownScreens();
void DestroyScreens();
/** Get the screen of the specified coordinates.
* @param x The x-coordinate.
* @param y The y-coordinate.
* @return The screen.
*/
const ScreenType *GetCurrentScreen(int x, int y);
/** Get the screen containing the mouse.
* @return The screen containing the mouse.
*/
const ScreenType *GetMouseScreen();
/** Get the screen of the specified index.
* @param index The screen index (0 based).
* @return The screen.
*/
const ScreenType *GetScreen(int index);
/** Get the number of screens.
* @return The number of screens.
*/
int GetScreenCount();
#endif
|