Version 0.13.0

Arjan Molenaar

Abstract

This is the DiaCanvas2 reference manual. It contains information about how to use the DiaCanvas2. This documentation is written for people who want to start programming with DiaCanvas2.

In DiaCanvas2 the canvas model is discussed. In Linear Constraint Solver the usage and rationale behind the DiaSolver class is explained. The solver is used to keep connections between objects true. The third chapter tells you about some standard objects. Visualization is explained in Visualization and Interaction. A view will allow you to display the (abstract) contents of a DiaCanvas in a window. This will also tell you something about the default behavior of the canvas(-views). The last chapter discusses some functions for determining distances and intersections of points, lines and rectangles.


Table of Contents

DiaCanvas2
Linear Constraint Solver
Standard objects
Visualization and Interaction
DiaCanvas2 Geometric Functions
Python bindings
Creating canvas items in Python

List of Figures

1. UML model of the DiaCanvas model
1. UML model of the DiaSolver
1. A line
2. Arrow head
3. A box element
1. UML model of the DiaCanvasView

List of Examples

1. Undo example from dia-canvas-line.c