Kstars

skyopacitynode.cpp
1 /*
2  SPDX-FileCopyrightText: 2016 Artem Fedoskin <[email protected]>
3  SPDX-License-Identifier: GPL-2.0-or-later
4 */
5 
6 #include "skyopacitynode.h"
7 
8 SkyOpacityNode::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 }
qreal opacity() const const
virtual void show()
makes this node visible
void setOpacity(qreal opacity)
void markDirty(QSGNode::DirtyState bits)
virtual void hide()
hides this node
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Aug 14 2022 04:14:01 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.