Update CenterIn() and CenterOnScreen() methods in BWindow
* These methods now return the new point after centering. * But more importantly CenterIn() does some new adjustments to keep the window position inside the screen edge. If you pass the screen frame into CenterIn() it skips these adjustments.
This commit is contained in:
@@ -166,8 +166,8 @@ public:
|
||||
void ResizeBy(float dx, float dy);
|
||||
void ResizeTo(float width, float height);
|
||||
|
||||
void CenterIn(const BRect& rect);
|
||||
void CenterOnScreen();
|
||||
BPoint CenterIn(const BRect& rect);
|
||||
BPoint CenterOnScreen();
|
||||
|
||||
virtual void Show();
|
||||
virtual void Hide();
|
||||
|
||||
Reference in New Issue
Block a user