35 lines
544 B
C
Raw Normal View History

2025-01-22 16:18:30 +01:00
#pragma once
namespace Kore {
namespace Display {
struct DeviceInfo {
int number;
bool isAvailable;
char name[32];
int x;
int y;
int width;
int height;
bool isPrimary;
DeviceInfo() {
number = -1;
name[0] = 0;
isAvailable = false;
isPrimary = false;
}
};
void enumerate();
const DeviceInfo *primaryScreen();
const DeviceInfo *screenById(int id);
int height(int index);
int width(int index);
int x(int index);
int y(int index);
bool isPrimary(int index);
int count();
}
}