Minor changes to the documentation and some parameters names

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1444 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2010-03-08 17:50:16 +00:00
parent 4e93cc92fa
commit ef216acc5f
9 changed files with 42 additions and 41 deletions

View file

@ -317,17 +317,17 @@ void WindowImplX11::ShowMouseCursor(bool show)
////////////////////////////////////////////////////////////
void WindowImplX11::SetCursorPosition(unsigned int left, unsigned int top)
void WindowImplX11::SetCursorPosition(unsigned int x, unsigned int y)
{
XWarpPointer(myDisplay, None, myWindow, 0, 0, 0, 0, left, top);
XWarpPointer(myDisplay, None, myWindow, 0, 0, 0, 0, x, y);
XFlush(myDisplay);
}
////////////////////////////////////////////////////////////
void WindowImplX11::SetPosition(int left, int top)
void WindowImplX11::SetPosition(int x, int y)
{
XMoveWindow(myDisplay, myWindow, left, top);
XMoveWindow(myDisplay, myWindow, x, y);
XFlush(myDisplay);
}

View file

@ -110,20 +110,20 @@ private :
////////////////////////////////////////////////////////////
/// \brief Change the position of the mouse cursor
///
/// \param left Left coordinate of the cursor, relative to the window
/// \param top Top coordinate of the cursor, relative to the window
/// \param x Left coordinate of the cursor, relative to the window
/// \param y Top coordinate of the cursor, relative to the window
///
////////////////////////////////////////////////////////////
virtual void SetCursorPosition(unsigned int left, unsigned int top);
virtual void SetCursorPosition(unsigned int x, unsigned int y);
////////////////////////////////////////////////////////////
/// \brief Change the position of the window on screen
///
/// \param left Left position
/// \param top Top position
/// \param x Left position
/// \param y Top position
///
////////////////////////////////////////////////////////////
virtual void SetPosition(int left, int top);
virtual void SetPosition(int x, int y);
////////////////////////////////////////////////////////////
/// \brief Change the size of the rendering region of the window

View file

@ -238,18 +238,18 @@ void WindowImplWin32::ShowMouseCursor(bool show)
////////////////////////////////////////////////////////////
void WindowImplWin32::SetCursorPosition(unsigned int left, unsigned int top)
void WindowImplWin32::SetCursorPosition(unsigned int x, unsigned int y)
{
POINT position = {left, top};
POINT position = {x, y};
ClientToScreen(myHandle, &position);
SetCursorPos(position.x, position.y);
}
////////////////////////////////////////////////////////////
void WindowImplWin32::SetPosition(int left, int top)
void WindowImplWin32::SetPosition(int x, int y)
{
SetWindowPos(myHandle, NULL, left, top, 0, 0, SWP_NOSIZE | SWP_NOZORDER);
SetWindowPos(myHandle, NULL, x, y, 0, 0, SWP_NOSIZE | SWP_NOZORDER);
}

View file

@ -99,20 +99,20 @@ private :
////////////////////////////////////////////////////////////
/// \brief Change the position of the mouse cursor
///
/// \param left Left coordinate of the cursor, relative to the window
/// \param top Top coordinate of the cursor, relative to the window
/// \param x Left coordinate of the cursor, relative to the window
/// \param y Top coordinate of the cursor, relative to the window
///
////////////////////////////////////////////////////////////
virtual void SetCursorPosition(unsigned int left, unsigned int top);
virtual void SetCursorPosition(unsigned int x, unsigned int y);
////////////////////////////////////////////////////////////
/// \brief Change the position of the window on screen
///
/// \param left Left position
/// \param top Top position
/// \param x Left position
/// \param y Top position
///
////////////////////////////////////////////////////////////
virtual void SetPosition(int left, int top);
virtual void SetPosition(int x, int y);
////////////////////////////////////////////////////////////
/// \brief Change the size of the rendering region of the window

View file

@ -251,24 +251,24 @@ void Window::ShowMouseCursor(bool show)
////////////////////////////////////////////////////////////
void Window::SetCursorPosition(unsigned int left, unsigned int top)
void Window::SetCursorPosition(unsigned int x, unsigned int y)
{
if (myWindow)
{
// Keep coordinates for later checking (to reject the generated MouseMoved event)
mySetCursorPosX = left;
mySetCursorPosY = top;
mySetCursorPosX = x;
mySetCursorPosY = y;
myWindow->SetCursorPosition(left, top);
myWindow->SetCursorPosition(x, y);
}
}
////////////////////////////////////////////////////////////
void Window::SetPosition(int left, int top)
void Window::SetPosition(int x, int y)
{
if (myWindow)
myWindow->SetPosition(left, top);
myWindow->SetPosition(x, y);
}

View file

@ -143,20 +143,20 @@ public :
////////////////////////////////////////////////////////////
/// \brief Change the position of the mouse cursor
///
/// \param left Left coordinate of the cursor, relative to the window
/// \param top Top coordinate of the cursor, relative to the window
/// \param x Left coordinate of the cursor, relative to the window
/// \param y Top coordinate of the cursor, relative to the window
///
////////////////////////////////////////////////////////////
virtual void SetCursorPosition(unsigned int left, unsigned int top) = 0;
virtual void SetCursorPosition(unsigned int x, unsigned int y) = 0;
////////////////////////////////////////////////////////////
/// \brief Change the position of the window on screen
///
/// \param left Left position
/// \param top Top position
/// \param x Left position
/// \param y Top position
///
////////////////////////////////////////////////////////////
virtual void SetPosition(int left, int top) = 0;
virtual void SetPosition(int x, int y) = 0;
////////////////////////////////////////////////////////////
/// \brief Change the size of the rendering region of the window