Go to index / Go to protocols

cosmic_a11y_v1 ↗

toggle various accessibility features

This protocols provides way to toggle various accessibility features in the COSMIC desktop environment for shell components.

cosmic_a11y_v1
cosmic_a11y_manager_v1

Version 3
Compositor Support
Version 2
cosmic 1.0.0

a11y global

Manager to toggle accessibility features.

cosmic_a11y_manager_v1
event magnifier(
    active: uint<active_state>,
)
  • active — If the screen magnifier is enabled

State of the screen magnifier

State of the screen magnifier.

This event will be emitted by the compositor when binding the protocol and whenever the state changes.

cosmic_a11y_manager_v1
request set_magnifier(
    active: uint<active_state>,
)
  • active — If the screen magnifier should be enabled

Set the screen magnifier on or off

Sets the state of the screen magnifier.

The client must not assume any requested changes are actually applied and should wait until the next magnifier event before updating it's UI.

cosmic_a11y_manager_v1
enum active_state {
    disabled = 0,
    enabled = 1,
}
  • disabled — function is disabled
  • enabled — function is enabled
cosmic_a11y_manager_v1
event screen_filter(
    inverted: uint<active_state>,
    filter: uint<filter>,
)
Available since version 2Deprecated since version 3
  • inverted — If the screen colors are inverted
  • filter — Which if any screen filter is enabled

State of screen filtering

Parameters used for screen filtering.

This event will be emitted by the compositor when binding the protocol and whenever the state changes.

If a screen filter is used not known to the protocol or the bound version filter will be set to unknown.

Since version 3 this event will not be emitted anymore, instead use screen_filter2.

cosmic_a11y_manager_v1
request set_screen_filter(
    inverted: uint<active_state>,
    filter: uint<filter>,
)
Available since version 2Deprecated since version 3
  • inverted — If the screen colors should be inverted
  • filter — Which if any filter should be used

Set screen filtering

Set the parameters for screen filtering.

If the filter is set to unknown, the compositor MUST not change the current state of the filter. This is to allow clients to update the inverted state, even if they don't know about the current active filter.

The client must not assume any requested changes are actually applied and should wait until the next screen_filter event before updating it's UI.

Send this request will raised a "deprecated" protocol error, if version 3 or higher was bound. Use set_screen_filter2 instead.

cosmic_a11y_manager_v1
enum filter {
    disabled = 0,
    unknown = 1,
    greyscale = 2,
    daltonize_protanopia = 3,
    daltonize_deuteranopia = 4,
    daltonize_tritanopia = 5,
}
Available since version 2
  • disabled — No screen filter is set
    Deprecated since version 3
  • unknown — A custom or unknown screen filter
  • greyscale — Greyscale colors
  • daltonize_protanopia — Daltonize for Protanopia
  • daltonize_deuteranopia — Daltonize for Deuteranopia
  • daltonize_tritanopia — Daltonize for Tritanopia
cosmic_a11y_manager_v1
event screen_filter2(
    inverted: uint<active_state>,
    filter: uint<filter>,
    filter_state: uint<active_state>,
)
Available since version 3
  • inverted — If the screen colors are inverted
  • filter — Which if any screen filter is selected
  • filter_state — If the screen filter is active

State of screen filtering

Parameters used for screen filtering.

This event will be emitted by the compositor when binding the protocol and whenever the state changes.

If a screen filter is used not known to the protocol or the bound version filter will be set to unknown.

The compositor must never send "disabled" as the "filter" argument.

cosmic_a11y_manager_v1
request set_screen_filter2(
    inverted: uint<active_state>,
    filter: uint<filter>,
    filter_state: uint<active_state>,
)
Available since version 3
  • inverted — If the screen colors should be inverted
  • filter — Which if filter should be used
  • filter_state — If the screen filter should be active

Set screen filtering

Set the parameters for screen filtering.

If the filter is set to unknown, the compositor MUST not change the currently set filter. This is to allow clients to update the inverted state or toggle the screen filter, even if they don't know about the currently selected filter.

The client must not assume any requested changes are actually applied and should wait until the next screen_filter event before updating it's UI.

The "deprecated" protocol error is raised, if "disabled" is set for "filter".

cosmic_a11y_manager_v1
enum error {
    deprecated = 0,
}
Available since version 3
  • deprecated — A deprecated request or value was used