diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-12 15:11:40 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-12 15:11:40 +1300 |
commit | e324057cbd9b02704172bb5db4163f4a0c276288 (patch) | |
tree | 35afdc681d278049acc62ae61366b6da46122128 /src/c_fl_double_window.cpp | |
parent | f8b638b57cc1318ef3536efae662b54b3d14a3bb (diff) |
Closed a few gaps in the APIs of Window derivatives
Diffstat (limited to 'src/c_fl_double_window.cpp')
-rw-r--r-- | src/c_fl_double_window.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/c_fl_double_window.cpp b/src/c_fl_double_window.cpp index 4bbe48b..93c3f49 100644 --- a/src/c_fl_double_window.cpp +++ b/src/c_fl_double_window.cpp @@ -18,6 +18,17 @@ extern "C" int widget_handle_hook(void * ud, int e); +// Non-friend protected access + +class Friend_Double_Window : Fl_Double_Window { +public: + // Only needed for the (int) version + using Fl_Double_Window::flush; +}; + + + + // Attaching all relevant hooks and friends class My_Double_Window : public Fl_Double_Window { @@ -77,6 +88,11 @@ void fl_double_window_flush(DOUBLEWINDOW d) { reinterpret_cast<Fl_Double_Window*>(d)->flush(); } +void fl_double_window_flush2(DOUBLEWINDOW d, int e) { + void (Fl_Double_Window::*myflush)(int) = &Friend_Double_Window::flush; + (reinterpret_cast<Fl_Double_Window*>(d)->*myflush)(e); +} + |