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

Encapsulation of ConfigureRequest events. More...

#include <event.hh>

Public Attributes

const window parent
 The parent window of the window to be mapped. 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 window above
 Sibling for stacking.
 
const int stack_mode
 Above, Below, TopIf, BottomIf, Opposite.
 
const unsigned long value_mask
 Bit mask indicating what has to be configured. 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 ConfigureRequest events.

We can ask the X server to redirect requests to move and resize windows to Minx so that the window manager can decide exactly how to honour these configuration requests. These redirections are delivered via ConfigureRequest events, which are wrapped by minxlib and delivered to Minx's Python core via instances of this class.

Member Data Documentation

const window minxlib::configure_request::parent

The parent window of the window to be mapped.

Since window managers are usually only concerned with top-level windows, we check this field to determine how to handle the configure request. If it is equal to the root window of some screen, the target window is a top-level window that may need to be handled in a special way (e.g., subject to the current layout policy). Non top-level windows will usually have their configure requests honoured "as-is."

const unsigned long minxlib::configure_request::value_mask

Bit mask indicating what has to be configured.

This field specifies which of the above fields are relevant to the configure request. Consult Xlib documentation for more information.