#pragma once #include #include /*! \file display.h \brief Provides information for the active displays. */ #ifdef __cplusplus extern "C" { #endif typedef struct kinc_display_mode { int x; int y; int width; int height; int pixels_per_inch; int frequency; int bits_per_pixel; } kinc_display_mode_t; /// /// Allows retrieval of display values prior to the kinc_init call. /// KINC_FUNC void kinc_display_init(void); /// /// Retrieves the index of the primary display. /// /// The index of the primary display KINC_FUNC int kinc_primary_display(void); /// /// Retrieves the number of displays connected to the system. /// /// /// All indices from 0 to kinc_count_displays() - 1 are legal display indices. /// /// The number of displays connected to the system KINC_FUNC int kinc_count_displays(void); /// /// Checks whether the display index points to an available display. /// /// Index of the display to check /// /// Returns true if the index points to an available display, /// false otherwise /// KINC_FUNC bool kinc_display_available(int display_index); /// /// Retrieves the system name of a display. /// /// Index of the display to retrieve the name from /// The system name of the display KINC_FUNC const char *kinc_display_name(int display_index); /// /// Retrieves the current mode of a display. /// /// Index of the display to retrieve the mode from /// The current display mode KINC_FUNC kinc_display_mode_t kinc_display_current_mode(int display_index); /// /// Retrieves the number of available modes of a display. /// /// Index of the display to retrieve the modes count from /// The number of available modes of the display KINC_FUNC int kinc_display_count_available_modes(int display_index); /// /// Retrieves a specific mode of a display. /// /// Index of the display to retrieve the mode from /// Index of the mode to retrieve /// The display mode KINC_FUNC kinc_display_mode_t kinc_display_available_mode(int display_index, int mode_index); #ifdef __cplusplus } #endif