wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
SimulationHost.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
10#include <QList>
11
12class QGraphicsItem;
13
20{
21public:
22 virtual ~SimulationHost() = default;
23
25 virtual QList<QGraphicsItem *> simulationItems() const = 0;
26
28 virtual void setMuted(bool muted) = 0;
29};
Narrow interface letting Simulation reach its host scene without naming the concrete Scene class.
virtual void setMuted(bool muted)=0
Mutes or unmutes audio-producing elements in the host scene.
virtual QList< QGraphicsItem * > simulationItems() const =0
Returns every item currently in the host scene.
virtual ~SimulationHost()=default