RtB/src/gui/GuiButton.hpp

16 lines
361 B
C++

#ifndef GUIBUTTON_HPP
#define GUIBUTTON_HPP
#include "GuiElement.hpp"
#include <string>
#include "Texture.hpp"
class GuiButton : public GuiElement {
public:
GuiButton(std::string text, Texture *texture);
~GuiButton();
virtual int doUpdate(int c_width, int c_height);
protected:
Texture *texture; // image texture for button image
};
#endif