renderer: link set for more efficient matching

This commit is contained in:
Mitchell Hashimoto
2023-11-29 11:14:56 -08:00
parent 172a91e95d
commit 5a7596e1b1
3 changed files with 173 additions and 72 deletions

View File

@@ -25,6 +25,12 @@ inspector: ?*Inspector = null,
/// a future exercise.
preedit: ?Preedit = null,
/// Mouse state. This only contains state relevant to what renderers
/// need about the mouse.
mouse: Mouse = .{},
pub const Mouse = struct {};
/// The pre-edit state. See Surface.preeditCallback for more information.
pub const Preedit = struct {
/// The codepoints to render as preedit text. We allow up to 16 codepoints