Sets role = Button and label in one call.
(&mut self, label: &str)
| 99 | |
| 100 | /// Sets role = Button and label in one call. |
| 101 | pub fn button(&mut self, label: &str) -> &mut Self { |
| 102 | self.config.role = AccessibilityRole::Button; |
| 103 | self.config.label = label.to_string(); |
| 104 | self.config.focusable = true; |
| 105 | self |
| 106 | } |
| 107 | |
| 108 | /// Sets role = Heading with the given level (1–6) and label. |
| 109 | pub fn heading(&mut self, label: &str, level: u8) -> &mut Self { |
no outgoing calls