Logo Search packages:      
Sourcecode: fbpager version File versions  Download package

FbTk::FbWindow * FbPager::Workspace::find ( Window  win  ) 

Find associated FbWindow to win.

Returns:
0 on failure

Definition at line 229 of file Workspace.cc.

References m_windowlist.

Referenced by add(), and remove().

                                        {
    WindowList::iterator it = m_windowlist.begin();
    WindowList::iterator it_end = m_windowlist.end();
    for (; it != it_end; ++it) {
        if ((*it).second->window() == win || 
            (*it).first == win) 
            return it->second;
    }
    return 0;
}


Generated by  Doxygen 1.6.0   Back to index