BWindow::MoveOnScreen() now has a flags field.

* You can now specify whether or not you want to resize the window,
  and move it on screen, or center it.
* Removed PulseWindow::MoveOnScreen() method.
This commit is contained in:
Axel Dörfler
2015-09-14 20:45:38 +02:00
parent 2080899fd5
commit 8e96ec340b
7 changed files with 18 additions and 29 deletions
+7 -1
View File
@@ -83,6 +83,12 @@ enum {
#define B_CURRENT_WORKSPACE 0
#define B_ALL_WORKSPACES 0xffffffff
// MoveOnScreen() flags
enum {
B_DO_NOT_RESIZE_TO_FIT = 0x0001,
B_MOVE_IF_PARTIALLY_OFFSCREEN = 0x0002
};
class BWindow : public BLooper {
public:
@@ -170,7 +176,7 @@ public:
void CenterIn(const BRect& rect);
void CenterOnScreen();
void CenterOnScreen(screen_id id);
void MoveOnScreen(bool resize = false);
void MoveOnScreen(uint32 flags = 0);
virtual void Show();
virtual void Hide();