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

  1.  
  2.  
  3. /*
  4.  *
  5.  *          Copyright (C) 1994, M. A. Sridhar
  6.  *  
  7.  *
  8.  *     This software is Copyright M. A. Sridhar, 1994. You are free
  9.  *     to copy, modify or distribute this software  as you see fit,
  10.  *     and to use  it  for  any  purpose, provided   this copyright
  11.  *     notice and the following   disclaimer are included  with all
  12.  *     copies.
  13.  *
  14.  *                        DISCLAIMER
  15.  *
  16.  *     The author makes no warranties, either expressed or implied,
  17.  *     with respect  to  this  software, its  quality, performance,
  18.  *     merchantability, or fitness for any particular purpose. This
  19.  *     software is distributed  AS IS.  The  user of this  software
  20.  *     assumes all risks  as to its quality  and performance. In no
  21.  *     event shall the author be liable for any direct, indirect or
  22.  *     consequential damages, even if the  author has been  advised
  23.  *     as to the possibility of such damages.
  24.  *
  25.  */
  26.  
  27. #if defined(__GNUC__)
  28. #pragma implementation
  29. #endif
  30.  
  31.  
  32.  
  33. #include "ui/graphic.h"
  34. #include "ui/rectangl.h"
  35.  
  36.  
  37. bool UI_GraphicObject::ReshapeTo (const UI_Point&, const UI_Point&)
  38. {
  39.     return FALSE;
  40. }
  41.  
  42. bool UI_GraphicObject::Fill   (UI_DrawingSurface&) const
  43. {
  44.     return FALSE;
  45. }
  46.  
  47. UI_HitTest UI_GraphicObject::HitTest (const UI_Point& p) const
  48. {
  49.     return BoundingRectangle().HitTest (p);
  50. }
  51.  
  52.  
  53. bool UI_GraphicObject::IntersectsBoundary (const UI_Rectangle& r) const
  54. {
  55.     return BoundingRectangle().IntersectsBoundary (r);
  56. }
  57.  
  58.  
  59.  
  60. UI_Point UI_GraphicObject::Center () const
  61. {
  62.     return BoundingRectangle().Center ();
  63. }
  64.  
  65.  
  66.  
  67. UI_Rectangle UI_GraphicObject::BoundingRectangle () const
  68. {
  69.     NotImplemented ("BoundingRectangle");
  70.     return UI_Rectangle (0, 0, 0, 0);
  71. }
  72.  
  73.  
  74. bool UI_GraphicObject::IsContainedIn (const UI_Rectangle& r) const
  75. {
  76.     return BoundingRectangle().IsContainedIn (r);
  77. }
  78.