DisplayAdapter - stingray.DisplayAdapter namespace reference - Stingray Lua API Reference

stingray.DisplayAdapter namespace reference

Description

You can use the functions in the DisplayAdapter interface to access the GPUs and outputs (screens) that are connected to the system.

Note: The DisplayAdapter interface is only available on Windows and Mac OS X.

Note also that this interface deprecates stingray.Application.enum_display_modes().

Functions

Parameters

adapter_index :

integer

Specifies the index of the display adapter whose values you want to retrieve.

output_index :

integer

Specifies the index of the output within the display adapter.

mode_index :

integer

Specifies the index of the mode within the output.

Returns

integer

The width in pixels of the specified mode.

integer

The height in pixels of the specified mode.

Parameters

adapter_index :

integer

Specifies the index of the display adapter whose name you want to retrieve.

Returns

string

The readable name for the adapter.

Parameters
This function does not accept any parameters.
Returns

integer

The number of available display adapters (GPUs) in the system.

Parameters

adapter_index :

integer

Specifies the index of the display adapter whose modes you want to access.

output_index :

integer

Specifies the index of the output within the display adapter.

Returns

integer

The number of supported display modes for the specific output.

Parameters

adapter_index :

integer

Specifies the index of the display adapter whose outputs you want to access.

Returns

integer

The number of available outputs (screens) for the adapter.