home *** CD-ROM | disk | FTP | other *** search
/ Resource for Source: C/C++ / Resource for Source - C-C++.iso / misc_src / knowhow4 / bldraw.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-01  |  405 b   |  23 lines

  1. #include "bldraw.h"
  2.  
  3. BlockDraw::BlockDraw(rect coord)
  4.     {
  5.     w1 = new Window(coord, "", "", 0, NO_BORDER, NO_BORDER, FIXED);
  6.  
  7.     background(w1);
  8.  
  9.     rect r = textRect(w1->bound());
  10.  
  11.     draw = new Draw(r);
  12.  
  13.     add(draw);
  14.     draw->set_ret(1);
  15.  
  16.     }
  17. /////////////////////
  18. void BlockDraw::rearrange()
  19.     {
  20.     rect coord = textRect(w1->bound());
  21.     draw->repose(coord);
  22.     }
  23.