Public Attributes | List of all members
minxlib::destroy_notify Struct Reference

Encapsulation of DestroyNotify events. More...

#include <event.hh>

Public Attributes

const window parent
 Parent window (for SubstructureNotify). More...
 
- Public Attributes inherited from minxlib::event
const int type
 Event type as specified in X11/X.h. More...
 
const unsigned long serial
 Last request number processed by X server. More...
 
const bool send_event
 True if triggered by SendEvent request. More...
 
const window target
 Event's target window. More...
 

Additional Inherited Members

- Public Member Functions inherited from minxlib::event
virtual ~event ()
 Event object clean-up. More...
 
- Static Public Member Functions inherited from minxlib::event
static boost::shared_ptr< eventcreate (const XEvent &e, Display *d)
 Factory method for creating events. More...
 
static void pythonize ()
 Export event class to minxlib Python module. More...
 
- Protected Types inherited from minxlib::event
typedef event *(* cr_func )(const XEvent &, Display *)
 Signature of factory functions for creating events. More...
 
typedef void(* py_func )()
 Signature of Pythonize functions. More...
 
typedef factory_map< int,
cr_func, py_func
registry
 Registry of subclass object factories and Pythonize functions. More...
 
- Protected Member Functions inherited from minxlib::event
 event (const XEvent &e, Display *d, Window w)
 Create a wrapper object for an X event. More...
 

Detailed Description

Encapsulation of DestroyNotify events.

These events are sent when windows are destroyed.

Member Data Documentation

const window minxlib::destroy_notify::parent

Parent window (for SubstructureNotify).

XDestroyWindowEvent::event refers to either the destroyed window or its parent depending on whether we chose StructureNotify or SubstructureNotify in the event mask. Minx usually cares about substructure notifications for root windows. Thus, we interpret the XDestroyWindowEvent::event value as the target window's parent.