Provides information for the active displays.
More...
#include <kinc/global.h>
#include <stdbool.h>
Go to the source code of this file.
|
|
KINC_FUNC void | kinc_display_init (void) |
| | Allows retrieval of display values prior to the kinc_init call.
|
| KINC_FUNC int | kinc_primary_display (void) |
| | Retrieves the index of the primary display.
|
| KINC_FUNC int | kinc_count_displays (void) |
| | Retrieves the number of displays connected to the system.
|
| KINC_FUNC bool | kinc_display_available (int display_index) |
| | Checks whether the display index points to an available display.
|
| KINC_FUNC const char * | kinc_display_name (int display_index) |
| | Retrieves the system name of a display.
|
| KINC_FUNC kinc_display_mode_t | kinc_display_current_mode (int display_index) |
| | Retrieves the current mode of a display.
|
| KINC_FUNC int | kinc_display_count_available_modes (int display_index) |
| | Retrieves the number of available modes of a display.
|
| KINC_FUNC kinc_display_mode_t | kinc_display_available_mode (int display_index, int mode_index) |
| | Retrieves a specific mode of a display.
|
Provides information for the active displays.
◆ kinc_count_displays()
| KINC_FUNC int kinc_count_displays |
( |
void | | ) |
|
Retrieves the number of displays connected to the system.
All indices from 0 to kinc_count_displays() - 1 are legal display indices.
- Returns
- The number of displays connected to the system
◆ kinc_display_available()
| KINC_FUNC bool kinc_display_available |
( |
int | display_index | ) |
|
Checks whether the display index points to an available display.
- Parameters
-
| display_index | Index of the display to check |
- Returns
- Returns true if the index points to an available display, false otherwise
◆ kinc_display_available_mode()
| KINC_FUNC kinc_display_mode_t kinc_display_available_mode |
( |
int | display_index, |
|
|
int | mode_index ) |
Retrieves a specific mode of a display.
- Parameters
-
| display_index | Index of the display to retrieve the mode from |
| mode_index | Index of the mode to retrieve |
- Returns
- The display mode
◆ kinc_display_count_available_modes()
| KINC_FUNC int kinc_display_count_available_modes |
( |
int | display_index | ) |
|
Retrieves the number of available modes of a display.
- Parameters
-
| display_index | Index of the display to retrieve the modes count from |
- Returns
- The number of available modes of the display
◆ kinc_display_current_mode()
| KINC_FUNC kinc_display_mode_t kinc_display_current_mode |
( |
int | display_index | ) |
|
Retrieves the current mode of a display.
- Parameters
-
| display_index | Index of the display to retrieve the mode from |
- Returns
- The current display mode
◆ kinc_display_name()
| KINC_FUNC const char * kinc_display_name |
( |
int | display_index | ) |
|
Retrieves the system name of a display.
- Parameters
-
| display_index | Index of the display to retrieve the name from |
- Returns
- The system name of the display
◆ kinc_primary_display()
| KINC_FUNC int kinc_primary_display |
( |
void | | ) |
|
Retrieves the index of the primary display.
- Returns
- The index of the primary display