123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #ifndef HEADER_FLEXLAY_TILE_EDITOR_HPP
- #define HEADER_FLEXLAY_TILE_EDITOR_HPP
- #include <ClanLib/GUI/component.h>
- class Tile;
- class TileEditor : public CL_Component
- {
- private:
- Tile* tile;
- CL_SlotContainer slots;
- CL_Point mouse_pos;
- protected:
- virtual ~TileEditor();
- public:
- TileEditor(int x, int y, int w, int h, CL_Component* parent);
- void draw();
- void mouse_move(const CL_InputEvent& event);
- void mouse_down(const CL_InputEvent& event);
- void mouse_up (const CL_InputEvent& event);
- void set_tile(Tile* tile);
- private:
- void paint(CL_Point pos, bool val);
- TileEditor (const TileEditor&);
- TileEditor& operator= (const TileEditor&);
- };
- #endif
|