game/mario/edit_box.hpp

16 lines
410 B
C++
Raw Normal View History

2021-05-07 07:43:57 +00:00
#ifndef EDIT_BOX_H
#define EDIT_BOX_H
2021-05-02 12:14:11 +00:00
#include "../sdlpp/sdlpp.hpp"
class EditBox : public SDLPP::RectangleRender {
public:
2021-06-01 08:18:33 +00:00
EditBox(int x, int y, float start_x, float start_y, int map_width, int map_height, std::shared_ptr<SDLPP::Renderer> renderer);
2021-05-07 07:43:57 +00:00
virtual SDLPP::Vec2D<int> getIndexes() const;
virtual void visit( SDLPP::Visitor &visitor ) override;
2021-05-02 12:14:11 +00:00
private:
int _x;
int _y;
};
2021-05-07 07:43:57 +00:00
#endif