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

Accessibility: Disable accessibility for Drawable base class

This commit is contained in:
ed 2021-07-01 12:30:47 +01:00
parent e119178b5b
commit f6ceba3e5b
2 changed files with 2 additions and 8 deletions

View file

@ -30,6 +30,7 @@ Drawable::Drawable()
{
setInterceptsMouseClicks (false, false);
setPaintingIsUnclipped (true);
setAccessible (false);
}
Drawable::Drawable (const Drawable& other)
@ -37,6 +38,7 @@ Drawable::Drawable (const Drawable& other)
{
setInterceptsMouseClicks (false, false);
setPaintingIsUnclipped (true);
setAccessible (false);
setComponentID (other.getComponentID());
setTransform (other.getTransform());
@ -196,10 +198,4 @@ std::unique_ptr<Drawable> Drawable::createFromImageFile (const File& file)
return {};
}
//==============================================================================
std::unique_ptr<AccessibilityHandler> Drawable::createAccessibilityHandler()
{
return std::make_unique<AccessibilityHandler> (*this, AccessibilityRole::ignored);
}
} // namespace juce

View file

@ -199,8 +199,6 @@ protected:
void setBoundsToEnclose (Rectangle<float>);
/** @internal */
void applyDrawableClipPath (Graphics&);
/** @internal */
std::unique_ptr<AccessibilityHandler> createAccessibilityHandler() override;
Point<int> originRelativeToComponent;
std::unique_ptr<Drawable> drawableClipPath;