Incredibly smart BWindow::MoveOnScreen() method added.

* Makes sure that the window is as complete as possible on screen.
This commit is contained in:
Axel Dörfler
2015-09-03 21:30:37 +02:00
parent b7d0120074
commit ebf4cbe6e7
2 changed files with 44 additions and 2 deletions
+2 -1
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2001-2011, Haiku, Inc. All rights reserved.
* Copyright 2001-2015, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _WINDOW_H
@@ -170,6 +170,7 @@ public:
void CenterIn(const BRect& rect);
void CenterOnScreen();
void CenterOnScreen(screen_id id);
void MoveOnScreen();
virtual void Show();
virtual void Hide();