porymap/include/ui/currentselectedmetatilespixmapitem.h

24 lines
670 B
C
Raw Permalink Normal View History

2018-09-27 00:30:05 +01:00
#ifndef CURRENTSELECTEDMETATILESPIXMAPITEM_H
#define CURRENTSELECTEDMETATILESPIXMAPITEM_H
#include "map.h"
#include "metatileselector.h"
#include <QGraphicsPixmapItem>
2021-02-18 13:43:52 +00:00
class CurrentSelectedMetatilesPixmapItem : public QGraphicsPixmapItem {
2018-09-27 00:30:05 +01:00
public:
CurrentSelectedMetatilesPixmapItem(Map *map, MetatileSelector *metatileSelector) {
this->map = map;
this->metatileSelector = metatileSelector;
}
Map* map = nullptr;
MetatileSelector *metatileSelector;
void draw();
void setMap(Map *map) { this->map = map; }
2018-09-27 00:30:05 +01:00
};
2022-09-06 02:51:31 +01:00
QPixmap drawMetatileSelection(MetatileSelection selection, Map *map);
2018-09-27 00:30:05 +01:00
#endif // CURRENTSELECTEDMETATILESPIXMAPITEM_H