home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / include / xlayer.h < prev    next >
C/C++ Source or Header  |  1998-04-06  |  1KB  |  34 lines

  1. #ifndef __OOL_XLAYER_H__
  2. #define __OOL_XLAYER_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  6. /*===========================================================================*/
  7. /*                              class: XLayer                                */
  8. /*                       derived from: XObject                               */
  9. /*                        last update: 1/98                                  */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13.  
  14. #include "xgraphob.h"
  15.  
  16. class _export_ XLayer: public XObject
  17. {
  18.    private:
  19.       XGraphicObject ** list;
  20.       USHORT listCount;
  21.    public:
  22.       XLayer() { list = NULL; listCount = 0; }
  23.       void Draw( XGraphicDevice*dev)
  24.          {
  25.             for(int i = 0; i < listCount; i++)
  26.                list[i]->Draw(dev);
  27.          }
  28.       void Empty(const BOOL destroyAll=TRUE);
  29.       void AddObject ( const XGraphicObject*);
  30.       XGraphicObject * FindObject( const LONG x, const LONG y, const XGraphicObject * searchBehind = NULL);
  31.       BOOL RemoveObject( XGraphicObject*, const BOOL destroyObject = TRUE);
  32. };
  33.  
  34. #endif