Department of Computer Science | Institute of Theoretical Computer Science | CADMO

Theory of Combinatorial Algorithms

Prof. Emo Welzl and Prof. Bernd Gärtner

Reference Manual: Navigation: Up, Table of Contents, Index,

Libwindow - a small X11-library

This is a short and probably incomplete description of Libwindow, a small library which aims to present an easy C++ interface to the X11 window system. If you want to use the library in your program, do not forget the following include directive.

#include <IFM/window>

The Window Class

A default Window

ifm::Wstream ifm::wio;

ifm::wio can be used whenever one default ifm::Wstream suffices. It is a so called proxy, i.e., the corresponding X-window and graphic context are created, when ifm::wio is used the first time. Consequently, if ifm::wio is not used anywhere, this creation does not happen and hence no window appears.

What can be drawn (ifm::Drawable)

Here is a list of classes/objects that can be drawn into an ifm::Wstream using the operator <<.

What can be read (ifm::Getable)

Here is a list of classes/objects that can be read from an ifm::Wstream using the operator >>.

ifm::Point, ifm::Line, ifm::Rectangle, ifm::FilledRectangle, ifm::Circle, ifm::Ellipse, ifm::FilledCircle, and ifm::FilledEllipse.


Next chapter: Libturtle - Turtle Graphics
Navigation: Up, Table of Contents, Index,
Michael Hoffmann. Wed, November 17, 2004.