From 87fe29372cf8623a003b39dea755f3d290916601 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 26 Nov 2022 20:28:12 +0100 Subject: Local undo per Fl_Text_Buffer and Fl_Input_ (#557) --- FL/Fl_Input_.H | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'FL/Fl_Input_.H') diff --git a/FL/Fl_Input_.H b/FL/Fl_Input_.H index 254730c1b..bd159049a 100644 --- a/FL/Fl_Input_.H +++ b/FL/Fl_Input_.H @@ -38,6 +38,8 @@ #define FL_MULTILINE_INPUT_WRAP (FL_MULTILINE_INPUT | FL_INPUT_WRAP) #define FL_MULTILINE_OUTPUT_WRAP (FL_MULTILINE_INPUT | FL_INPUT_READONLY | FL_INPUT_WRAP) +class Fl_Input_Undo_Action; + /** This class provides a low-overhead text input field. @@ -144,6 +146,9 @@ class FL_EXPORT Fl_Input_ : public Fl_Widget { /** \internal color of the text cursor */ Fl_Color cursor_color_; + /** \internal local undo event */ + Fl_Input_Undo_Action* undo_; + /** \internal Horizontal cursor position in pixels while moving up or down. */ static double up_down_pos; -- cgit v1.2.3