From 519673a7761f0e43d926ea5dac43cda305fb089e Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 31 Mar 2016 19:55:03 +0000 Subject: Move dnd and character-composition related functions from Fl_System_Driver to Fl_Screen_Driver git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11489 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Screen_Driver.H | 7 +++++++ FL/Fl_System_Driver.H | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'FL') diff --git a/FL/Fl_Screen_Driver.H b/FL/Fl_Screen_Driver.H index cd847684e..752b701b2 100644 --- a/FL/Fl_Screen_Driver.H +++ b/FL/Fl_Screen_Driver.H @@ -98,6 +98,13 @@ public: virtual int has_marked_text() { return 0; } virtual void reset_marked_text() {} virtual void insertion_point_location(int x, int y, int height) {} + // implement so text-editing widgets support dead keys + virtual int compose(int &del) {del = 0; return 0;} + // default implementation may be enough + virtual void compose_reset(); + // implement to support drag-n-drop. use_selection = 1 means the GUI is welcome to display + // the selected text during the D&D operation + virtual int dnd(int use_selection = 0) {return 0;} }; diff --git a/FL/Fl_System_Driver.H b/FL/Fl_System_Driver.H index 9c28bbb82..c946f6836 100644 --- a/FL/Fl_System_Driver.H +++ b/FL/Fl_System_Driver.H @@ -97,13 +97,6 @@ public: static void fatal(const char* format, ...); // implement to set the default effect of Fl::error() virtual void fatal(const char* format, va_list args); - // implement so text-editing widgets support dead keys - virtual int compose(int &del) {del = 0; return 0;} - // default implementation may be enough - virtual void compose_reset(); - // implement to support drag-n-drop. use_selection = 1 means the GUI is welcome to display - // the selected text during the D&D operation - virtual int dnd(int use_selection = 0) {return 0;} // implement these to support cross-platform file operations virtual char *utf2mbcs(const char *s) {return (char*)s;} -- cgit v1.2.3