summaryrefslogtreecommitdiff
path: root/src/Fl_Window_Driver.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2016-03-24 01:20:08 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2016-03-24 01:20:08 +0000
commit4a31fd7aed27f2429724922f2dc77c83f608c904 (patch)
treea5dc238569974398c24b730731eed963c174ab7e /src/Fl_Window_Driver.cxx
parentabc12cd376a615af7182b81a435fa2ccb63e4e5d (diff)
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
Diffstat (limited to 'src/Fl_Window_Driver.cxx')
-rw-r--r--src/Fl_Window_Driver.cxx4
1 files changed, 2 insertions, 2 deletions
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();
}