File indexing completed on 2024-05-19 04:07:54
0001 /* 0002 SPDX-FileCopyrightText: 2015 Jakob Gruber <jakob.gruber@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef HIGHLIGHTITEM_H 0008 #define HIGHLIGHTITEM_H 0009 0010 #include "pixmapitem.h" 0011 0012 class HighlightItem : public PixmapItem 0013 { 0014 public: 0015 /* creates a highlight at field coordinates (x,y) */ 0016 HighlightItem(Renderer::Resource resource, int x, int y, QGraphicsItem *parent = nullptr); 0017 0018 /* switches current highlight on/off according to the currently 0019 focused point p */ 0020 void highlight(const QPoint &p); 0021 }; 0022 0023 #endif // HIGHLIGHTITEM_H