");
+MustHaveApp(wxWindow);
+MustHaveApp(wxWindow::FindFocus);
+MustHaveApp(wxWindow::GetCapture);
+MustHaveApp(wxWindow::GetClassDefaultAttributes);
class wxWindow : public wxEvtHandler
{
DocDeclStr(
wxRect , GetClientRect() const,
- "Get the client area position and size as a wx.Rect object.", "");
+ "Get the client area position and size as a `wx.Rect` object.", "");
DocStr(GetBestSize,
- "This functions returns the best acceptable minimal size for the
+ "This function returns the best acceptable minimal size for the
window, if applicable. For example, for a static text control, it will
be the minimal size such that the control label is not truncated. For
windows containing subwindows (suzh aswx.Panel), the size returned by
useful if you want to use the same font or colour in your own control
as in a standard control -- which is a much better idea than hard
coding specific colours or fonts which might look completely out of
-place on the users system, especially if it uses themes.", "");
+place on the user's system, especially if it uses themes.", "");
DocDeclStr(
"Get the default attributes for this class. This is useful if you want
to use the same font or colour in your own control as in a standard
control -- which is a much better idea than hard coding specific
-colours or fonts which might look completely out of place on the users
-system, especially if it uses themes.
+colours or fonts which might look completely out of place on the
+user's system, especially if it uses themes.
The variant parameter is only relevant under Mac currently and is
ignore under other platforms. Under Mac, it will change the size of
-the returned font. See SetWindowVariant for more about this.", "");
+the returned font. See `wx.Window.SetWindowVariant` for more about
+this.", "");
DocDeclStr(
EVT_ERASE_BACKGROUND event handler function under Windows and
automatically under GTK.
-Note that setting the background colour does not cause an immediate
+Note that setting the background colour may not cause an immediate
refresh, so you may wish to call ClearBackground or Refresh after
calling this function.
hierarchy. The search is recursive in both cases.", "");
+MustHaveApp(wxFindWindowById);
+MustHaveApp(wxFindWindowByName);
+MustHaveApp(wxFindWindowByLabel);
+
%inline %{
wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) {
return wxWindow::FindWindowById(id, parent);