예제 #1
0
 public void UnsetCursor()
 {
     _cursor = null;
 }
예제 #2
0
        //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);
        }
예제 #3
0
 public void SetCursor(ServerCursor c)
 {
     _cursor = c;
 }