Re: How to hide mouse cursor?



simple code : just use blank cursor replace normal cursor

void hide_cursor() {
GdkCursor* cursor_blank = gdk_cursor_new(GDK_BLANK_CURSOR);
gdk_window_set_cursor(gtk_widget_get_window(widget), cursor_blank);
}

void show_cursor() {
GdkCursor* cursor_arrow = gdk_cursor_new(GDK_ARROW);
gdk_window_set_cursor(gtk_widget_get_window(widget), cursor_current);
}


2013/9/26 Woody Wu <narkewoody gmail com>
On Wed, Sep 25, 2013 at 05:29:50PM +0200, LE GARREC Vincent wrote:
> gdk_window_set_cursor ???

Maybe works. Thank you anyway.  I just found out a method to ask my
window-manager to hide the cursor for me.

>
>
> 2013/9/25 Woody Wu <narkewoody gmail com>
>
> > Hi,
> >
> > In GTk+, how do I hide mouse cursor in whole of my app? Since it
> > supposed to be used in a touch-screen.
> >
> > Thanks in advance.
> >
> > --
> > I can't go back to yesterday - because I was a different person then
> > _______________________________________________
> > gtk-list mailing list
> > gtk-list gnome org
> > https://mail.gnome.org/mailman/listinfo/gtk-list
> >

--
I can't go back to yesterday - because I was a different person then
_______________________________________________
gtk-list mailing list
gtk-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]