wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
VisibilityManager.h
Go to the documentation of this file.
1// Copyright 2015 - 2026, GIBIS-UNIFESP and the wiRedPanda contributors
2// SPDX-License-Identifier: GPL-3.0-or-later
3
7
8#pragma once
9
10class Scene;
11
21{
22public:
23 explicit VisibilityManager(Scene *scene);
24
26 void showGates(bool visible);
27
29 void showWires(bool visible);
30
32 void reapply();
33
34 [[nodiscard]] bool gatesVisible() const { return m_showGates; }
35 [[nodiscard]] bool wiresVisible() const { return m_showWires; }
36
37private:
38 Scene *m_scene = nullptr;
39 bool m_showGates = true;
40 bool m_showWires = true;
41};
Main circuit editing scene.
Definition Scene.h:56
bool gatesVisible() const
VisibilityManager(Scene *scene)
void showWires(bool visible)
Shows or hides connection wires, node elements, and port handles.
bool wiresVisible() const
void reapply()
Reapplies current visibility state (used after structural changes).
void showGates(bool visible)
Shows or hides gate elements (Input/Output/Other groups are always visible).