35 lines
		
	
	
		
			544 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			544 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#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();
 | 
						|
	}
 | 
						|
}
 |