Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将光标设置为手表。问题是 gdk_set_cursor() 需要一个 gdk_window。
如何在 C 中获取 gtk_window 的 gdk_window?我看过 gtkmm 和 pygtk 的例子,但我找不到相应的 C 函数。
GdkWindow *gdk_window = gtk_widget_get_window(GTK_WIDGET(gtk_window));
或者,在 GTK 2.14 之前,但现在不允许:
GdkWindow *gdk_window = gtk_window->window;