summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl.H2
-rw-r--r--FL/Fl_Screen_Driver.H2
-rw-r--r--FL/Fl_System_Driver.H4
-rw-r--r--FL/mac.H1
4 files changed, 7 insertions, 2 deletions
diff --git a/FL/Fl.H b/FL/Fl.H
index 563d81383..40e845cdb 100644
--- a/FL/Fl.H
+++ b/FL/Fl.H
@@ -663,7 +663,7 @@ int main() {
position your first window). If the display is not open, this will
open it.
*/
- static void get_mouse(int &,int &); // platform dependent
+ static void get_mouse(int &,int &);
/**
Returns non zero if we had a double click event.
\retval Non-zero if the most recent FL_PUSH or FL_KEYBOARD was a "double click".
diff --git a/FL/Fl_Screen_Driver.H b/FL/Fl_Screen_Driver.H
index 22eda6095..f1bee4bc9 100644
--- a/FL/Fl_Screen_Driver.H
+++ b/FL/Fl_Screen_Driver.H
@@ -133,6 +133,8 @@ public:
// optional platform-specific key handling for Fl_Input widget
// the default implementation may be enough
virtual int input_widget_handle_key(int key, unsigned mods, unsigned shift, Fl_Input *input);
+ // implement to support Fl::get_mouse()
+ virtual void get_mouse(int &x, int &y) {}
};
diff --git a/FL/Fl_System_Driver.H b/FL/Fl_System_Driver.H
index 028802c58..0c1ff5b90 100644
--- a/FL/Fl_System_Driver.H
+++ b/FL/Fl_System_Driver.H
@@ -122,6 +122,8 @@ public:
virtual int filename_isdir_quick(const char* n);
// the default implementation of filename_ext() is in src/filename_ext.cxx and may be enough
virtual const char *filename_ext(const char *buf);
+ // implement to support fl_filename_name()
+ virtual const char *filename_name(const char *buf) {return buf;}
// whether a platform uses additional code in Fl_Menu::handle(int e)
virtual int need_menu_handle_part2() {return 0;}
// whether a platform uses additional code in Fl_Menu::handle_part1(int e)
@@ -191,6 +193,8 @@ public:
static const char * const tree_close_xpm[]; // used by tree_closepixmap()
// the default implementation of tree_connector_style() is in Fl_Tree_Prefs.cxx and can be enough
virtual int tree_connector_style();
+ //implement to support copy-to-clipboard
+ virtual void copy(const char *stuff, int len, int clipboard, const char *type) {}
};
#endif // FL_SYSTEM_DRIVER_H
diff --git a/FL/mac.H b/FL/mac.H
index 37ad60fe3..ae27a95d4 100644
--- a/FL/mac.H
+++ b/FL/mac.H
@@ -165,7 +165,6 @@ public:
int set_cursor(const Fl_RGB_Image*, int, int);
static CGImageRef CGImage_from_window_rect(Fl_Window *win, int x, int y, int w, int h);
static unsigned char *bitmap_from_window_rect(Fl_Window *win, int x, int y, int w, int h, int *bytesPerPixel);
- static void clip_to_rounded_corners(CGContextRef gc, int w, int h);
private:
CGRect* subRect_; // makes sure subwindow remains inside its parent window
// stores 3 binary flags: whether window is mapped to retina display; whether resolution just changed;