public void UnsetCursor() { _cursor = null; }
//returns previously locked shape, caller should broadcast cursor free event if result != null public void LockShape(IServerVdShape sh, int owner) { if (sh.GetCursor() != null) throw new InvalidOperationException("cannot lock locked shape"); var cursor = new ServerCursor(owner); sh.SetCursor(cursor); _userIdToCursor.Add(owner, sh); }
public void SetCursor(ServerCursor c) { _cursor = c; }