12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #ifndef HEADER_FLEXLAY_MINIMAP_HPP
- #define HEADER_FLEXLAY_MINIMAP_HPP
- #include <ClanLib/GUI/component.h>
- #include <ClanLib/Core/System/sharedptr.h>
- #include <memory>
- class MinimapImpl;
- class EditorMapComponent;
- class Minimap : public CL_Component
- {
- protected:
- virtual ~Minimap() {}
- public:
- Minimap(EditorMapComponent* p, const CL_Rect& rect, CL_Component* parent);
- void draw();
- void update_minimap();
- void mouse_move(const CL_InputEvent& event);
- void mouse_down(const CL_InputEvent& event);
- void mouse_up (const CL_InputEvent& event);
- private:
- std::shared_ptr<MinimapImpl> impl;
- };
- #endif
|