porymap/include/ui/currentselectedmetatilespixmapitem.h

25 lines
707 B
C
Raw Normal View History

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