Added wx.Window.GetScreenPosition and GetScreenRect

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-03-15 22:46:55 +00:00
parent f8dda225b3
commit 5756f98678
2 changed files with 26 additions and 4 deletions

View File

@@ -460,14 +460,32 @@ around panel items, for example.", "");
DocStr(GetPosition, // sets the docstring for both
"Get the window's position.", "");
wxPoint GetPosition();
"Get the window's position. Notice that the position is in client
coordinates for child windows and screen coordinates for the top level
ones, use `GetScreenPosition` if you need screen coordinates for all
kinds of windows.", "");
wxPoint GetPosition() const;
DocDeclAName(
void, GetPosition(int *OUTPUT, int *OUTPUT),
void, GetPosition(int *OUTPUT, int *OUTPUT) const,
"GetPositionTuple() -> (x,y)",
GetPositionTuple);
DocStr(GetScreenPosition, // sets the docstring for both
"Get the position of the window in screen coordinantes.", "");
wxPoint GetScreenPosition() const;
DocDeclAName(
void, GetScreenPosition(int *OUTPUT, int *OUTPUT) const,
"GetScreenPositionTuple() -> (x,y)",
GetScreenPositionTuple);
DocDeclStr(
wxRect , GetScreenRect() const,
"Returns the size and position of the window in screen coordinantes as
a `wx.Rect` object.", "
:see: `GetRect`, `GetScreenPosition`");
DocStr(GetSize, "Get the window size.", "");
wxSize GetSize() const;
@@ -480,7 +498,7 @@ around panel items, for example.", "");
DocDeclStr(
wxRect , GetRect() const,
"Returns the size and position of the window as a wx.Rect object.", "");
"Returns the size and position of the window as a `wx.Rect` object.", "");
DocStr(GetClientSize,