JWM Source Documentation
screen.h File Reference
Header for screen functions. More...
Go to the source code of this file.
Data Structures | |
| struct | ScreenType |
| Structure to contain information about a screen. More... | |
Typedefs | |
| typedef struct ScreenType | ScreenType |
| Structure to contain information about a screen. | |
Functions | |
| void | InitializeScreens () |
| void | StartupScreens () |
| void | ShutdownScreens () |
| void | DestroyScreens () |
| const ScreenType * | GetCurrentScreen (int x, int y) |
| Get the screen of the specified coordinates. | |
| const ScreenType * | GetMouseScreen () |
| Get the screen containing the mouse. | |
| const ScreenType * | GetScreen (int index) |
| Get the screen of the specified index. | |
| int | GetScreenCount () |
| Get the number of screens. | |
Detailed Description
Header for screen functions.
- Date:
- 2005-2006
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.
Definition in file screen.h.
Typedef Documentation
| typedef struct ScreenType ScreenType |
Structure to contain information about a screen.
Function Documentation
| void DestroyScreens | ( | ) |
| const ScreenType* GetCurrentScreen | ( | int | x, |
| int | y | ||
| ) |
Get the screen of the specified coordinates.
- Parameters:
-
x The x-coordinate. y The y-coordinate.
- Returns:
- The screen.
| const ScreenType* GetMouseScreen | ( | ) |
Get the screen containing the mouse.
- Returns:
- The screen containing the mouse.
| const ScreenType* GetScreen | ( | int | index | ) |
Get the screen of the specified index.
- Parameters:
-
index The screen index (0 based).
- Returns:
- The screen.
| int GetScreenCount | ( | ) |
Get the number of screens.
- Returns:
- The number of screens.
| void InitializeScreens | ( | ) |
| void ShutdownScreens | ( | ) |
| void StartupScreens | ( | ) |