1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:37:35 +00:00

LibGUI: Turn GTextBox into a wrapper around a single-line GTextEditor.

This commit is contained in:
Andreas Kling 2019-04-10 03:08:29 +02:00
parent 981623f4ee
commit 313ac51832
11 changed files with 25 additions and 260 deletions

View file

@ -71,7 +71,7 @@ public:
bool is_single_line() const { return m_type == SingleLine; }
bool is_multi_line() const { return m_type == MultiLine; }
Function<void(GTextEditor&)> on_cursor_change;
Function<void()> on_cursor_change;
void set_text(const String&);
void scroll_cursor_into_view();
@ -97,8 +97,8 @@ public:
void delete_current_line();
Function<void()> on_change;
Function<void(GTextEditor&)> on_return_pressed;
Function<void(GTextEditor&)> on_escape_pressed;
Function<void()> on_return_pressed;
Function<void()> on_escape_pressed;
virtual const char* class_name() const override { return "GTextEditor"; }