* Implemented BestSize cache

* Added calls to InvalidateBestSize where things affecting BestSize
  are modified.  There are probably several other places where this
  still needs to be done...

* Added wxWindowBase::GetBestFittingSize that will merge the BestSize
  into the MinSize, (if any) and return the result.

* SetBestFittingSize will now only set the MinSize to the value that
  was passed to it, without merging in the BestSize


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-06-24 20:09:45 +00:00
parent cf82b73a0a
commit 9f88452895
55 changed files with 260 additions and 105 deletions

View File

@@ -509,6 +509,21 @@ after calling Fit.", "");
GetBestSizeTuple);
DocDeclStr(
void , InvalidateBestSize(),
"Reset the cached best size value so it will be recalculated the next
time it is needed.", "");
DocDeclStr(
wxSize , GetBestFittingSize() const,
"This function will merge the window's best size into the window's
minimum size, giving priority to the min size components, and returns
the results.
", "");
DocDeclStr(
wxSize , GetAdjustedBestSize() const,
"This method is similar to GetBestSize, except in one
@@ -1325,7 +1340,7 @@ The cursor may be wx.NullCursor in which case the window cursor will
be reset back to default.", "");
DocDeclStr(
wxCursor& , GetCursor(),
wxCursor , GetCursor(),
"Return the cursor associated with this window.", "");
@@ -1341,7 +1356,7 @@ be reset back to default.", "");
DocDeclStr(
wxFont& , GetFont(),
wxFont , GetFont(),
"Returns the default font used for this window.", "");