Kstars

skyopacitynode.h
1/*
2 SPDX-FileCopyrightText: 2016 Artem Fedoskin <afedoskin3@gmail.com>
3 SPDX-License-Identifier: GPL-2.0-or-later
4*/
5
6#pragma once
7
8#include <QSGOpacityNode>
9
10/**
11 * @class SkyOpacityNode
12 *
13 * @short A wrapper for QSGOpacityNode that provides hide() and show() functions. If node is invisible
14 * (opacity is 0) it won't be rendered.
15 *
16 * @author Artem Fedoskin
17 * @version 1.0
18 */
19
20class SkyOpacityNode : public QSGOpacityNode
21{
22 public:
23 SkyOpacityNode();
24
25 /** @short makes this node visible */
26 virtual void show();
27
28 /** @short hides this node */
29 virtual void hide();
30
31 /** @return true if node is visible */
32 bool visible();
33};
virtual void show()
makes this node visible
virtual void hide()
hides this node
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:53:02 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.