From 5bab46940c9dc6ad272e4cbf7970a7261aaff210 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Fri, 7 Jan 2022 16:34:44 +0100 Subject: Re-organize cross-platform support for text input methods. FLTK 1.3 supports complex text input methods (TIMs) for the 3 platforms (X11, Windows, macOS). This support has an interface with FLTK that is common for X11 and Windows, via (undocumented) functions fl_set_spot(), fl_set_status() and fl_reset_spot(). In contrast, and because it's been developed independently, the interface between the macOS TIM and FLTK 1.3 is completely different : static functions FL::insertion_point_location() and Fl::reset_marked_text(). The present change implements a single TIM/FLTK interface used by all platforms based on functions fl_set_spot() and fl_reset_spot(). The previous macOS-specific functions FL::insertion_point_location() and Fl::reset_marked_text() are maintained only for compatibility with 1.3 and deprecated. --- src/Fl.cxx | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'src/Fl.cxx') diff --git a/src/Fl.cxx b/src/Fl.cxx index 7d13c2619..db69fbd97 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -1885,31 +1885,6 @@ int Fl::dnd() return Fl::screen_driver()->dnd(); } -/** - Resets marked text. - - In many languages, typing a character can involve multiple keystrokes. For - example, the Ä can be composed of two dots (¨) on top of the - character, followed by the letter A (on a Mac with U.S. keyboard, you'd - type Alt-U, Shift-A. To inform the user that the dots may be followed by - another character, the ¨ is underlined). - - Call this function if character composition needs to be aborted for some - reason. One such example would be the text input widget losing focus. - */ -void Fl::reset_marked_text() { - Fl::screen_driver()->reset_marked_text(); -} - -/** - Sets window coordinates and height of insertion point. - - \see Fl::compose(int& del) for a detailed description. -*/ -void Fl::insertion_point_location(int x, int y, int height) { - Fl::screen_driver()->insertion_point_location(x, y, height); -} - int Fl::event_key(int k) { return system_driver()->event_key(k); } -- cgit v1.2.3