Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Get the x/y coordinates of a window  (Read 2016 times)

0 Members and 1 Guest are viewing this topic.

rcplusplus

  • Newbie
  • *
  • Posts: 15
    • View Profile
Get the x/y coordinates of a window
« on: June 08, 2012, 08:11:30 pm »
I have a window that I'm using for a game, and I'm going to use the windows function ClipCursor()to confine the mouse to the window like make game do. However, I need to know how to get the coordinates of the window. I've looked through the documentation, but I can't seem to find it. Is there any way to do this? I plan on moving to mac later on, so cross-platform solutions would be best.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Get the x/y coordinates of a window
« Reply #1 on: June 08, 2012, 08:47:25 pm »
Window::getPosition (SFML 2 only).
Laurent Gomila - SFML developer