Exposed pin state of target pin widget, in preparation for drawing labels manually
This commit is contained in:
@@ -25,6 +25,10 @@ namespace Bloom::Widgets::InsightTargetWidgets
|
||||
return this->pinDescriptor.number;
|
||||
}
|
||||
|
||||
const std::optional<Targets::TargetPinState>& getPinState() const {
|
||||
return this->pinState;
|
||||
}
|
||||
|
||||
virtual void updatePinState(const Targets::TargetPinState& pinState) {
|
||||
this->pinStateChanged = !this->pinState.has_value()
|
||||
|| this->pinState->ioState != pinState.ioState
|
||||
@@ -33,6 +37,10 @@ namespace Bloom::Widgets::InsightTargetWidgets
|
||||
this->pinState = pinState;
|
||||
}
|
||||
|
||||
bool hasPinStateChanged() const {
|
||||
return this->pinStateChanged;
|
||||
}
|
||||
|
||||
public slots:
|
||||
virtual void onWidgetBodyClicked();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user