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

Encapsulation of CreateNotify events. More...

#include <event.hh>

Public Attributes

const window parent
 Parent of new window. More...
 
const int x
 Origin x-coordinate relative to parent.
 
const int y
 Origin y-coordinate relative to parent.
 
const int width
 Window width.
 
const int height
 Window height.
 
const int border_width
 Size of window border.
 
const bool override_redirect
 Should the window manager ignore this window? 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 CreateNotify events.

Minx's Python core can use these notifications to know when a new window is created.

Member Data Documentation

const bool minxlib::create_notify::override_redirect

Should the window manager ignore this window?

If this flag is on, the window manager should ignore the new window.

const window minxlib::create_notify::parent

Parent of new window.

This field specifies the parent window of the new window. If it is equal to the root window of some screen, the target window is a top-level window that we need to be concerned with. We usually don't care about non top-level windows.