From 4a31fd7aed27f2429724922f2dc77c83f608c904 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Thu, 24 Mar 2016 01:20:08 +0000 Subject: Provide Fl_Window_Driver accessor methods for public Fl_Window attributes. These methods are intended to be used instead of pWindow->method() for better code readability and easier porting of methods from Fl_Window to Fl_Window_Driver. New methods: x(), y(), y(), h(), shown(), parent(), border(), visible(), and visible_r(). We should add more such methods if appropriate. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11414 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Window_Driver.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Fl_Window_Driver.cxx') diff --git a/src/Fl_Window_Driver.cxx b/src/Fl_Window_Driver.cxx index 6627ed069..795031824 100644 --- a/src/Fl_Window_Driver.cxx +++ b/src/Fl_Window_Driver.cxx @@ -163,7 +163,7 @@ void Fl_Window_Driver::capture_titlebar_and_borders(Fl_Shared_Image*& top, Fl_Sh int Fl_Window_Driver::hide_common() { pWindow->clear_visible(); - if (!pWindow->shown()) return 1; + if (!shown()) return 1; // remove from the list of windows: Fl_X* ip = Fl_X::i(pWindow); @@ -198,7 +198,7 @@ int Fl_Window_Driver::hide_common() { void Fl_Window_Driver::use_border() { - if (pWindow->shown()) { + if (shown()) { pWindow->hide(); // hide and then show to reflect the new state of the window border pWindow->show(); } -- cgit v1.2.3