(&self)
| 842 | } |
| 843 | |
| 844 | pub fn is_read_only_supported(&self) -> bool { |
| 845 | self.is_text_input() |
| 846 | || matches!( |
| 847 | self.role(), |
| 848 | Role::CheckBox |
| 849 | | Role::ColorWell |
| 850 | | Role::ComboBox |
| 851 | | Role::Grid |
| 852 | | Role::ListBox |
| 853 | | Role::MenuItemCheckBox |
| 854 | | Role::MenuItemRadio |
| 855 | | Role::MenuListPopup |
| 856 | | Role::RadioButton |
| 857 | | Role::RadioGroup |
| 858 | | Role::Slider |
| 859 | | Role::Switch |
| 860 | | Role::TreeGrid |
| 861 | ) |
| 862 | } |
| 863 | |
| 864 | pub fn should_have_read_only_state_by_default(&self) -> bool { |
| 865 | matches!( |
no test coverage detected