Changeset View
Changeset View
Standalone View
Standalone View
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/CGUISprite.h" | |||||
#include "gui/IGUIObject.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 | ||||
Show All 9 Lines | public: | ||||
CImage(CGUI& pGUI); | CImage(CGUI& pGUI); | ||||
virtual ~CImage(); | virtual ~CImage(); | ||||
protected: | protected: | ||||
/** | /** | ||||
* Draws the Image | * Draws the Image | ||||
*/ | */ | ||||
virtual void Draw(); | virtual void Draw(); | ||||
// Settings | |||||
CGUISpriteInstance m_Sprite; | |||||
i32 m_CellID; | |||||
}; | }; | ||||
#endif // INCLUDED_CIMAGE | #endif // INCLUDED_CIMAGE |
Wildfire Games · Phabricator