From 4baca53944c5193947203b5a96f95bfe8954a9cb Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sun, 20 Mar 2016 08:44:30 +0000 Subject: Continue implementation of class Fl_Window_Driver according to Albrecht's plan. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This removes a bunch of friend class Fl_XXX_Window_Driver; declarations from Fl_Window.H, and therefore allows to add a new window driver without modifying the platform-independent code. The Fl_PicoXXX_Window_Driver classes have been modified but not tested ==> test needed. File Fl_X11_Window_Driver.cxx contained this: // DO NOT call this if the window is not mapped! static int can_xdbe() { ... } The new code does call can_xdbe() before any window is mapped, and does work. Since can_xdbe() asks the X server whether it supports the Xdbe extension, I don't see why this should not work without a mapped window. This point should be clarified by the author of "DO NOT call this if the window is not mapped!". git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11388 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Window_Driver.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/Fl_Window_Driver.cxx') diff --git a/src/Fl_Window_Driver.cxx b/src/Fl_Window_Driver.cxx index 5c3861685..68b4b498e 100644 --- a/src/Fl_Window_Driver.cxx +++ b/src/Fl_Window_Driver.cxx @@ -34,6 +34,15 @@ Fl_Window_Driver::~Fl_Window_Driver() { } +int Fl_Window_Driver::minw() {return pWindow->minw;} +int Fl_Window_Driver::minh() {return pWindow->minh;} +int Fl_Window_Driver::maxw() {return pWindow->maxw;} +int Fl_Window_Driver::maxh() {return pWindow->maxh;} +unsigned char Fl_Window_Driver::size_range_set() {return pWindow->size_range_set;} + +void Fl_Window_Driver::flush_single() { pWindow->Fl_Window::flush(); } +void Fl_Window_Driver::draw() { pWindow->draw(); } + void Fl_Window_Driver::take_focus() { @@ -43,11 +52,13 @@ void Fl_Window_Driver::take_focus() void Fl_Window_Driver::flush_double() { + flush_single(); } void Fl_Window_Driver::flush_overlay() { + flush_single(); } -- cgit v1.2.3