Contents Up Previous Next

Introduction

This manual describes a tree-drawing class library for wxWindows. It provides layout of simple trees with one root node, drawn left-to-right, with user-defined spacing between nodes.

wxTreeLayout is an abstract class that must be subclassed. The programmer defines various member functions which will access whatever data structures are appropriate for the application, and wxTreeLayout uses these when laying out the tree.

wxStoredTree is a class derived from wxTreeLayout that may be used directly to draw trees on a canvas. It supplies storage for the nodes, and draws to a device context.

Below is the example tree generated by the program test.cc.

Figure 1.1: Example tree