JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
juce::AccessibilityTextHelpers Struct Reference

#include <juce_AccessibilityTextHelpers.h>

Classes

class  CharPtrIteratorAdapter
 

Public Types

enum class  BoundaryType {
  character ,
  word ,
  line ,
  document
}
 
enum class  Direction {
  forwards ,
  backwards
}
 
enum class  ExtendSelection {
  no ,
  yes
}
 
enum class  IncludeThisBoundary {
  no ,
  yes
}
 
enum class  IncludeWhitespaceAfterWords {
  no ,
  yes
}
 

Static Public Member Functions

template<typename Iter >
static int countDifference (Iter from, Iter to)
 
static Range< int > findNewSelectionRangeAndroid (const AccessibilityTextInterface &textInterface, BoundaryType boundaryType, ExtendSelection extend, Direction direction)
 
template<typename CharPtr >
static int findNextLineOffset (CharPtr beginIn, CharPtr endIn, CharPtr ptrIn, Direction direction, IncludeThisBoundary includeBoundary)
 
template<typename CharPtr >
static int findNextWordEndOffset (CharPtr beginIn, CharPtr endIn, CharPtr ptrIn, Direction direction, IncludeThisBoundary includeBoundary, IncludeWhitespaceAfterWords includeWhitespace)
 
static int findTextBoundary (const AccessibilityTextInterface &textInterface, int currentPosition, BoundaryType boundary, Direction direction, IncludeThisBoundary includeBoundary, IncludeWhitespaceAfterWords includeWhitespace)
 
template<typename CharPtr >
static auto makeCharPtrIteratorAdapter (CharPtr ptr)
 

Member Enumeration Documentation

◆ BoundaryType

Enumerator
character 
word 
line 
document 

◆ Direction

Enumerator
forwards 
backwards 

◆ ExtendSelection

Enumerator
no 
yes 

◆ IncludeThisBoundary

Enumerator
no 
yes 

◆ IncludeWhitespaceAfterWords

Enumerator
no 
yes 

Member Function Documentation

◆ countDifference()

template<typename Iter >
static int juce::AccessibilityTextHelpers::countDifference ( Iter  from,
Iter  to 
)
inlinestatic

◆ findNewSelectionRangeAndroid()

static Range< int > juce::AccessibilityTextHelpers::findNewSelectionRangeAndroid ( const AccessibilityTextInterface textInterface,
BoundaryType  boundaryType,
ExtendSelection  extend,
Direction  direction 
)
inlinestatic

◆ findNextLineOffset()

template<typename CharPtr >
static int juce::AccessibilityTextHelpers::findNextLineOffset ( CharPtr  beginIn,
CharPtr  endIn,
CharPtr  ptrIn,
Direction  direction,
IncludeThisBoundary  includeBoundary 
)
inlinestatic

◆ findNextWordEndOffset()

template<typename CharPtr >
static int juce::AccessibilityTextHelpers::findNextWordEndOffset ( CharPtr  beginIn,
CharPtr  endIn,
CharPtr  ptrIn,
Direction  direction,
IncludeThisBoundary  includeBoundary,
IncludeWhitespaceAfterWords  includeWhitespace 
)
inlinestatic

◆ findTextBoundary()

static int juce::AccessibilityTextHelpers::findTextBoundary ( const AccessibilityTextInterface textInterface,
int  currentPosition,
BoundaryType  boundary,
Direction  direction,
IncludeThisBoundary  includeBoundary,
IncludeWhitespaceAfterWords  includeWhitespace 
)
inlinestatic

◆ makeCharPtrIteratorAdapter()

template<typename CharPtr >
static auto juce::AccessibilityTextHelpers::makeCharPtrIteratorAdapter ( CharPtr  ptr)
inlinestatic

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