Change mouse cursor image

@param cursorMode
A cursor type
775035
public void setCursor(CursorMode cursorMode) {
        Cursor c = CursorMode.getAWTCursor(cursorMode);

        if (c.getType() == panel.getCursor().getType()) return;
        panel.setCursor(c);
    }
930906
def show_cursor(self, show):
        """"""
        if show:
            self.displaycontrol |= LCD_CURSORON
        else:
            self.displaycontrol &= ~LCD_CURSORON
        self.write8(LCD_DISPLAYCONTROL | self.displaycontrol)
1368140
def set_cursor(self, cursor):
        

        if cursor in ["on", "off", "under", "block"]:
            self.cursor = cursor
            self.server.request("screen_set %s cursor %s" % (self.ref, self.cursor))
966877
def set_cursor(self, col, row):
        """"""
        # Clamp row to the last row of the display.
        if row > self._lines:
            row = self._lines - 1
        # Set location.
        self.write8(LCD_SETDDRAMADDR | (col + LCD_ROW_OFFSETS[row]))
358126
private void btLaunchMouseExited(java.awt.event.MouseEvent evt)//GEN-FIRST:event_btLaunchMouseExited
    {//GEN-HEADEREND:event_btLaunchMouseExited

      this.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));

    }
519363
public void setCursor(GVRSceneObject object)
    {
        synchronized (mCursorLock)
        {
            if (object != null)
            {
                if ((mCursor != null) && (mCursor != object))
                {
                    detachCursor();
                }
                attachCursor(object);
                mCursor = object;
                moveCursor();
                object.setEnable(true);
            }
            else if (mCursor != null)
            {
                detachCursor();
            }
            mCursor = object;
        }
    }
132911
public void setOnmousemove(java.lang.String onmousemove) {
        getStateHelper().put(PropertyKeys.onmousemove, onmousemove);
        handleAttribute("onmousemove", onmousemove);
    }
108070
def set_cursor(self, row, col):
        
        self._vim.current.window.cursor = (row, col)
1118932
void load(Cursor cursor) {
        assetRoot = new GVRSceneObject(cursor.getGVRContext());
        assetRoot.attachComponent(new GVRSwitch(cursor.getGVRContext()));
        for (CursorAsset asset : assets.values()) {
            asset.load(cursor);
        }
    }
1342224
void setSystemCursorVisible(boolean visible)
    {
        if (screen == null)
        {
            cursorVisibility = Boolean.valueOf(visible);
        }
        else
        {
            if (visible)
            {
                screen.showCursor();
            }
            else
            {
                screen.hideCursor();
            }
        }
    }
1323281
public void addMouseEventCallback(MouseEventCallback callback) {
		if (mouseEventCallbacks == null) {
			mouseEventCallbacks = new ArrayList<MouseEventCallback>();
		}
		mouseEventCallbacks.add(callback);
	}
411916
private void insert(String binding) {
		currentInput.insert(cursorPos, binding);
		cursorPos += binding.length();

		// reset view
		resetMainPart();
	}
60979
def switch_cursor(cursor_type, parent_window):
    
    watch = Gdk.Cursor(cursor_type)
    window = parent_window.get_root_window()
    window.set_cursor(watch)
1129925
protected void setComponentCursor (Component comp)
    {
        Cursor c = comp.getCursor();
        if (c != _curCursor) {
            assertComponentCursorCleared();
            _lastComp = comp;
            _oldCursor = comp.isCursorSet() ? c : null;
            comp.setCursor(_curCursor);
        }
    }
1356191
private void updateImage() {
		if (!over) {
			currentImage = normalImage;
			currentColor = normalColor;
			state = NORMAL;
			mouseUp = false;
		} else {
			if (mouseDown) {
				if ((state != MOUSE_DOWN) && (mouseUp)) {
					if (mouseDownSound != null) {
						mouseDownSound.play();
					}
					currentImage = mouseDownImage;
					currentColor = mouseDownColor;
					state = MOUSE_DOWN;
					
					notifyListeners();
					mouseUp = false;
				}
				
				return;
			} else {
				mouseUp = true;
				if (state != MOUSE_OVER) {
					if (mouseOverSound != null) {
						mouseOverSound.play();
					}
					currentImage = mouseOverImage;
					currentColor = mouseOverColor;
					state = MOUSE_OVER;
				}
			}
		}

		mouseDown = false;
		state = NORMAL;
	}
944920
public void setThumbnail(final Link newthumbnail) {
        Link old = null;
        for (final Link l : getOtherLinks()) {
            if ("thumbnail".equals(l.getRel())) {
                old = l;
                break;
            }
        }
        if (old != null) {
            getOtherLinks().remove(old);
            newthumbnail.setRel("thumbnail");
        }
        getOtherLinks().add(newthumbnail);
    }
8863
function onCursorActivity() {
      var macroModeState = vimGlobalState.macroModeState;
      var lastChange = macroModeState.lastInsertModeChanges;
      if (lastChange.expectCursorActivityForChange) {
        lastChange.expectCursorActivityForChange = false;
      } else {
        // Cursor moved outside the context of an edit. Reset the change.
        lastChange.changes = [];
      }
    }