nanogui: nanox+flnx problem
Subject:
Re: [nanogui] nanox+flnx problem
From:
Florian Berger ####@####.####
Date:
16 Jul 2002 22:20:58 -0000
Message-Id: <20020717000715.12fd6325.harpin_floh@yahoo.de>
i tried to reimplement the x() and y() routines in Fl_Window by making
them virtual:
virtual FL_EXPORT int x() const {
if( this->window() ){
return Fl_Widget::x();
} else {
#ifdef NANO_X
GR_WINDOW_INFO info;
GrGetWindowInfo(this->i->xid,&info);
printf("Fl_Window::x() - root coord %d\n", info.x);
return info.x;
#else
return Fl_Widget::x();
#endif
}
}
but actually the compiler gives me:
In file included from ../FL/n_x.h:42,
from ../FL/x.H:43,
from Fl.cxx:27:
../FL/Fl_Window.H: In method `int Fl_Window::x() const':
../FL/Fl_Window.H:69: invalid use of undefined type `class Fl_X'
why this ?
-floh