[10164] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: ? mouse pointer pixmap
daemon@ATHENA.MIT.EDU (Todd Dukes)
Mon Nov 16 09:56:58 1998
Date: Mon, 16 Nov 1998 02:59:38 +0000
From: Todd Dukes <tjdukes@flash.net>
To: gtk-list@redhat.com
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
"Sergey I. Panov" wrote:
>
> Is it right that Gtk+ has nothing to do with control of the mouse
> pointer?
> I'd like to be able to have my custom mouse pointers for different
> modes (tools) and different areas on canvas. Where would I find needed
> docs?
>
> Sergey
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
It looks like this is done by gdk. Look in gdkcursor.c
You might also want to look at testgtk. This is an application in
gtk+[version]/gtk. The source is testgtk.c. There is a mouse cursor
example (search for Cursors) This example appears to use only the
built-in cursors. But there is a gdk_cursor_new_from_pixmap function
that should be similar to the gdk_cursor_new use in testgtk.c that takes
an pixmap instead of an integer index. If you are able to create the
pixmap you should be all set.
good luck,
Todd
--
-----------------------------------------
Todd & Lisa Dukes
tjdukes@flash.net
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null