Re: how to hide mouse cursor (GTK + CPP)?



On Wed, Jan 26, 2005 at 11:13:16AM +0100, ALLs soft wrote:
Please send example if you have it.

  guchar bits[] = { 0 };
  GdkColor color = { 0, 0, 0, 0 };
  GdkPixmap *pixmap;
  GdkCursor *cursor;

  pixmap = gdk_bitmap_create_from_data(NULL, bits, 1, 1);
  cursor = gdk_cursor_new_from_pixmap(pixmap, pixmap, &color, &color, 0, 0);
  gdk_window_set_cursor(widget->window, cursor);

Yeti


--
Dynamic IP address is not a crime.



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