Start work on multiple hardware cursors

This commit is contained in:
Kovid Goyal
2025-08-21 18:40:42 +05:30
parent d8cfb6b180
commit e6c1597834
3 changed files with 47 additions and 2 deletions

View File

@@ -11,7 +11,6 @@
#include "monotonic.h"
#include "line-buf.h"
#include "history.h"
#include "window_logo.h"
typedef enum ScrollTypes { SCROLL_LINE = -999999, SCROLL_PAGE, SCROLL_FULL } ScrollType;
@@ -88,6 +87,18 @@ typedef struct {
} last_ime_pos;
} OverlayLine;
typedef struct ExtraCursor {
CursorShape shape;
index_type cell;
} ExtraCursor;
typedef struct ExtraCursors {
ExtraCursor *locations;
unsigned count, capacity;
bool dirty;
} ExtraCursors;
typedef struct {
PyObject_HEAD
@@ -171,10 +182,12 @@ typedef struct {
LineBuf *linebuf;
GraphicsManager *grman;
Selections selections, url_ranges;
ExtraCursors extra_cursors;
} paused_rendering;
CharsetState charset;
ListOfChars *lc;
monotonic_t parsing_at;
ExtraCursors extra_cursors;
} Screen;