00001 //--------------------------------------------------------------------------- 00002 /// \file CATLayer.h 00003 /// \brief GUI Layer object - contains sub-controls 00004 /// \ingroup CATGUI 00005 /// 00006 /// Copyright (c) 2004-2008 by Michael Ellison. 00007 /// See COPYING.txt for the \ref gaslicense License (MIT License). 00008 /// 00009 // $Author: mikeellison $ 00010 // $Date: 2008-01-23 01:43:25 -0600 (Wed, 23 Jan 2008) $ 00011 // $Revision: $ 00012 // $NoKeywords: $ 00013 // 00014 //--------------------------------------------------------------------------- 00015 #ifndef _GGLayer_H_ 00016 #define _GGLayer_H_ 00017 00018 #include "CATWidget.h" 00019 00020 class CATLayer : public CATWidget 00021 { 00022 public: 00023 /// Constructor - mirrors CATXMLObject() constructor for now. 00024 CATLayer( const CATString& element, 00025 const CATString& rootDir); 00026 00027 virtual ~CATLayer(); 00028 00029 virtual void SetEnabled(bool enabled); 00030 protected: 00031 /// ParseAttributes() parses the known attributes for an object. 00032 virtual CATResult ParseAttributes(); 00033 00034 virtual CATControl* HitTest ( const CATPOINT& point); 00035 virtual void Draw ( CATImage* image, const CATRect& dirtyRect); 00036 virtual void PostDraw ( CATDRAWCONTEXT context, const CATRect& dirtyRect); 00037 virtual void OnParentCreate ( ); 00038 virtual void OnParentDestroy ( ); 00039 00040 }; 00041 00042 #endif // _GGLayer_H_