mirror of
https://github.com/slint-ui/slint.git
synced 2025-07-12 07:35:18 +00:00
Add the accessible-expanded
property
This commit is contained in:
parent
53fd7b12e4
commit
f30f953ffd
13 changed files with 66 additions and 1 deletions
|
@ -382,6 +382,18 @@ public:
|
|||
return std::nullopt;
|
||||
}
|
||||
|
||||
/// Returns the accessible-expanded of that element, if any.
|
||||
std::optional<bool> accessible_expanded() const
|
||||
{
|
||||
if (auto result = get_accessible_string_property(
|
||||
cbindgen_private::AccessibleStringProperty::Expanded)) {
|
||||
if (*result == "true")
|
||||
return true;
|
||||
else if (*result == "false")
|
||||
return false;
|
||||
}
|
||||
return std::nullopt;
|
||||
}
|
||||
/// Returns the accessible-expandable of that element, if any.
|
||||
std::optional<bool> accessible_expandable() const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue