Module: ATSPI::Accessible::Selectable
- Included in:
- ATSPI::Accessible, ErrorAccessible
- Defined in:
- lib/atspi/accessible/selectable.rb
Overview
Wraps libatspi’s AtspiSelection together with parts of Children and Children::Selected
Attributes & States collapse
-
#selectable? ⇒ true, false
Checks if it can be selected.
-
#selected? ⇒ true, false
Checks if it currently is selected.
Actions collapse
-
#deselect ⇒ true, false
Deselects it.
-
#select ⇒ true, false
Selects it.
Instance Method Details
#deselect ⇒ true, false
Deselects it
31 32 33 |
# File 'lib/atspi/accessible/selectable.rb', line 31 def deselect selectable? and parent.__send__(:native).deselect_child(index_in_parent) end |
#select ⇒ true, false
Selects it
22 23 24 |
# File 'lib/atspi/accessible/selectable.rb', line 22 def select selectable? and parent.__send__(:native).select_child(index_in_parent) end |
#selectable? ⇒ true, false
Checks if it can be selected. Accessibles which parent’s native implements the selection interface are selectable.
11 12 13 |
# File 'lib/atspi/accessible/selectable.rb', line 11 def selectable? parent.children.selectable? end |
#selected? ⇒ true, false
Checks if it currently is selected
42 43 44 |
# File 'lib/atspi/accessible/selectable.rb', line 42 def selected? selectable? and parent.__send__(:native).is_child_selected(index_in_parent) end |