Mouse Pointer Coordinates

View: New views
2 Messages — Rating Filter:   Alert me  

Mouse Pointer Coordinates

by Batangisip :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

I am new to gimp plug-in development.

I wanted to know how mouse clicks are handled and also how coordinated for
the mouse pointer position are retrieved (similar to what the pointer dialog
does).

I suspect it is something to do with GTK/GDK (GDKCursor?), but i am not sure
how it works out.

--
Niranjan (via www.gimpusers.com)
_______________________________________________
Gimp-developer mailing list
Gimp-developer@...
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

Re: Mouse Pointer Coordinates

by Sven Neumann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 2009-10-30 at 10:02 +0100, Niranjan wrote:

> Hi
>
> I am new to gimp plug-in development.
>
> I wanted to know how mouse clicks are handled and also how coordinated for
> the mouse pointer position are retrieved (similar to what the pointer dialog
> does).
>
> I suspect it is something to do with GTK/GDK (GDKCursor?), but i am not sure
> how it works out.

Please have a look at the GTK+ documentation. There are very nice
tutorials and example code at http://www.gtk.org/documentation.html
The official GTK+ tutorial at
http://library.gnome.org/devel/gtk-tutorial/stable/ covers your
question.


Sven


_______________________________________________
Gimp-developer mailing list
Gimp-developer@...
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer