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

Accessibility: Added VoiceOver (macOS) and Narrator (Windows) accessibility screen reader support to juce_gui_basics

This commit is contained in:
ed 2021-05-10 09:38:00 +01:00
parent 1df59f7469
commit ec990202b1
133 changed files with 10158 additions and 1297 deletions

View file

@ -156,6 +156,10 @@ public:
const Rectangle<float>& body) = 0;
};
//==============================================================================
/** @internal */
void paint (Graphics&) override;
protected:
//==============================================================================
/** Subclasses should override this to return the size of the content they
@ -170,10 +174,6 @@ protected:
*/
virtual void paintContent (Graphics& g, int width, int height) = 0;
public:
/** @internal */
void paint (Graphics&) override;
private:
Rectangle<int> content;
Point<int> arrowTip;

View file

@ -33,6 +33,7 @@ public:
: target (comp), shadow (ds)
{
setVisible (true);
setAccessible (false);
setInterceptsMouseClicks (false, false);
if (comp->isOnDesktop())

View file

@ -188,6 +188,12 @@ void JUCESplashScreen::mouseUp (const MouseEvent&)
juceWebsite.launchInDefaultBrowser();
}
//==============================================================================
std::unique_ptr<AccessibilityHandler> JUCESplashScreen::createAccessibilityHandler()
{
return std::make_unique<AccessibilityHandler> (*this, AccessibilityRole::splashScreen);
}
// END SECTION A
} // namespace juce

View file

@ -55,6 +55,10 @@ public:
static std::unique_ptr<Drawable> getSplashScreenLogo();
//==============================================================================
/** @internal */
std::unique_ptr<AccessibilityHandler> createAccessibilityHandler() override;
private:
void paint (Graphics&) override;
void timerCallback() override;