layout: doc title: “Starboard Module Reference: accessibility.h”

Provides access to the system options and settings related to accessibility.

Structs

SbAccessibilityDisplaySettings

Members

SbAccessibilityTextToSpeechSettings

A group of settings related to text-to-speech functionality, for platforms that expose system settings for text-to-speech.

Members

Functions

SbAccessibilityGetDisplaySettings

Description

Get the platform settings related to high contrast text. This function returns false if out_settings is NULL or if it is not zero-initialized.

Declaration and definitions

#include "starboard/accessibility.h"

#include "starboard/memory.h"

bool SbAccessibilityGetDisplaySettings(
    SbAccessibilityDisplaySettings* out_setting) {
  if (!out_setting ||
      !SbMemoryIsZero(out_setting,
                      sizeof(SbAccessibilityDisplaySettings))) {
    return false;
  }
  out_setting->has_high_contrast_text_setting = false;
  return true;
}

Parameters

SbAccessibilityGetTextToSpeechSettings

Description

Get the platform settings related to the text-to-speech accessibility feature. This function returns false if out_settings is NULL or if it is not zero-initialized.

Declaration and definitions

#include "starboard/accessibility.h"

#include "starboard/memory.h"

bool SbAccessibilityGetTextToSpeechSettings(
    SbAccessibilityTextToSpeechSettings* out_setting) {
  if (!out_setting ||
      !SbMemoryIsZero(out_setting,
                      sizeof(SbAccessibilityTextToSpeechSettings))) {
    return false;
  }
  out_setting->has_text_to_speech_setting = false;
  return true;
}

Parameters