X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fdc775af55c604458345c7045b8478fa230e3bce..015fd9ef4833ec3d8b0043a1c7e448c8be4f734a:/wxPython/src/_window.i diff --git a/wxPython/src/_window.i b/wxPython/src/_window.i index 3c89585101..7a10cf71c5 100644 --- a/wxPython/src/_window.i +++ b/wxPython/src/_window.i @@ -415,8 +415,13 @@ default values.", "", "Moves the window to the given position.", "", MoveXY); + DocDeclStr( + void , SetBestFittingSize(const wxSize& size=wxDefaultSize), + "A 'Smart' SetSize that will fill in default size components with the +window's *best size* values. Also set's the minsize for use with sizers.", ""); + - + DocDeclStr( virtual void , Raise(), "Raises the window to the top of the window hierarchy if it is a @@ -504,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 @@ -1267,16 +1287,17 @@ this.", ""); "Sets the background colour of the window. Returns True if the colour was changed. The background colour is usually painted by the default EVT_ERASE_BACKGROUND event handler function under Windows and -automatically under GTK. +automatically under GTK. Using `wx.NullColour` will reset the window +to the default background colour. Note that setting the background colour may not cause an immediate -refresh, so you may wish to call ClearBackground or Refresh after +refresh, so you may wish to call `ClearBackground` or `Refresh` after calling this function. -Use this function with care under GTK+ as the new appearance of the -window might not look equally well when used with themes, i.e GTK+'s -ability to change its look as the user wishes with run-time loadable -modules.", ""); +Using this function will disable attempts to use themes for this +window, if the system supports them. Use with care since usually the +themes represent the appearance chosen by the user to be used for all +applications on the system.", ""); DocDeclStr( void , SetDefaultBackgroundColour(const wxColour& colour), @@ -1319,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.", ""); @@ -1335,7 +1356,7 @@ be reset back to default.", ""); DocDeclStr( - wxFont& , GetFont(), + wxFont , GetFont(), "Returns the default font used for this window.", "");