方法
GdkSurfaceset_device_cursor
声明 [源码]
void
gdk_surface_set_device_cursor (
GdkSurface* surface,
GdkDevice* device,
GdkCursor* cursor
)
描述 [源码]
当指定设备进入 surface 时,设置一个特定的 GdkCursor。
将 cursor 参数传为 NULL 表示 surface 将使用其父表面的光标。大多数表面都应该使用此默认。
使用 gdk_cursor_new_from_name() 或 gdk_cursor_new_from_texture() 来创建光标。要使光标不可见,请使用 GDK_BLANK_CURSOR。