Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
accessibility.hpp File Reference
#include <string>
#include <string_view>
#include <functional>
#include <optional>
#include <vector>

Go to the source code of this file.

Classes

class  pulp::view::AccessibilityValueInterface
 Interface for accessible values (sliders, knobs, progress bars). More...
class  pulp::view::AccessibilityTextInterface
 Interface for accessible text content (text editors, labels). More...
class  pulp::view::AccessibilityTableInterface
 Interface for accessible tables and lists. More...
class  pulp::view::AccessibilityCellInterface
 Interface for individual table cells. More...
struct  pulp::view::AccessibilityInterfaceSet
 The accessibility interfaces a View can actually serve. More...

Namespaces

namespace  pulp
namespace  pulp::view
 Hover-cursor tracking for platform window hosts.

Typedefs

using pulp::view::AnnouncementSink
 Install a platform-specific announcement sink when a live-region backend is available.

Enumerations

enum class  pulp::view::AccessToggleState { pulp::view::unset , pulp::view::off , pulp::view::on , pulp::view::mixed }
 Tri-state check/press state, resolved from the ARIA slots a View carries (aria-checked first, then aria-pressed — a checkbox/switch state is more load-bearing than a toggle-button pressed state). More...
enum class  pulp::view::AnnouncementPriority { pulp::view::Polite , pulp::view::Assertive }
 Politeness level for a live-region announcement. More...

Functions

AccessToggleState pulp::view::accessibility_toggle_state (const View &v)
 The View's check/press state.
std::string pulp::view::accessibility_toggle_state_string (const View &v)
 The state as the word a reader announces: "checked" / "unchecked" / "mixed" (aria-checked) or "pressed" / "not pressed" / "mixed" (aria-pressed).
std::string pulp::view::accessibility_value_string (const View &v)
 What assistive tech reads as the element's VALUE, resolved from the one source that is actually present, in priority order:
bool pulp::view::has_accessibility_value (const View &v)
 True when the view has ANY value source at all (slots 1–4 above).
AccessibilityInterfaceSet pulp::view::accessibility_interfaces (const View &v)
std::string pulp::view::accessibility_text_content (const View &v)
 The string content a text interface exposes: AccessibilityTextInterface's content, else the access_value slot, else "".
bool pulp::view::accessibility_text_editable (const View &v)
 True when the text content is user-editable (an editable AccessibilityTextInterface).
bool pulp::view::is_accessibility_element (const View &v)
 The single gate EVERY accessibility bridge uses to decide whether a View enters the platform accessibility tree (macOS window host + plug-in editor host, iOS, Windows UIA fragments, Linux AT-SPI objects, Android TalkBack nodes) and the cross-platform snapshot's count_announceable().
void pulp::view::announce_accessibility (std::string_view text, AnnouncementPriority priority=AnnouncementPriority::Polite)
 Request the installed accessibility announcement sink speak text.
void pulp::view::set_announcement_sink (AnnouncementSink sink)