positioning cursor with c++

I would like to know how to re-position the cursor through a c++ program.
I'm not asking for how to do this inside a terminal, I want to know how to position the actual gui cursor.
I'm using linux so any windows specific libraries will not work.
I also have opencv, if there is any command in opencv like that, it will work.

Thanks in advance!!!
I don't know opecv, but in linux the first easy to use and C++ library that I think of is gdk-pixbuf, it's used exactly for this, to handle mouse and keyboard events, I don't know if and how to move a cursor, but if that's possible then you can consier learning few classes ie:

1
2
Gdk::Display // used to get the screen
Gdk::Event // used for native events 
Ok, Thanks for the reply, ill go see if it works!
Topic archived. No new replies allowed.