|
|
|
@@ -2479,6 +2479,9 @@ public: |
|
|
|
/** Returns the accessibility handler for this component, or nullptr if this component is not
|
|
|
|
accessible.
|
|
|
|
|
|
|
|
To customise the accessibility handler for a component, override
|
|
|
|
createAccessibilityHandler().
|
|
|
|
|
|
|
|
@see setAccessible
|
|
|
|
*/
|
|
|
|
AccessibilityHandler* getAccessibilityHandler();
|
|
|
|
@@ -2492,20 +2495,6 @@ public: |
|
|
|
void invalidateAccessibilityHandler();
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
#ifndef DOXYGEN
|
|
|
|
[[deprecated ("Use the setFocusContainerType that takes a more descriptive enum.")]]
|
|
|
|
void setFocusContainer (bool shouldBeFocusContainer) noexcept
|
|
|
|
{
|
|
|
|
setFocusContainerType (shouldBeFocusContainer ? FocusContainerType::keyboardFocusContainer
|
|
|
|
: FocusContainerType::none);
|
|
|
|
}
|
|
|
|
|
|
|
|
[[deprecated ("Use the contains that takes a Point<int>.")]]
|
|
|
|
void contains (int, int) = delete;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
private:
|
|
|
|
//==============================================================================
|
|
|
|
/** Override this method to return a custom AccessibilityHandler for this component.
|
|
|
|
|
|
|
|
The default implementation creates and returns a AccessibilityHandler object with an
|
|
|
|
@@ -2519,10 +2508,31 @@ private: |
|
|
|
its Component, so it's safe to store and use a reference back to the Component
|
|
|
|
inside the AccessibilityHandler if necessary.
|
|
|
|
|
|
|
|
This function should rarely be called directly. If you need to query a component's
|
|
|
|
accessibility handler, it's normally better to call getAccessibilityHandler().
|
|
|
|
The exception to this rule is derived implementations of createAccessibilityHandler(),
|
|
|
|
which may find it useful to call the base class implementation, and then wrap or
|
|
|
|
modify the result.
|
|
|
|
|
|
|
|
@see getAccessibilityHandler
|
|
|
|
*/
|
|
|
|
virtual std::unique_ptr<AccessibilityHandler> createAccessibilityHandler();
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
#ifndef DOXYGEN
|
|
|
|
[[deprecated ("Use the setFocusContainerType that takes a more descriptive enum.")]]
|
|
|
|
void setFocusContainer (bool shouldBeFocusContainer) noexcept
|
|
|
|
{
|
|
|
|
setFocusContainerType (shouldBeFocusContainer ? FocusContainerType::keyboardFocusContainer
|
|
|
|
: FocusContainerType::none);
|
|
|
|
}
|
|
|
|
|
|
|
|
[[deprecated ("Use the contains that takes a Point<int>.")]]
|
|
|
|
void contains (int, int) = delete;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
friend class ComponentPeer;
|
|
|
|
friend class MouseInputSourceInternal;
|
|
|
|
|