summaryrefslogtreecommitdiff
path: root/FL/Fl.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-01-07 16:34:44 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-01-07 16:34:54 +0100
commit5bab46940c9dc6ad272e4cbf7970a7261aaff210 (patch)
tree1e47a2b99a54a1e479094be43207c25a7f61fdc6 /FL/Fl.H
parent27c175dad8470229a512540edaae24787c65c3b7 (diff)
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.
Diffstat (limited to 'FL/Fl.H')
-rw-r--r--FL/Fl.H7
1 files changed, 5 insertions, 2 deletions
diff --git a/FL/Fl.H b/FL/Fl.H
index 3c887b665..37ec2ca13 100644
--- a/FL/Fl.H
+++ b/FL/Fl.H
@@ -146,8 +146,11 @@ public:
static Fl_Screen_Driver *screen_driver();
static Fl_System_Driver *system_driver();
- static void reset_marked_text(); // resets marked text
- static void insertion_point_location(int x, int y, int height); // sets window coordinates & height of insertion point
+#ifdef __APPLE__ // deprecated in 1.4 - only for compatibility with 1.3
+ static void reset_marked_text();
+ static void insertion_point_location(int x, int y, int height);
+#endif
+
/** Get the box shadow width of all "shadow" boxtypes in pixels.
\since 1.4.0