00001 //--------------------------------------------------------------------------- 00002 /// \file CATPicture.h 00003 /// \brief Static picture for GUI 00004 /// \ingroup CATGUI 00005 /// 00006 /// Copyright (c) 2003-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 //--------------------------------------------------------------------------- 00016 #ifndef _GGPicture_H_ 00017 #define _GGPicture_H_ 00018 00019 #include "CATControl.h" 00020 00021 class CATPicture; 00022 00023 /// \class CATPicture CATPicture.h 00024 /// \brief Static picture for GUI 00025 /// \ingroup CATGUI 00026 class CATPicture : public CATControl 00027 { 00028 public: 00029 /// CATPicture constructor (inherited from CATControl->CATXMLObject) 00030 /// \param element - Type name ("Picture") 00031 /// \param attribs - attribute information for the window 00032 /// \param parent - parent XML object (should be a "Window" element) 00033 /// \param rootDir - root directory of skin for bin/png loads 00034 CATPicture( const CATString& element, 00035 const CATString& rootDir); 00036 00037 virtual ~CATPicture(); 00038 00039 /// IsFocusable() returns true if the control can receive 00040 /// focus, and false otherwise. 00041 virtual bool IsFocusable() const; 00042 00043 /// Draw() draws the control into the parent's image 00044 /// \param image - parent's image to draw into 00045 /// \param dirtyRect - portion of control (in window coordinates) 00046 /// that requires redrawing. 00047 virtual void Draw(CATImage* image, const CATRect& dirtyRect); 00048 00049 protected: 00050 00051 }; 00052 00053 #endif // _GGPicture_H_ 00054 00055