Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/gui/CImage.h
Show All 12 Lines | |||||
* | * | ||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | * along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
#ifndef INCLUDED_CIMAGE | #ifndef INCLUDED_CIMAGE | ||||
#define INCLUDED_CIMAGE | #define INCLUDED_CIMAGE | ||||
#include "GUI.h" | #include "gui/IGUIObject.h" | ||||
/** | /** | ||||
* Object just for drawing a sprite. Like CText, without the | * Object just for drawing a sprite. Like CText, without the | ||||
* possibility to draw text. | * possibility to draw text. | ||||
* | * | ||||
* Created, because I've seen the user being indecisive about | * Created, because I've seen the user being indecisive about | ||||
* what control to use in these situations. I've seen button | * what control to use in these situations. I've seen button | ||||
* without functionality used, and that is a lot of unnecessary | * without functionality used, and that is a lot of unnecessary | ||||
* overhead. That's why I thought I'd go with an intuitive | * overhead. That's why I thought I'd go with an intuitive | ||||
* control. | * control. | ||||
* | |||||
* @see IGUIObject | |||||
*/ | */ | ||||
class CImage : public IGUIObject | class CImage : public IGUIObject | ||||
{ | { | ||||
GUI_OBJECT(CImage) | GUI_OBJECT(CImage) | ||||
public: | public: | ||||
CImage(CGUI& pGUI); | CImage(CGUI& pGUI); | ||||
virtual ~CImage(); | virtual ~CImage(); | ||||
Show All 9 Lines |
Wildfire Games · Phabricator