![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Query a display for supported modes
#include <gf/gf.h>
int gf_display_query_mode( gf_display_t display,
int index,
gf_modeinfo_t *mode );
gf
This function queries the capabilities of a mode in the specified display's list of supported modes. Modes are indexed starting at 0.
The mode argument is filled in with information about the queried mode:
typedef struct {
unsigned flags;
gf_format_t primary_format;
unsigned xres;
unsigned yres;
unsigned refresh[7];
} gf_modeinfo_t;
It contains at least the following members:
On some devices, the main layer may support more than one pixel format. In this case multiple modes are reported with identical xres, yres, and refresh values, but different values for primary_format. It won't matter which of the reported format values is passed to gf_display_set_mode(), since any of the formats reported via gf_layer_query() can be used to create surfaces displayable on the main layer regardless.
QNX Graphics Framework
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |
gf_display_set_mode(), gf_layer_query()
![]() |
![]() |
![]() |
![]() |