Docstring tweaks, fixed typo, etc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1046,9 +1046,10 @@ colour. Does not cause an erase background event to be generated.");
|
|||||||
|
|
||||||
DocDeclStr(
|
DocDeclStr(
|
||||||
virtual void , Freeze(),
|
virtual void , Freeze(),
|
||||||
"Freezes the window or, in other words, prevents any updates from
|
"Freezes the window or, in other words, prevents any updates from taking place
|
||||||
taking place on screen, the window is not redrawn at all. Thaw must be
|
on screen, the window is not redrawn at all. Thaw must be called to reenable
|
||||||
called to reenable window redrawing.
|
window redrawing. Calls to Freeze/Thaw may be nested, with the actual Thaw
|
||||||
|
being delayed until all the nesting has been undone.
|
||||||
|
|
||||||
This method is useful for visual appearance optimization (for example,
|
This method is useful for visual appearance optimization (for example,
|
||||||
it is a good idea to use it before inserting large amount of text into
|
it is a good idea to use it before inserting large amount of text into
|
||||||
@@ -1059,7 +1060,9 @@ mandatory directive.");
|
|||||||
|
|
||||||
DocDeclStr(
|
DocDeclStr(
|
||||||
virtual void , Thaw(),
|
virtual void , Thaw(),
|
||||||
"Reenables window updating after a previous call to Freeze.");
|
"Reenables window updating after a previous call to Freeze. Calls to
|
||||||
|
Freeze/Thaw may be nested, so Thaw must be called the same number of times
|
||||||
|
that Freeze was before the window will be updated.");
|
||||||
|
|
||||||
|
|
||||||
DocDeclStr(
|
DocDeclStr(
|
||||||
@@ -1087,7 +1090,7 @@ optimize redrawing by only redrawing those areas, which have been
|
|||||||
exposed.");
|
exposed.");
|
||||||
bool IsExposed( int x, int y, int w=1, int h=1 ) const;
|
bool IsExposed( int x, int y, int w=1, int h=1 ) const;
|
||||||
%name(IsExposedPoint) bool IsExposed( const wxPoint& pt ) const;
|
%name(IsExposedPoint) bool IsExposed( const wxPoint& pt ) const;
|
||||||
%name(isExposedRect) bool IsExposed( const wxRect& rect ) const;
|
%name(IsExposedRect) bool IsExposed( const wxRect& rect ) const;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1156,7 +1159,7 @@ be reset back to default.");
|
|||||||
|
|
||||||
DocDeclStr(
|
DocDeclStr(
|
||||||
wxFont& , GetFont(),
|
wxFont& , GetFont(),
|
||||||
"Returns a reference to the font for this window.");
|
"Returns the default font used for this window.");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1688,11 +1691,18 @@ wxWindow* wxFindWindowByLabel( const wxString& label,
|
|||||||
|
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
wxWindow* wxWindow_FromHWND(unsigned long hWnd) {
|
wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) {
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
|
WXHWND hWnd = (WXHWND)_hWnd;
|
||||||
|
long id = wxGetWindowId(hWnd);
|
||||||
wxWindow* win = new wxWindow;
|
wxWindow* win = new wxWindow;
|
||||||
win->SetHWND((WXHWND)hWnd);
|
parent->AddChild(win);
|
||||||
win->SubclassWin((WXHWND)hWnd);
|
win->SetEventHandler(win);
|
||||||
|
win->SetHWND(hWnd);
|
||||||
|
win->SetId(id);
|
||||||
|
win->SubclassWin(hWnd);
|
||||||
|
win->AdoptAttributesFromHWND();
|
||||||
|
win->SetupColours();
|
||||||
return win;
|
return win;
|
||||||
#else
|
#else
|
||||||
wxPyRaiseNotImplemented();
|
wxPyRaiseNotImplemented();
|
||||||
|
Reference in New Issue
Block a user