~pac72/ubuntu/lucid/ddd/devel

« back to all changes in this revision

Viewing changes to ddd/RegionGN.C

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Schepler
  • Date: 2004-07-22 03:49:37 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040722034937-cysl08t1jvba4jrx
Tags: 1:3.3.9-3
USERINFO has been renamed to USERINFO.txt; adjust debian/rules code
to match, to get correct information on the About DDD dialog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// $Id: RegionGN.C,v 1.10 1999/08/19 11:27:49 andreas Exp $
 
1
// $Id$
2
2
// RegionGraphNode class
3
3
 
4
4
// Copyright (C) 1995 Technische Universitaet Braunschweig, Germany.
27
27
// or send a mail to the DDD developers <ddd@gnu.org>.
28
28
 
29
29
char RegionGraphNode_rcsid[] = 
30
 
    "$Id: RegionGN.C,v 1.10 1999/08/19 11:27:49 andreas Exp $";
31
 
 
32
 
#ifdef __GNUG__
33
 
#pragma implementation
34
 
#endif
35
 
 
36
 
#include <iostream.h>
 
30
    "$Id$";
 
31
 
 
32
#include <iostream>
37
33
#include <string.h>
38
34
 
39
35
#include <X11/X.h>
90
86
                       h.origin(X), h.origin(Y),
91
87
                       h.space(X), h.space(Y));
92
88
    }
93
 
};
 
89
}
94
90
 
95
91
 
96
92
 
97
93
// cleanRegion
98
94
// clean a region with white ink
99
95
//
100
 
static void cleanRegion (ostream& os, const GraphGC& gc, BoxRegion region)
 
96
static void cleanRegion (std::ostream& os, const GraphGC& gc, BoxRegion region)
101
97
{
102
98
      BoxPoint origin = region.origin();
103
99
      BoxPoint width = region.space();
127
123
}
128
124
 
129
125
// Print a RegionGraphNode
130
 
void RegionGraphNode::_print(ostream& os, const GraphGC& gc) const
 
126
void RegionGraphNode::_print(std::ostream& os, const GraphGC& gc) const
131
127
{
132
128
    cleanRegion(os, gc, region(gc));
133
129
}