Re: How to hide mouse cursor?
- From: jun louis <louisliangjun gmail com>
- To: Woody Wu <narkewoody gmail com>
- Cc: gtk-list <gtk-list gnome org>
- Subject: Re: How to hide mouse cursor?
- Date: Fri, 27 Sep 2013 19:30:52 +0800
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]