(&self)
| 549 | } |
| 550 | |
| 551 | pub fn active_dialog(&self) -> Option<Node<'_>> { |
| 552 | let mut node = self.focus(); |
| 553 | while let Some(candidate) = node { |
| 554 | if candidate.is_dialog() { |
| 555 | return Some(candidate); |
| 556 | } |
| 557 | node = candidate.parent(); |
| 558 | } |
| 559 | None |
| 560 | } |
| 561 | |
| 562 | pub fn toolkit_name(&self) -> Option<&str> { |
| 563 | self.data.toolkit_name.as_deref() |