This commit is contained in:
Michael Freno
2025-11-13 00:06:09 -05:00
parent de4167a7b6
commit 712b3c40e9
24 changed files with 423 additions and 557 deletions

View File

@@ -1,28 +1,3 @@
-- ====================
-- TextEditor Module
-- ====================
-- Handles all text editing functionality including:
-- - Text buffer management
-- - Cursor positioning and navigation
-- - Text selection
-- - Multi-line text with wrapping
-- - Focus management
-- - Keyboard input handling
-- - Text rendering (cursor, selection highlights)
---
--- Dependencies (must be injected via deps parameter):
--- - GuiState: GUI state manager
--- - StateManager: State persistence for immediate mode
--- - Color: Color utility class (reserved for future use)
--- - utils: Utility functions (FONT_CACHE, getModifiers)
-- Setup module path for relative requires
local modulePath = (...):match("(.-)[^%.]+$")
local function req(name)
return require(modulePath .. name)
end
-- UTF-8 support
local utf8 = utf8 or require("utf8")
local TextEditor = {}