| 442 | } |
| 443 | } |
| 444 | void LayoutControl::setHelpId(Msg helpId) { |
| 445 | std::shared_ptr<LayoutRow> r = this->row.lock(); |
| 446 | if (r) { |
| 447 | r->setHelp(helpId); |
| 448 | } |
| 449 | } |
| 450 | |
| 451 | int LayoutButtonControl::getRecommendedWidth() { |
| 452 | float w = ImGui::CalcTextSize(this->label.c_str()).x; |
no test coverage detected