You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
830 B

#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