예제 #1
0
// 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))
}
예제 #2
0
func (w *Window) SetCursor(cursor wde.Cursor) {
	if w.cursor != cursor {
		w.cursor = cursor
		handle := cursorHandle(cursor)
		w.onUiThread(func() {
			w32.SetCursor(handle)
		})
	}
}