// restores current cursor. must be called from UI(event) thread. func (w *Window) restoreCursor() { cursor := w.cursor if cursor == wde.NoneCursor { cursor = wde.NormalCursor } w32.SetCursor(cursorHandle(cursor)) }
func (w *Window) SetCursor(cursor wde.Cursor) { if w.cursor != cursor { w.cursor = cursor handle := cursorHandle(cursor) w.onUiThread(func() { w32.SetCursor(handle) }) } }