MCPcopy Create free account
hub / github.com/AccessKit/accesskit / is_read_only_supported

Method is_read_only_supported

consumer/src/node.rs:844–862  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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!(

Callers 2

is_read_onlyMethod · 0.80
stateMethod · 0.80

Calls 1

is_text_inputMethod · 0.80

Tested by

no test coverage detected