Merge pull request #549 from larsiusprime/window
window: exposed "raise()" function from SDL to bring the specified wi…
This commit is contained in:
@@ -1219,6 +1219,13 @@ namespace lime {
|
||||
|
||||
}
|
||||
|
||||
value lime_window_raise (value window) {
|
||||
|
||||
Window* targetWindow = (Window*)(intptr_t)val_float (window);
|
||||
targetWindow->Raise ();
|
||||
return alloc_null ();
|
||||
|
||||
}
|
||||
|
||||
value lime_window_resize (value window, value width, value height) {
|
||||
|
||||
@@ -1366,6 +1373,7 @@ namespace lime {
|
||||
DEFINE_PRIM (lime_window_get_x, 1);
|
||||
DEFINE_PRIM (lime_window_get_y, 1);
|
||||
DEFINE_PRIM (lime_window_move, 3);
|
||||
DEFINE_PRIM (lime_window_raise, 1);
|
||||
DEFINE_PRIM (lime_window_resize, 3);
|
||||
DEFINE_PRIM (lime_window_set_enable_text_events, 2);
|
||||
DEFINE_PRIM (lime_window_set_fullscreen, 2);
|
||||
|
||||
@@ -184,6 +184,12 @@ namespace lime {
|
||||
|
||||
}
|
||||
|
||||
void SDLWindow::Raise () {
|
||||
|
||||
SDL_RaiseWindow (sdlWindow);
|
||||
|
||||
}
|
||||
|
||||
|
||||
void SDLWindow::Resize (int width, int height) {
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ namespace lime {
|
||||
virtual int GetX ();
|
||||
virtual int GetY ();
|
||||
virtual void Move (int x, int y);
|
||||
virtual void Raise ();
|
||||
virtual void Resize (int width, int height);
|
||||
virtual void SetEnableTextEvents (bool enabled);
|
||||
virtual bool SetFullscreen (bool fullscreen);
|
||||
|
||||
Reference in New Issue
Block a user