File indexing completed on 2022-11-29 18:38:55

0001 /*
0002     KBlackBox - A simple game inspired by an emacs module
0003 
0004     SPDX-FileCopyrightText: 2007 Nicolas Roffet <nicolas-kde@roffet.com>
0005 
0006     SPDX-License-Identifier: GPL-2.0-or-later
0007 */
0008 
0009 #include "kbbgraphicsitemtutorialmarker.h"
0010 
0011 
0012 
0013 //
0014 // Constructor / Destructor
0015 //
0016 
0017 KBBGraphicsItemTutorialMarker::KBBGraphicsItemTutorialMarker(KBBScalableGraphicWidget* parent, KBBThemeManager* themeManager, const int columns, const int rows) : KBBGraphicsItemBorder(NO_POSITION, columns, rows, 0), KBBGraphicsItem(KBBScalableGraphicWidget::tutorialMarker, parent->scene(), themeManager)
0018 {
0019     m_borderPosition = NO_POSITION;
0020     setBorderPosition(m_borderPosition);
0021 }
0022 
0023 
0024 
0025 //
0026 // Public
0027 //
0028 
0029 void KBBGraphicsItemTutorialMarker::setBorderPosition(const int borderPosition)
0030 {
0031     KBBGraphicsItemBorder::setBorderPosition(borderPosition);
0032     setPos(centerX() - KBBScalableGraphicWidget::RATIO/2, centerY() - KBBScalableGraphicWidget::RATIO/2);
0033 }