Drag&Drop support; SDL_CaptureMode support; Maximize window support;

This commit is contained in:
Yanrishatum
2015-10-18 00:15:05 +03:00
committed by Joshua Granick
parent 3a7d8b80e5
commit 85ec75fd59
18 changed files with 256 additions and 10 deletions

View File

@@ -0,0 +1,39 @@
#ifndef LIME_UI_DROP_EVENT_H
#define LIME_UI_DROP_EVENT_H
#include <hx/CFFI.h>
#include <stdint.h>
namespace lime {
enum DropEventType {
DROP_FILE
};
class DropEvent {
public:
static AutoGCRoot* callback;
static AutoGCRoot* eventObject;
DropEvent ();
static void Dispatch (DropEvent* event);
char* file;
DropEventType type;
};
}
#endif

View File

@@ -18,6 +18,7 @@ namespace lime {
static void Hide ();
static void SetCursor (MouseCursor cursor);
static void SetLock (bool lock);
static void SetCaptureMode(bool capture);
static void Show ();
static void Warp (int x, int y, Window* window);

View File

@@ -37,6 +37,7 @@ namespace lime {
virtual void SetIcon (ImageBuffer *imageBuffer) = 0;
virtual bool SetMinimized (bool minimized) = 0;
virtual bool SetResizable (bool resizable) = 0;
virtual bool SetMaximized (bool minimized) = 0;
virtual const char* SetTitle (const char* title) = 0;
Application* currentApplication;