Constructor with array of options and count
| 63 | |
| 64 | // Constructor with array of options and count |
| 65 | JsonDropdownImpl::JsonDropdownImpl(const fl::string &name, const fl::string* options, size_t count) FL_NOEXCEPT { |
| 66 | // Convert options to fl::vector |
| 67 | fl::vector<fl::string> optionsVector; |
| 68 | for (size_t i = 0; i < count; ++i) { |
| 69 | optionsVector.push_back(options[i]); |
| 70 | } |
| 71 | |
| 72 | // Create an instance of the new internal class |
| 73 | mInternal = fl::make_shared<JsonUiDropdownInternal>(name, optionsVector, 0); |
| 74 | |
| 75 | // Register the component with the JsonUiManager |
| 76 | addJsonUiComponent(mInternal); |
| 77 | } |
| 78 | |
| 79 | // Constructor with fl::span<fl::string> |
| 80 | JsonDropdownImpl::JsonDropdownImpl(const fl::string &name, fl::span<fl::string> options) FL_NOEXCEPT { |
nothing calls this directly
no test coverage detected