Kstars

skyopacitynode.cpp
1/*
2 SPDX-FileCopyrightText: 2016 Artem Fedoskin <afedoskin3@gmail.com>
3 SPDX-License-Identifier: GPL-2.0-or-later
4*/
5
6#include "skyopacitynode.h"
7
8SkyOpacityNode::SkyOpacityNode()
9{
10}
11
13{
14 if (opacity() == 0)
15 {
16 setOpacity(1);
18 }
19}
20
22{
23 if (opacity() != 0)
24 {
25 setOpacity(0);
27 }
28}
29
31{
32 if (opacity() != 0)
33 {
34 return true;
35 }
36 return false;
37}
virtual void show()
makes this node visible
virtual void hide()
hides this node
void markDirty(DirtyState bits)
qreal opacity() const const
void setOpacity(qreal opacity)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.