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:
parent
e119178b5b
commit
f6ceba3e5b
2 changed files with 2 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue