Browse Source
Fix AutomationProperties.HelpText on macos (#17046 )
* fix Automation.HelpText on windows
* fix AutomationProperties.HelpText on macos
* change breaking abstract to virtual
* only fall back to tooltip if string
* remove duplicate override
* fix AutomationProperties.HelpText on macos
pull/17115/head
ahopper
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
8 additions and
0 deletions
native/Avalonia.Native/src/OSX/automation.mm
src/Avalonia.Native/AvnAutomationPeer.cs
src/Avalonia.Native/avn.idl
@ -149,6 +149,11 @@
return [super accessibilityTitle];
return [super accessibilityTitle];
}
}
- (NSString *)accessibilityHelp
{
return GetNSStringAndRelease(_peer->GetHelpText());
}
- (id)accessibilityValue
- (id)accessibilityValue
{
{
if (_peer->IsRangeValueProvider())
if (_peer->IsRangeValueProvider())
@ -39,6 +39,7 @@ namespace Avalonia.Native
public IAvnString ClassName = > _ inner . GetClassName ( ) . ToAvnString ( ) ;
public IAvnString ClassName = > _ inner . GetClassName ( ) . ToAvnString ( ) ;
public IAvnAutomationPeer ? LabeledBy = > Wrap ( _ inner . GetLabeledBy ( ) ) ;
public IAvnAutomationPeer ? LabeledBy = > Wrap ( _ inner . GetLabeledBy ( ) ) ;
public IAvnString Name = > _ inner . GetName ( ) . ToAvnString ( ) ;
public IAvnString Name = > _ inner . GetName ( ) . ToAvnString ( ) ;
public IAvnString HelpText = > _ inner . GetHelpText ( ) . ToAvnString ( ) ;
public IAvnAutomationPeer ? Parent = > Wrap ( _ inner . GetParent ( ) ) ;
public IAvnAutomationPeer ? Parent = > Wrap ( _ inner . GetParent ( ) ) ;
public IAvnAutomationPeer ? VisualRoot = > Wrap ( _ inner . GetVisualRoot ( ) ) ;
public IAvnAutomationPeer ? VisualRoot = > Wrap ( _ inner . GetVisualRoot ( ) ) ;
@ -1219,6 +1219,8 @@ interface IAvnAutomationPeer : IUnknown
bool IsValueProvider();
bool IsValueProvider();
IAvnString* ValueProvider_GetValue();
IAvnString* ValueProvider_GetValue();
void ValueProvider_SetValue(char* value);
void ValueProvider_SetValue(char* value);
IAvnString* GetHelpText();
}
}
[uuid(b00af5da-78af-4b33-bfff-4ce13a6239a9)]
[uuid(b00af5da-78af-4b33-bfff-4ce13a6239a9)]