Add missing getter cControl::getLabelCtrl

This commit is contained in:
2023-01-22 17:58:29 -05:00
parent d3283e466d
commit 2adbafd3dc
2 changed files with 6 additions and 0 deletions

View File

@@ -130,6 +130,10 @@ void cControl::setLabelCtrl(cControl* label) {
labelCtrl = label;
}
cControl* cControl::getLabelCtrl() {
return labelCtrl;
}
cKey cControl::getAttachedKey() const {
return key;
}

View File

@@ -333,6 +333,8 @@ public:
/// The practical effect of this is that hiding or showing this control automatically hides or shows the label as well.
/// @param label A pointer to the control that acts as a label.
void setLabelCtrl(cControl* label);
/// Get the control that serves as a label for this one, if any.
cControl* getLabelCtrl();
/// Get a view of the control's current state.
/// @return A map of string keys to boost::any values, representing the control's state.
virtual storage_t store() const;