30 if( m_this ==
nullptr )
47 m_map.insert( Map::value_type(w.
x(),&w) ) ;
52 m_map.erase( w.
x() ) ;
57 Map::const_iterator p = m_map.find( w ) ;
58 if( p == m_map.end() )
60 return *((*p).second) ;
A window class that is-a GX::Drawable and a GX::EventHandler.
::Window x()
Returns the X object.
void add(GX::Window &w)
Adds a window.
GX::Window & find(::Window w) const
Finds a window. Throws if not found.
Exception class for GX::WindowMap.
A class that can locate a GX::Window object based on a Xlib window handle.
void remove(GX::Window &w)
Removes a window.
static WindowMap * instance()
Singleton access. Returns nullptr if none.