codemp/proto/model/cursor.proto

32 lines
676 B
Protocol Buffer
Raw Normal View History

2023-12-18 23:36:15 +01:00
syntax = "proto2";
package codemp.model.cursor;
import "model/user.proto";
2023-12-18 23:36:15 +01:00
// empty request
message MovedResponse {}
// a tuple indicating row and column
message RowCol {
required int32 row = 1;
required int32 col = 2;
}
// cursor position object
message CursorPosition {
// path of current buffer this cursor is into
required string buffer = 1;
// cursor start position
required RowCol start = 2;
// cursor end position
required RowCol end = 3;
}
// cursor event, with user id and cursor position
message CursorEvent {
// user moving the cursor
required codemp.model.user.UserIdentity user = 1;
// new cursor position
required CursorPosition position = 2;
}