home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programming
/
powerprogramming1994.iso
/
progtool
/
microcrn
/
issue_44.arc
/
MICROCAD.ARC
/
LINE.HPP
< prev
next >
Wrap
Text File
|
1988-09-27
|
473b
|
23 lines
// Figure 9 for "A Little CAD with C++"
// Copyright 1988 Bruce Eckel
// Permission required to distribute source
// file: line.hpp
#ifndef LINE_HPP
#define LINE_HPP
#include <fg.h>
#include "cadshape.hpp"
class line : public cadshape {
fg_line_t line_data;
public:
void draw();
line(unsigned x, unsigned y): () {
x_center = x; y_center = y;
draw();
}
void erase();
~line() { erase(); }
};
#endif LINE_HPP