Drag&Drop support; SDL_CaptureMode support; Maximize window support;
This commit is contained in:
committed by
Joshua Granick
parent
3a7d8b80e5
commit
85ec75fd59
39
project/include/ui/DropEvent.h
Normal file
39
project/include/ui/DropEvent.h
Normal 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
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user