Class: Display
Lua
C++
Edit

Display:GetPosition

This method retrieves the display position on the virtual display.

Syntax

Returns

Returns the display's position on the bounding virtual display.

Example

local displays = GetDisplays()

for k = 1, #displays do
    Print("Display " .. tostring(k) .. ":")
    Print(" Position: " .. tostring(displays[k]:GetPosition().x) .. " x " .. tostring(displays[k]:GetSize().y))
    Print(" Size: " .. tostring(displays[k]:GetSize().x) .. " x " .. tostring(displays[k]:GetSize().y))
    Print(" Scale: " .. tostring(displays[k]:GetScale()))
    Print(" Graphics Modes:")
    local gfxmodes = displays[k].graphicsmodes
    for n = 1, #gfxmodes do
        Print("     " .. tostring(n) .. ": " .. tostring(gfxmodes[n].x) .. ", " .. tostring(gfxmodes[n].y .. ", " .. tostring(gfxmodes[n].z)))
    end
end
Copyright © 2024 Ultra Software.
All rights reserved.