Kore
Loading...
Searching...
No Matches
display.h
Go to the documentation of this file.
1#pragma once
2
3#include <kinc/global.h>
4
5#include <stdbool.h>
6
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15typedef struct kinc_display_mode {
16 int x;
17 int y;
18 int width;
19 int height;
20 int useableWidth;
21 int useableHeight;
22 int pixels_per_inch;
23 int frequency;
24 int bits_per_pixel;
25} kinc_display_mode_t;
26
30KINC_FUNC void kinc_display_init(void);
31
36KINC_FUNC int kinc_primary_display(void);
37
45KINC_FUNC int kinc_count_displays(void);
46
55KINC_FUNC bool kinc_display_available(int display_index);
56
62KINC_FUNC const char *kinc_display_name(int display_index);
63
69KINC_FUNC kinc_display_mode_t kinc_display_current_mode(int display_index);
70
76KINC_FUNC int kinc_display_count_available_modes(int display_index);
77
84KINC_FUNC kinc_display_mode_t kinc_display_available_mode(int display_index, int mode_index);
85
86#ifdef __cplusplus
87}
88#endif
KINC_FUNC int kinc_primary_display(void)
Retrieves the index of the primary display.
KINC_FUNC kinc_display_mode_t kinc_display_available_mode(int display_index, int mode_index)
Retrieves a specific mode of a display.
KINC_FUNC void kinc_display_init(void)
Allows retrieval of display values prior to the kinc_init call.
KINC_FUNC int kinc_count_displays(void)
Retrieves the number of displays connected to the system.
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_current_mode(int display_index)
Retrieves the current mode of a display.
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.
Provides basic functionality that's used all over the place. There's usually no need to manually incl...
Definition display.h:15