Codechange: make EventState a scoped enum

This commit is contained in:
Rubidium
2026-06-14 21:29:41 +02:00
committed by rubidium42
parent 2df98643ad
commit 5a6469ad6f
28 changed files with 147 additions and 147 deletions
+3 -3
View File
@@ -239,7 +239,7 @@ struct IConsoleWindow : Window
EventState OnKeyPress([[maybe_unused]] char32_t key, uint16_t keycode) override
{
if (_focused_window != this) return ES_NOT_HANDLED;
if (_focused_window != this) return EventState::NotHandled;
const int scroll_height = (this->height / this->line_height) - 1;
switch (keycode) {
@@ -311,12 +311,12 @@ struct IConsoleWindow : Window
IConsoleResetHistoryPos();
this->SetDirty();
} else {
return ES_NOT_HANDLED;
return EventState::NotHandled;
}
break;
}
}
return ES_HANDLED;
return EventState::Handled;
}
void InsertTextString(WidgetID, std::string_view str, bool marked, std::optional<size_t> caret, std::optional<size_t> insert_location, std::optional<size_t> replacement_end) override