LMMS
Loading...
Searching...
No Matches
juce::AccessibleState Class Reference

#include <juce_AccessibilityState.h>

Public Member Functions

 AccessibleState ()=default
JUCE_NODISCARD AccessibleState withCheckable () const noexcept
JUCE_NODISCARD AccessibleState withChecked () const noexcept
JUCE_NODISCARD AccessibleState withCollapsed () const noexcept
JUCE_NODISCARD AccessibleState withExpandable () const noexcept
JUCE_NODISCARD AccessibleState withExpanded () const noexcept
JUCE_NODISCARD AccessibleState withFocusable () const noexcept
JUCE_NODISCARD AccessibleState withFocused () const noexcept
JUCE_NODISCARD AccessibleState withIgnored () const noexcept
JUCE_NODISCARD AccessibleState withSelectable () const noexcept
JUCE_NODISCARD AccessibleState withMultiSelectable () const noexcept
JUCE_NODISCARD AccessibleState withSelected () const noexcept
JUCE_NODISCARD AccessibleState withAccessibleOffscreen () const noexcept
bool isCheckable () const noexcept
bool isChecked () const noexcept
bool isCollapsed () const noexcept
bool isExpandable () const noexcept
bool isExpanded () const noexcept
bool isFocusable () const noexcept
bool isFocused () const noexcept
bool isIgnored () const noexcept
bool isMultiSelectable () const noexcept
bool isSelectable () const noexcept
bool isSelected () const noexcept
bool isAccessibleOffscreen () const noexcept

Private Types

enum  Flags {
  checkable = (1 << 0) , checked = (1 << 1) , collapsed = (1 << 2) , expandable = (1 << 3) ,
  expanded = (1 << 4) , focusable = (1 << 5) , focused = (1 << 6) , ignored = (1 << 7) ,
  multiSelectable = (1 << 8) , selectable = (1 << 9) , selected = (1 << 10) , accessibleOffscreen = (1 << 11)
}

Private Member Functions

JUCE_NODISCARD AccessibleState withFlag (int flag) const noexcept
bool isFlagSet (int flag) const noexcept

Private Attributes

int flags = 0

Detailed Description

Represents the state of an accessible UI element.

An instance of this class is returned by AccessibilityHandler::getCurrentState() to convey its current state to an accessibility client.

See also
AccessibilityHandler

@tags{Accessibility}

Member Enumeration Documentation

◆ Flags

enum juce::AccessibleState::Flags
private
Enumerator
checkable 
checked 
collapsed 
expandable 
expanded 
focusable 
focused 
ignored 
multiSelectable 
selectable 
selected 
accessibleOffscreen 

Constructor & Destructor Documentation

◆ AccessibleState()

juce::AccessibleState::AccessibleState ( )
default

Constructor.

Represents a "default" state with no flags set. To set a flag, use one of the withX() methods - these can be chained together to set multiple flags.

Member Function Documentation

◆ isAccessibleOffscreen()

bool juce::AccessibleState::isAccessibleOffscreen ( ) const
inlinenoexcept

Returns true if the UI element is accessible offscreen.

See also
withSelected

◆ isCheckable()

bool juce::AccessibleState::isCheckable ( ) const
inlinenoexcept

Returns true if the UI element is checkable.

See also
withCheckable

◆ isChecked()

bool juce::AccessibleState::isChecked ( ) const
inlinenoexcept

Returns true if the UI element is checked.

See also
withChecked

◆ isCollapsed()

bool juce::AccessibleState::isCollapsed ( ) const
inlinenoexcept

Returns true if the UI element is collapsed.

See also
withCollapsed

◆ isExpandable()

bool juce::AccessibleState::isExpandable ( ) const
inlinenoexcept

Returns true if the UI element is expandable.

See also
withExpandable

◆ isExpanded()

bool juce::AccessibleState::isExpanded ( ) const
inlinenoexcept

Returns true if the UI element is expanded.

See also
withExpanded

