Required x,y cordinate on mouse over in canvas

Asked by dipen

hi...
i required x,y cordinate of drawing area or canvas where i mouse over.
so give me api for that if you have .

Question information

Language:
English Edit question
Status:
Answered
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Mc (mc...) said :
#1

Look at your sceen; bottom right, just next to the zoom level ?

Revision history for this message
dipen (dipen-ec2010) said :
#2

yes...i can see this...but that point i required in seltrans.cpp file.
so i dont know how to get that value.

Revision history for this message
Liam P. White (liampwhite) said :
#3

Information about the mouse is usually not directly available for you to use. To get it, you have to wait for a GdkEvent to be fired and then mask out GDK_MOTION_NOTIFY to see if it was a mouse move. There are other examples of this throughout the code, but don't hesitate to ask if you can't find one.

Can you help with this problem?

Provide an answer of your own, or ask dipen for more information if necessary.

To post a message you must log in.