Create default implementation of Fl_Screen_Driver::get_system_scheme() and use it for macOS and Windows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13137 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
46f08f6d21
commit
91bb8bce1f
@ -103,6 +103,7 @@ public:
|
||||
/* the default implementation of parse_color() may be enough */
|
||||
virtual int parse_color(const char* p, uchar& r, uchar& g, uchar& b);
|
||||
virtual void get_system_colors() { }
|
||||
/* the default implementation of get_system_scheme() may be enough */
|
||||
virtual const char *get_system_scheme();
|
||||
// --- global timers
|
||||
virtual void add_timeout(double time, Fl_Timeout_Handler cb, void *argp) { }
|
||||
|
@ -137,7 +137,7 @@ int Fl_Screen_Driver::screen_num(int x, int y, int w, int h)
|
||||
|
||||
const char *Fl_Screen_Driver::get_system_scheme()
|
||||
{
|
||||
return 0L;
|
||||
return fl_getenv("FLTK_SCHEME");
|
||||
}
|
||||
|
||||
/** The bullet character used by default by Fl_Secret_Input */
|
||||
|
@ -77,7 +77,6 @@ public:
|
||||
virtual void grab(Fl_Window* win);
|
||||
// --- global colors
|
||||
virtual void get_system_colors();
|
||||
virtual const char *get_system_scheme();
|
||||
// --- global timers
|
||||
virtual void add_timeout(double time, Fl_Timeout_Handler cb, void *argp);
|
||||
virtual void repeat_timeout(double time, Fl_Timeout_Handler cb, void *argp);
|
||||
|
@ -217,12 +217,6 @@ void Fl_Cocoa_Screen_Driver::get_system_colors()
|
||||
}
|
||||
|
||||
|
||||
const char *Fl_Cocoa_Screen_Driver::get_system_scheme()
|
||||
{
|
||||
return fl_getenv("FLTK_SCHEME");
|
||||
}
|
||||
|
||||
|
||||
int Fl_Cocoa_Screen_Driver::has_marked_text() {
|
||||
return true;
|
||||
}
|
||||
|
@ -69,7 +69,6 @@ public:
|
||||
virtual void grab(Fl_Window* win);
|
||||
// --- global colors
|
||||
virtual void get_system_colors();
|
||||
virtual const char *get_system_scheme();
|
||||
// --- global timers
|
||||
virtual void add_timeout(double time, Fl_Timeout_Handler cb, void *argp);
|
||||
virtual void repeat_timeout(double time, Fl_Timeout_Handler cb, void *argp);
|
||||
|
@ -341,12 +341,6 @@ void Fl_WinAPI_Screen_Driver::get_system_colors()
|
||||
}
|
||||
|
||||
|
||||
const char *Fl_WinAPI_Screen_Driver::get_system_scheme()
|
||||
{
|
||||
return fl_getenv("FLTK_SCHEME");
|
||||
}
|
||||
|
||||
|
||||
// ---- timers
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user