mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-02 12:58:23 +00:00
Add the accessible-expandable property
This commit is contained in:
parent
e442965889
commit
53fd7b12e4
12 changed files with 42 additions and 0 deletions
|
|
@ -647,6 +647,17 @@ impl ElementHandle {
|
|||
})
|
||||
}
|
||||
|
||||
/// Returns the value of the `accessible-expandable` property, if present
|
||||
pub fn accessible_expandable(&self) -> Option<bool> {
|
||||
if self.element_index != 0 {
|
||||
return None;
|
||||
}
|
||||
self.item
|
||||
.upgrade()
|
||||
.and_then(|item| item.accessible_string_property(AccessibleStringProperty::Expandable))
|
||||
.and_then(|item| item.parse().ok())
|
||||
}
|
||||
|
||||
/// Returns the size of the element in logical pixels. This corresponds to the value of the `width` and
|
||||
/// `height` properties in Slint code. Returns a zero size if the element is not valid.
|
||||
pub fn size(&self) -> i_slint_core::api::LogicalSize {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue