Working on getting textbox edit tool functional

This commit is contained in:
Yousef Khadadeh 2026-04-04 17:52:43 +03:00
parent 262bf23bce
commit 0087048a02
43 changed files with 605 additions and 295 deletions

View file

@ -58,6 +58,10 @@ void DrawingProgram::on_tab_out() {
controls.middleClickHeld = false;
}
void DrawingProgram::input_paste_callback(const CustomEvents::PasteEventData& paste) {
drawTool->input_paste_callback(paste);
}
void DrawingProgram::input_drop_file_callback(const InputManager::DropCallbackArgs& drop) {
if(std::filesystem::is_regular_file(drop.data)) {
#ifdef __EMSCRIPTEN_
@ -83,6 +87,14 @@ void DrawingProgram::input_drop_text_callback(const InputManager::DropCallbackAr
}
}
void DrawingProgram::input_text_key_callback(const InputManager::KeyCallbackArgs& key) {
drawTool->input_text_key_callback(key);
}
void DrawingProgram::input_text_callback(const InputManager::TextCallbackArgs& text) {
drawTool->input_text_callback(text);
}
void DrawingProgram::input_mouse_button_callback(const InputManager::MouseButtonCallbackArgs& button) {
auto buttonCallbacks = [&](const InputManager::MouseButtonCallbackArgs& b) {
drawTool->input_mouse_button_on_canvas_callback(b);