Kore 3
Loading...
Searching...
No Matches
display.h File Reference

Provides information for the active displays. More...

#include <kore3/global.h>
#include <stdbool.h>

Go to the source code of this file.

Data Structures

struct  kore_display_mode

Typedefs

typedef struct kore_display_mode kore_display_mode

Functions

KORE_FUNC void kore_display_init (void)
 Allows retrieval of display values prior to the kore_init call.
KORE_FUNC int kore_primary_display (void)
 Retrieves the index of the primary display.
KORE_FUNC int kore_count_displays (void)
 Retrieves the number of displays connected to the system.
KORE_FUNC bool kore_display_available (int display_index)
 Checks whether the display index points to an available display.
KORE_FUNC const char * kore_display_name (int display_index)
 Retrieves the system name of a display.
KORE_FUNC kore_display_mode kore_display_current_mode (int display_index)
 Retrieves the current mode of a display.
KORE_FUNC int kore_display_count_available_modes (int display_index)
 Retrieves the number of available modes of a display.
KORE_FUNC kore_display_mode kore_display_available_mode (int display_index, int mode_index)
 Retrieves a specific mode of a display.

Detailed Description

Provides information for the active displays.

Function Documentation

◆ kore_count_displays()

KORE_FUNC int kore_count_displays ( void )

Retrieves the number of displays connected to the system.

All indices from 0 to kore_count_displays() - 1 are legal display indices.

Returns
The number of displays connected to the system

◆ kore_display_available()

KORE_FUNC bool kore_display_available ( int display_index)

Checks whether the display index points to an available display.

Parameters
display_indexIndex of the display to check
Returns
Returns true if the index points to an available display, false otherwise

◆ kore_display_available_mode()

KORE_FUNC kore_display_mode kore_display_available_mode ( int display_index,
int mode_index )

Retrieves a specific mode of a display.

Parameters
display_indexIndex of the display to retrieve the mode from
mode_indexIndex of the mode to retrieve
Returns
The display mode

◆ kore_display_count_available_modes()

KORE_FUNC int kore_display_count_available_modes ( int display_index)

Retrieves the number of available modes of a display.

Parameters
display_indexIndex of the display to retrieve the modes count from
Returns
The number of available modes of the display

◆ kore_display_current_mode()

KORE_FUNC kore_display_mode kore_display_current_mode ( int display_index)

Retrieves the current mode of a display.

Parameters
display_indexIndex of the display to retrieve the mode from
Returns
The current display mode

◆ kore_display_name()

KORE_FUNC const char * kore_display_name ( int display_index)

Retrieves the system name of a display.

Parameters
display_indexIndex of the display to retrieve the name from
Returns
The system name of the display

◆ kore_primary_display()

KORE_FUNC int kore_primary_display ( void )

Retrieves the index of the primary display.

Returns
The index of the primary display