Added BWindow::ResizeToPreferred().

* B_AUTO_UPDATE_SIZE_LIMITS only really makes sense for resizable
  windows, and it only sets the minimum/maximum window size.
* ResizeToPreferred() resizes the window to its preferred size, and
  also supports height-for-width layouts.
This commit is contained in:
Axel Dörfler
2015-07-30 19:49:48 +02:00
parent 7bdc7eec03
commit 99b4affab6
2 changed files with 21 additions and 2 deletions
+1
View File
@@ -165,6 +165,7 @@ public:
void MoveTo(float x, float y);
void ResizeBy(float dx, float dy);
void ResizeTo(float width, float height);
void ResizeToPreferred();
void CenterIn(const BRect& rect);
void CenterOnScreen();