porymap/include/ui/mapview.h
2022-01-01 16:39:32 -06:00

27 lines
666 B
C++

#ifndef MAPVIEW_H
#define MAPVIEW_H
#include "graphicsview.h"
#include "overlay.h"
class MapView : public GraphicsView
{
public:
MapView() : GraphicsView() {}
MapView(QWidget *parent) : GraphicsView(parent) {}
Overlay * getOverlay(int layer);
void clearOverlays();
void setOverlaysHidden(bool hidden);
void setOverlaysX(int x);
void setOverlaysY(int y);
void setOverlaysPosition(int x, int y);
void moveOverlays(int deltaX, int deltaY);
void setOverlaysOpacity(int opacity);
public:
QMap<int, Overlay*> overlayMap;
protected:
void drawForeground(QPainter *painter, const QRectF &rect);
};
#endif // GRAPHICSVIEW_H