| 346 | } |
| 347 | |
| 348 | bool OptionButton::has_selectable_items() const { |
| 349 | for (int i = 0; i < get_item_count(); i++) { |
| 350 | if (!is_item_disabled(i) && !is_item_separator(i)) { |
| 351 | return true; |
| 352 | } |
| 353 | } |
| 354 | return false; |
| 355 | } |
| 356 | int OptionButton::get_selectable_item(bool p_from_last) const { |
| 357 | if (!p_from_last) { |
| 358 | for (int i = 0; i < get_item_count(); i++) { |
no outgoing calls
no test coverage detected