Tracker.py is a Python module that tracks changes to Fvwm
windows. By feeding it every packet that the
Fvwm.py module receives, your extension can maintain an
accurate database of every window, and the entire desktop -- at least
so far as Fvwm informs modules!
- A class which tracks changes to Fvwm windows, by processing
packets sent from Fvwm.
- A class containing public instance variables describing the
attributes of an Fvwm window.
The Tracker class maintains a database of all the Fvwm
windows, the module has been notified about. Typically you do not
instantiate a Tracker object directly; instead, you get an
instance by calling FvwmModule.get_windowlist() in the
Fvwm.py module. This instance can then be
fed any and all packets as they are read from Fvwm. This keeps the
The Tracker class contains the following useful methods and
public instance variables:
- Feed a packet object to the Tracker. You can safely
feed the tracker all packets, which will keep it's internal
- Returns the number of windows in the tracker's database.
- Returns a list of all windows in the database.
- Return the window indexed by db_entry, Fvwm's
internal database entry index for the window.
- x, y
- Fvwm's current viewport origin.
- Fvwm's currently active desk number.
- max_x, max_y
- The maximum allowed values of the coordinates of the
upper-left hand corner of the viewport.
The Window class is essentially a record, with public
instance variables that describe all known attributes about every
tracked window. The instance variables are:
- The window's name.
- The window's icon name.
- The icon's file name.
- The window's resource class.
- The window's resource name.
- The application's top level window ID
- The Fvwm frame window ID
- Fvwm's internal database entry index for the window.
- x, y, width, height
- The origin and size of the window
- The desktop the window is currently on.
- The window flags for the window.
- The window's title height.
- The window's border width.
- base_width, base height
- The window's base width and height.
- resize_width_incr, resize_height_incr
- The window's resize increment in both dimensions
- min_width, min_height,
- The limits of the window's size in both dimensions
- icon_x, icon_y,
- The icon's origin and size.
- The icon's label window ID
- The icon's pixmap window ID
- The window's gravity
- The pixel value of the window's text color
- The pixel value of the window's border color