#ifndef __SDL_MAP_VIEW_WIDGET_HEADER__ #define __SDL_MAP_VIEW_WIDGET_HEADER__ #include "../core/coreWidget.h" #include "sdlmap/tile_collection.h" class sdlMapView: public sdlCoreWidget { private: int width, height; int offsetx, offsety; TileCollection tiles; protected: //void resize(int width, int height); //void update_bounds(); //void render(); virtual void drawBefore(SDL_Renderer* pRenderer) {}; virtual void drawAfter(SDL_Renderer* pRenderer) {}; public: int zoom; sdlMapView(int x, int y, int width, int height, bool decor = true, sdlCoreWidget* pParent = NULL);//(SDL_Window *window, int width, int height, int zoom); virtual ~sdlMapView(); void setCenter(double lat, double lng); void moveBy(int dx, int dy); void zoomAt(int x, int y); void zoomIn(); void zoomOut(); }; #endif