diff options
| author | Manolo Gouy <Manolo> | 2016-03-28 17:36:07 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-03-28 17:36:07 +0000 |
| commit | aacb5277e7499ed087cff495169484f6f6274d3c (patch) | |
| tree | 703bac8a791183522c88d13a6b1dfbfa0e6996a8 /FL | |
| parent | 4fbbab8b41f4775752587f18c7d1b32bbd947c27 (diff) | |
Rewrite Fl_dnd.cxx under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11455 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_System_Driver.H | 3 | ||||
| -rw-r--r-- | FL/mac.H | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/FL/Fl_System_Driver.H b/FL/Fl_System_Driver.H index 21726b8a4..6e3a92aee 100644 --- a/FL/Fl_System_Driver.H +++ b/FL/Fl_System_Driver.H @@ -90,6 +90,9 @@ public: virtual int compose(int &del) {del = 0; return 0;} // default implementation may be enough virtual void compose_reset() { Fl::compose_state = 0; } + // 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) {return 0;} }; #endif // FL_SYSTEM_DRIVER_H @@ -191,7 +191,6 @@ public: static int insertion_point_location(int *px, int *py, int *pheight); // computes window coordinates & height of insertion point static const int CoreText_threshold; // Mac OS version from which the Core Text API is used to display text static Fl_Fontdesc* calc_fl_fonts(void); // computes the fl_fonts global variable - static int dnd(int use_selection); // call Fl_X::dnd(1) to support text dragging static int calc_mac_os_version(void); // computes the fl_mac_os_version global variable static void clip_to_rounded_corners(CGContextRef gc, int w, int h); static void complete_copy_pdf_and_tiff(CGContextRef gc, CFMutableDataRef pdfdata); |
