Warning, /education/gcompris/src/activities/calcudoku/CalcudokuCage.qml is written in an unsupported language. File is not indexed.
0001 /* GCompris - CalcudokuCage.qml 0002 * 0003 * SPDX-FileCopyrightText: 2023 Timothée Giet <animtim@gmail.com> 0004 * SPDX-License-Identifier: GPL-3.0-or-later 0005 */ 0006 import QtQuick 2.12 0007 import GCompris 1.0 0008 0009 Item { 0010 id: mCageCase 0011 property bool topWallVisible 0012 property bool leftWallVisible 0013 property bool rightWallVisible 0014 property bool bottomWallVisible 0015 0016 property int cageLineSize: 2 * Math.round(3 * ApplicationInfo.ratio / 2) 0017 0018 Rectangle { 0019 id: topWall 0020 visible: topWallVisible 0021 color: "#2a2a2a" 0022 height: cageLineSize 0023 width: parent.width + cageLineSize 0024 anchors.verticalCenter: parent.top 0025 anchors.horizontalCenter: parent.horizontalCenter 0026 } 0027 Rectangle { 0028 id: leftWall 0029 visible: leftWallVisible 0030 color: "#2a2a2a" 0031 width: cageLineSize 0032 height: parent.height + cageLineSize 0033 anchors.horizontalCenter: parent.left 0034 anchors.verticalCenter: parent.verticalCenter 0035 } 0036 Rectangle { 0037 id: rightWall 0038 visible: rightWallVisible 0039 color: "#2a2a2a" 0040 width: cageLineSize 0041 height: parent.height + cageLineSize 0042 anchors.horizontalCenter: parent.right 0043 anchors.verticalCenter: parent.verticalCenter 0044 } 0045 Rectangle { 0046 id: bottomWall 0047 visible: bottomWallVisible 0048 color: "#2a2a2a" 0049 height: cageLineSize 0050 width: parent.width + cageLineSize 0051 anchors.verticalCenter: parent.bottom 0052 anchors.horizontalCenter: parent.horizontalCenter 0053 } 0054 } 0055