diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-01-07 07:50:23 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-01-07 07:50:36 +0100 |
| commit | 27c175dad8470229a512540edaae24787c65c3b7 (patch) | |
| tree | f2c248d20b8a94599f26c55913cec4f65d5524a2 /src | |
| parent | 9d474dfcdf32993fc93d2b1b87a2e8ba1cf927e5 (diff) | |
Add virtual void Fl_Graphics_Driver::set_status() and implement for X11 platform.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Graphics_Driver.cxx | 2 | ||||
| -rw-r--r-- | src/Fl_cocoa.mm | 5 | ||||
| -rw-r--r-- | src/Fl_win32.cxx | 2 | ||||
| -rw-r--r-- | src/Fl_x.cxx | 2 | ||||
| -rw-r--r-- | src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H | 1 | ||||
| -rw-r--r-- | src/fl_font.cxx | 5 |
6 files changed, 9 insertions, 8 deletions
diff --git a/src/Fl_Graphics_Driver.cxx b/src/Fl_Graphics_Driver.cxx index 8329355ba..4601568a3 100644 --- a/src/Fl_Graphics_Driver.cxx +++ b/src/Fl_Graphics_Driver.cxx @@ -124,6 +124,8 @@ void Fl_Graphics_Driver::set_spot(int font, int size, int X, int Y, int W, int H // nothing to do, reimplement in driver if needed } +void Fl_Graphics_Driver::set_status(int X, int Y, int W, int H) {} + /** see fl_reset_spot() */ void Fl_Graphics_Driver::reset_spot() diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index ad4e21c8f..faab62392 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -141,11 +141,6 @@ static CFStringRef kTISPropertyInputSourceType; typedef void (*KeyScript_type)(short); static KeyScript_type KeyScript; -/* fltk-utf8 placekeepers */ -void fl_set_status(int x, int y, int w, int h) -{ -} - /* * Mac keyboard lookup table diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 9b972a9f7..20fc5ea13 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -328,8 +328,6 @@ static struct FD { extern unsigned int fl_codepage; -void fl_set_status(int x, int y, int w, int h) {} - void Fl_WinAPI_System_Driver::add_fd(int n, int events, void (*cb)(FL_SOCKET, void *), void *v) { remove_fd(n, events); int i = nfds++; diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 55c249ecd..f76d45980 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -585,7 +585,7 @@ static void fl_new_ic() } -void fl_set_status(int x, int y, int w, int h) +void Fl_Xlib_Graphics_Driver::set_status(int x, int y, int w, int h) { XVaNestedList status_attr; status_area.x = x; diff --git a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H index 4dbf3c3ce..f7619ef10 100644 --- a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H +++ b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H @@ -208,6 +208,7 @@ protected: virtual float scale_bitmap_for_PostScript(); virtual void set_spot(int font, int size, int X, int Y, int W, int H, Fl_Window *win); virtual void reset_spot(); + virtual void set_status(int X, int Y, int W, int H); virtual const char* get_font_name(Fl_Font fnum, int* ap); virtual int get_font_sizes(Fl_Font fnum, int*& sizep); #if !USE_XFT diff --git a/src/fl_font.cxx b/src/fl_font.cxx index 24d547e8f..df7df43d7 100644 --- a/src/fl_font.cxx +++ b/src/fl_font.cxx @@ -58,3 +58,8 @@ void fl_reset_spot() { Fl_Graphics_Driver::default_driver().reset_spot(); } + +void fl_set_status(int X, int Y, int W, int H) +{ + Fl_Graphics_Driver::default_driver().set_status(X, Y, W, H); +} |
