class

CMiriAccessibilityManager

Module
Miri
Header
#include "Miri/Accessibility/CMiriAccessibility.h"
Namespace
Miri

Type aliases

AliasDescription
using FFocusChangedHook = std::function<void(IMiriPlatformWindow* window)>Keyboard focus moved inside window. The input processor reports every change; a platform screen-reader bridge installs the hook and raises the OS focus event from it.

Public functions

ReturnsNameDescription
CMiriAccessibilityManager&Get
voidSetEnabled
boolIsEnabled
voidAnnounce
voidSetHighContrastModeWidgets should switch to the high-contrast palette while this is set
boolIsHighContrastMode
voidSetReducedMotionModeAnimations should be suppressed or shortened while this is set.
boolIsReducedMotionMode
voidClearReducedMotionOverrideBack to following the OS (a "System" choice in a settings page).
boolHasReducedMotionOverride
voidRefreshSystemPreferencesRe-reads the OS accessibility settings through the PAL.
voidSetSystemReducedMotion
boolIsSystemReducedMotion
CMiriAccessibleInfoGetWidgetInfo
std::vector<CAnnouncement>ConsumePendingAnnouncements
voidSetFocusChangedHook
voidNotifyFocusChanged

Function details

Get

C++
static CMiriAccessibilityManager& Get()

SetEnabled

C++
void SetEnabled(bool enabled)

IsEnabled

C++
bool IsEnabled() const

Announce

C++
void Announce(const std::string& text, EUrgency urgency = EUrgency::Polite)

SetHighContrastMode

C++
void SetHighContrastMode(bool enabled)

Widgets should switch to the high-contrast palette while this is set

IsHighContrastMode

C++
bool IsHighContrastMode() const

SetReducedMotionMode

C++
void SetReducedMotionMode(bool enabled)

Animations should be suppressed or shortened while this is set. An explicit Set wins; until one is made the OS setting decides, which RefreshSystemPreferences reads (at startup and on window focus).

IsReducedMotionMode

C++
bool IsReducedMotionMode() const

ClearReducedMotionOverride

C++
void ClearReducedMotionOverride()

Back to following the OS (a "System" choice in a settings page).

HasReducedMotionOverride

C++
bool HasReducedMotionOverride() const

RefreshSystemPreferences

C++
void RefreshSystemPreferences()

Re-reads the OS accessibility settings through the PAL.

SetSystemReducedMotion

C++
void SetSystemReducedMotion(bool reduced)

IsSystemReducedMotion

C++
bool IsSystemReducedMotion() const

GetWidgetInfo

C++
CMiriAccessibleInfo GetWidgetInfo(const MWidget* widget) const

ConsumePendingAnnouncements

C++
std::vector<CAnnouncement> ConsumePendingAnnouncements()

SetFocusChangedHook

C++
void SetFocusChangedHook(FFocusChangedHook hook)

NotifyFocusChanged

C++
void NotifyFocusChanged(IMiriPlatformWindow* window)
Generated from Miri/Accessibility/CMiriAccessibility.h via miri.json · Dec 5, 2026Version 1.1.0