Class: Display
Lua
C++
Edit

Display::GetPosition

This methods retrieves the display position on the virtual display.

Syntax

Returns

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

Example

#include "UltraEngine.h"

using namespace UltraEngine;

int main(int argc, const char* argv[])
{
    auto displays = GetDisplays();
    for (int k=0; k < displays.size(); ++k)
    {
        Print("Display " + String(k) + ":");
        Print(" Position: " + String(displays[k]->GetPosition()));
        Print(" Size: " + String(displays[k]->GetSize()));
        Print(" Scale: " + String(displays[k]->GetScale()));
        Print(" Graphics Modes:");
        auto gfxmodes = displays[k]->GraphicsModes();
        for (int n=0; n < gfxmodes.size(); ++n)
        {
            Print("     " + String(n) + ": " + String(gfxmodes[n]));
        }
    }
    return 0;
}
Copyright © 2024 Ultra Software.
All rights reserved.