An accessibility attributes defines the accessibility related properties of the containing scene node.
The CYIAccessibilityAttributes will be a member variable of CYISceneNode when it is required.
The attributes are:
The information can be provide:
#include <accessibility/YiAccessibilityAttributes.h>
Classes | |
struct | Action |
The accessibility Action structure of the CYIAccessibilityAttributes class instance. More... | |
Public Types | |
enum | Accessible : uint8_t { Accessible::Undefined, Accessible::Disabled, Accessible::Enabled } |
The accessible type of the CYIAccessibilityAttributes class instance. More... | |
enum | Role { Role::None, Role::Adjustable, Role::Alert, Role::Button, Role::CheckBox, Role::ComboBox, Role::Header, Role::Image, Role::ImageButton, Role::KeyboardKey, Role::Link, Role::Menu, Role::MenuBar, Role::MenuItem, Role::ProgressBar, Role::Radio, Role::RadioGroup, Role::ScrollBar, Role::Search, Role::SpinButton, Role::Summary, Role::Switch, Role::Tab, Role::TabList, Role::Text, Role::TextField, Role::Timer, Role::ToolBar } |
The accessibility Role type of the CYIAccessibilityAttributes class instance. More... | |
enum | State { State::None, State::Busy, State::Disabled, State::Checked, State::Expanded, State::Selected } |
The accessibility State type of the CYIAccessibilityAttributes class instance. More... | |
Public Member Functions | |
CYIAccessibilityAttributes () | |
const CYIString & | GetLabel () const |
void | SetLabel (CYIString label) |
const CYIString & | GetHint () const |
void | SetHint (CYIString hint) |
Role | GetRole () const |
CYIString | GetRoleString () const |
void | SetRole (Role role) |
void | ReplaceStates (std::map< State, bool > states) |
void | SetState (State state, bool value) |
bool | GetState (State state) const |
CYIString | ProduceStatesString () const |
const std::vector< Action > & | GetActions () const |
void | SetActions (std::vector< Action > actions) |
Public Attributes | |
CYISignal< CYIString > | AccessibilityActionRequested |
|
strong |
The accessible type of the CYIAccessibilityAttributes class instance.
|
strong |
The accessibility Role type of the CYIAccessibilityAttributes class instance.
|
strong |
The accessibility State type of the CYIAccessibilityAttributes class instance.
Enumerator | |
---|---|
None | |
Busy | |
Disabled | |
Checked | |
Expanded | |
Selected |
CYIAccessibilityAttributes::CYIAccessibilityAttributes | ( | ) |
const std::vector<Action>& CYIAccessibilityAttributes::GetActions | ( | ) | const |
Returns the array of accessibility actions.
const CYIString& CYIAccessibilityAttributes::GetHint | ( | ) | const |
Returns the accessibility role.
const CYIString& CYIAccessibilityAttributes::GetLabel | ( | ) | const |
Returns the accessibility Label.
Role CYIAccessibilityAttributes::GetRole | ( | ) | const |
Returns the accessibility role.
CYIString CYIAccessibilityAttributes::GetRoleString | ( | ) | const |
Returns the accessibility role string.
bool CYIAccessibilityAttributes::GetState | ( | State | state | ) | const |
Returns the current value of the given state.
CYIString CYIAccessibilityAttributes::ProduceStatesString | ( | ) | const |
Returns the accessibility state string.
void CYIAccessibilityAttributes::ReplaceStates | ( | std::map< State, bool > | states | ) |
Sets state values.
void CYIAccessibilityAttributes::SetActions | ( | std::vector< Action > | actions | ) |
Sets an array of the accessibility actions.
void CYIAccessibilityAttributes::SetHint | ( | CYIString | hint | ) |
Sets the accessibility hint.
void CYIAccessibilityAttributes::SetLabel | ( | CYIString | label | ) |
Sets the accessibility label.
void CYIAccessibilityAttributes::SetState | ( | State | state, |
bool | value | ||
) |
Sets a boolean value of the state.
Emitted when an accessibility action is going to happen.