Working on the Display API
This commit is contained in:
@@ -18,6 +18,7 @@ namespace lime {
|
||||
Rectangle (value rect);
|
||||
|
||||
void Contract (double x, double y, double width, double height);
|
||||
value Value ();
|
||||
|
||||
double height;
|
||||
double width;
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
#ifndef LIME_SYSTEM_DISPLAY_H
|
||||
#define LIME_SYSTEM_DISPLAY_H
|
||||
|
||||
#include <SDL.h>
|
||||
|
||||
#include <hx/CFFI.h>
|
||||
|
||||
|
||||
namespace lime {
|
||||
|
||||
|
||||
class Display {
|
||||
|
||||
|
||||
public:
|
||||
|
||||
static value GetCurrentDisplayMode (int displayIndex);
|
||||
static value GetDisplayMode (int displayIndex, int modeIndex);
|
||||
static value GetDisplayBounds (int displayIndex);
|
||||
static int GetNumDevices ();
|
||||
static const char* GetDisplayName (int displayIndex);
|
||||
static int GetNumDisplayModes (int displayIndex);
|
||||
|
||||
static value GetDetails ();
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user