File indexing completed on 2024-04-14 03:59:19
0001 /* 0002 KBlackBox - A simple game inspired by an emacs module 0003 0004 SPDX-FileCopyrightText: 1999-2000 Robert Cimrman <cimrman3@students.zcu.cz> 0005 SPDX-FileCopyrightText: 2007 Nicolas Roffet <nicolas-kde@roffet.com> 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 0010 0011 0012 #ifndef KBBGRAPHICSITEMRAY_H 0013 #define KBBGRAPHICSITEMRAY_H 0014 0015 0016 class QColor; 0017 #include <QGraphicsPathItem> 0018 class QGraphicsScene; 0019 0020 0021 class KBBBallsOnBoard; 0022 #include "kbbgraphicsitemborder.h" 0023 #include "kbbscalablegraphicwidget.h" 0024 class KBBThemeManager; 0025 0026 0027 0028 /** 0029 * @brief Ray on the scalable graphic widget of KBlackBox 0030 * 0031 */ 0032 class KBBGraphicsItemRay : public KBBGraphicsItemBorder, public QGraphicsPathItem 0033 { 0034 public: 0035 //KBBGraphicsItemRay(QGraphicsScene* scene, QColor color, const qreal width, Qt::PenStyle style, const int zValue); 0036 /** 0037 * @brief Constructor 0038 */ 0039 KBBGraphicsItemRay(KBBScalableGraphicWidget::itemType itemType, QGraphicsScene* scene, KBBThemeManager* themeManager); 0040 0041 0042 void draw(KBBBallsOnBoard* ballsOnBoard, const int borderPosition); 0043 void hide(); 0044 }; 0045 0046 #endif // KBBGRAPHICSITEMRAY_H