1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-08 23:24:19 +00:00

AccessibilityHelpers: Move function definition out of header

This commit is contained in:
reuk 2025-12-08 13:30:35 +00:00
parent 44c552c614
commit 4d1c9c9b12
No known key found for this signature in database
2 changed files with 13 additions and 11 deletions

View file

@ -35,6 +35,18 @@
namespace juce::detail
{
String AccessibilityHelpers::getApplicationOrPluginName()
{
#if defined (JucePlugin_Name)
return JucePlugin_Name;
#else
if (auto* app = JUCEApplicationBase::getInstance())
return app->getApplicationName();
return "JUCE Application";
#endif
}
#if ! JUCE_NATIVE_ACCESSIBILITY_INCLUDED
void AccessibilityHelpers::notifyAccessibilityEvent (const AccessibilityHandler&, Event) {}
#endif

View file

@ -51,17 +51,7 @@ struct AccessibilityHelpers
static void notifyAccessibilityEvent (const AccessibilityHandler&, Event);
static String getApplicationOrPluginName()
{
#if defined (JucePlugin_Name)
return JucePlugin_Name;
#else
if (auto* app = JUCEApplicationBase::getInstance())
return app->getApplicationName();
return "JUCE Application";
#endif
}
static String getApplicationOrPluginName();
template <typename MemberFn>
static const AccessibilityHandler* getEnclosingHandlerWithInterface (const AccessibilityHandler* handler, MemberFn fn)