This commit is contained in:
Borna Rajkovic committed 2022-04-08 21:07:29 +02:00
1 parent 0a0b20a156
commit 9bd68ecf23
25 files changed
+67 -130

No files matched your search

+3 -3
View File
@@ -7,19 +7,19 @@ Component *Component::ofWire(domain::WireInstance *wire) {
component->wireInstance = wire;
component->redraw();
return component;
};
}
Component *Component::ofComponent(domain::ComponentInstance *instance) {
auto component = new Component();
component->componentInstance = instance;
component->redraw();
return component;
};
}
Component *Component::ofBus(domain::BusInstance *instance) {
auto component = new Component();
component->busInstance = instance;
component->redraw();
return component;
};
}
void Component::redraw() {
if(componentInstance) {