home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / yacl-012.zip / ui / canvas.h < prev    next >
C/C++ Source or Header  |  1995-04-08  |  2KB  |  66 lines

  1.  
  2. #ifndef _canvas_h_ /* Thu Dec 15 12:54:38 1994 */
  3. #define _canvas_h_
  4.  
  5.  
  6.  
  7.  
  8. /*
  9.  *
  10.  *          Copyright (C) 1994, M. A. Sridhar
  11.  *  
  12.  *
  13.  *     This software is Copyright M. A. Sridhar, 1994. You are free
  14.  *     to copy, modify or distribute this software  as you see fit,
  15.  *     and to use  it  for  any  purpose, provided   this copyright
  16.  *     notice and the following   disclaimer are included  with all
  17.  *     copies.
  18.  *
  19.  *                        DISCLAIMER
  20.  *
  21.  *     The author makes no warranties, either expressed or implied,
  22.  *     with respect  to  this  software, its  quality, performance,
  23.  *     merchantability, or fitness for any particular purpose. This
  24.  *     software is distributed  AS IS.  The  user of this  software
  25.  *     assumes all risks  as to its quality  and performance. In no
  26.  *     event shall the author be liable for any direct, indirect or
  27.  *     consequential damages, even if the  author has been  advised
  28.  *     as to the possibility of such damages.
  29.  *
  30.  */
  31.  
  32.  
  33. // A Canvas is a visual object that can be used for drawing.
  34.  
  35.  
  36.  
  37. #if defined(__GNUC__)
  38. #pragma interface
  39. #endif
  40.  
  41.  
  42. #include "ui/visualob.h"
  43.  
  44. class CL_EXPORT UI_Canvas: public UI_VisualObject {
  45.  
  46. public:
  47.     UI_Canvas (UI_VObjCollection* parent, const UI_Rectangle& shape,
  48.                UI_ViewID id = -1);
  49.  
  50.     ~UI_Canvas () {};
  51.     
  52.     virtual UI_WindowClass WindowClass () const;
  53.     
  54.     const char* ClassName () const { return "UI_Canvas";};
  55.  
  56.  
  57. protected:
  58.     void _PrivateInitialize ();
  59.     
  60.     void Finalize ();
  61.  
  62. };
  63.  
  64.  
  65. #endif /* _canvas_h_ */
  66.