While suggesting a new top_window() method for STR#2948,
it's realized that for consistency, the recently added window_offset() method (a few days ago) should be renamed to top_window_offset(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9870 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
386b12b770
commit
936f01be5c
@ -120,7 +120,7 @@ protected:
|
||||
\see force_position(int)
|
||||
*/
|
||||
int force_position() const { return ((flags() & FORCE_POSITION)?1:0); }
|
||||
Fl_Window* window_offset(int& xoff, int& yoff) const;
|
||||
Fl_Window* top_window_offset(int& xoff, int& yoff) const;
|
||||
|
||||
public:
|
||||
|
||||
|
@ -184,7 +184,7 @@ void Fl_Gl_Window::make_current() {
|
||||
|
||||
if (window()) {
|
||||
int xoff,yoff;
|
||||
const Fl_Window *win = window_offset(xoff, yoff); // STR #2944 [2]
|
||||
const Fl_Window *win = top_window_offset(xoff, yoff); // STR #2944 [2]
|
||||
xywh[0] = xoff;
|
||||
xywh[1] = win->h() - yoff - h();
|
||||
} else {
|
||||
|
@ -283,7 +283,7 @@ void Fl_Window::icon(const void * ic) {
|
||||
\param[out] xoff,yoff Returns the x/y offset
|
||||
\returns the top-level window
|
||||
*/
|
||||
Fl_Window* Fl_Window::window_offset(int& xoff, int& yoff) const {
|
||||
Fl_Window* Fl_Window::top_window_offset(int& xoff, int& yoff) const {
|
||||
xoff = yoff = 0;
|
||||
const Fl_Window *win = (const Fl_Window*)this;
|
||||
while (win && win->window()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user