◆ isFlagSet()

bool juce::AccessibleState::isFlagSet ( int flag) const
inlineprivatenoexcept

◆ isFocusable()

bool juce::AccessibleState::isFocusable ( ) const
inlinenoexcept

Returns true if the UI element is focusable.

See also
withFocusable

◆ isFocused()

bool juce::AccessibleState::isFocused ( ) const
inlinenoexcept

Returns true if the UI element is focused.

See also
withFocused

◆ isIgnored()

bool juce::AccessibleState::isIgnored ( ) const
inlinenoexcept

Returns true if the UI element is ignored.

See also
withIgnored

◆ isMultiSelectable()

bool juce::AccessibleState::isMultiSelectable ( ) const
inlinenoexcept

Returns true if the UI element supports multiple item selection.

See also
withMultiSelectable

◆ isSelectable()

bool juce::AccessibleState::isSelectable ( ) const
inlinenoexcept

Returns true if the UI element is selectable.

See also
withSelectable

◆ isSelected()

bool juce::AccessibleState::isSelected ( ) const
inlinenoexcept

Returns true if the UI element is selected.

See also
withSelected

◆ withAccessibleOffscreen()

JUCE_NODISCARD AccessibleState juce::AccessibleState::withAccessibleOffscreen ( ) const
inlinenoexcept

Sets the accessible offscreen flag and returns the new state.

See also
isSelected

◆ withCheckable()

JUCE_NODISCARD AccessibleState juce::AccessibleState::withCheckable ( ) const
inlinenoexcept

Sets the checkable flag and returns the new state.

See also
isCheckable

◆ withChecked()

JUCE_NODISCARD AccessibleState juce::AccessibleState::withChecked ( ) const
inlinenoexcept

Sets the checked flag and returns the new state.

See also
isChecked

◆ withCollapsed()

JUCE_NODISCARD AccessibleState juce::AccessibleState::withCollapsed ( ) const
inlinenoexcept

Sets the collapsed flag and returns the new state.

See also
isCollapsed

◆ withExpandable()

JUCE_NODISCARD AccessibleState juce::AccessibleState::withExpandable ( ) const
inlinenoexcept

Sets the expandable flag and returns the new state.

See also
isExpandable

◆ withExpanded()

JUCE_NODISCARD AccessibleState juce::AccessibleState::withExpanded ( ) const
inlinenoexcept

Sets the expanded flag and returns the new state.

See also
isExpanded

◆ withFlag()

JUCE_NODISCARD AccessibleState juce::AccessibleState::withFlag ( int flag) const
inlineprivatenoexcept

◆ withFocusable()

JUCE_NODISCARD AccessibleState juce::AccessibleState::withFocusable ( ) const
inlinenoexcept

Sets the focusable flag and returns the new state.

See also
isFocusable

◆ withFocused()

JUCE_NODISCARD AccessibleState juce::AccessibleState::withFocused ( ) const
inlinenoexcept

Sets the focused flag and returns the new state.

See also
isFocused

◆ withIgnored()

JUCE_NODISCARD AccessibleState juce::AccessibleState::withIgnored ( ) const
inlinenoexcept

Sets the ignored flag and returns the new state.

See also
isIgnored

◆ withMultiSelectable()

JUCE_NODISCARD AccessibleState juce::AccessibleState::withMultiSelectable ( ) const
inlinenoexcept

Sets the multiSelectable flag and returns the new state.

See also
isMultiSelectable

◆ withSelectable()

JUCE_NODISCARD AccessibleState juce::AccessibleState::withSelectable ( ) const
inlinenoexcept

Sets the selectable flag and returns the new state.

See also
isSelectable

◆ withSelected()

JUCE_NODISCARD AccessibleState juce::AccessibleState::withSelected ( ) const
inlinenoexcept

Sets the selected flag and returns the new state.

See also
isSelected

Member Data Documentation

◆ flags

int juce::AccessibleState::flags = 0
private

The documentation for this class was generated from the following file: