Class: ATSPI::ErrorAccessible
- Inherits:
-
Object
- Object
- ATSPI::ErrorAccessible
- Includes:
- Accessible::Extents, Accessible::Selectable
- Defined in:
- lib/atspi/error_accessible.rb
Overview
The ErrorAccessible is used for accessibles that cannot be instantiated due to errors. It responds to the interface of Accessible and returns dummy values.
Identification collapse
-
#application ⇒ nil
No application.
-
#desktop ⇒ nil
No desktop.
-
#index_in_parent ⇒ -1
(also: #index)
An invalid index.
-
#path ⇒ {}
An empty path.
-
#window ⇒ nil
No window.
Attributes & States collapse
-
#attributes ⇒ {}
An empty hash.
-
#contains?(x, y, relative_to:) ⇒ true, false
included
from Accessible::Extents
Checks if the given point lies within its bounds.
-
#description ⇒ String
Its inspection.
-
#extents(relative_to:) ⇒ ATSPI::Extents
included
from Accessible::Extents
Its extents.
-
#interfaces ⇒ []
No interfaces.
-
#layer ⇒ Symbol
included
from Accessible::Extents
Its layer derived from libatspi’s AtspiComponentLayer enum by removing the prefix
ATSPI_LAYER_
and making it lowercase. - #localized_role_name ⇒ 'Invalid'
-
#mdi_z_order ⇒ Integer
included
from Accessible::Extents
Its mdi_z_order.
-
#name ⇒ String
Its inspection.
-
#opacity ⇒ Float
(also: #alpha)
included
from Accessible::Extents
Its opacity between
0.0
(transparent) and1.0
(opaque). - #role ⇒ :invalid
- #role_name ⇒ 'Invalid'
-
#selected? ⇒ true, false
included
from Accessible::Selectable
Checks if it currently is selected.
-
#states ⇒ StateSet
An empty state set.
-
#toolkit_name ⇒ ''
An empty string.
-
#toolkit_version ⇒ ''
An empty string.
Tree & Traversal collapse
-
#children ⇒ []
No children.
-
#descendant_at(x, y, relative_to:) ⇒ Accessible?
included
from Accessible::Extents
The descendant at the given coordinates.
- #descendant_by_path(*path) ⇒ nil
-
#descendants ⇒ []
No descendants.
-
#parent ⇒ nil
No parent.
-
#relations ⇒ {}
No relations.
Actions collapse
-
#actions ⇒ []
It supports no actions.
-
#deselect ⇒ true, false
included
from Accessible::Selectable
Deselects it.
-
#grab_focus ⇒ true, false
included
from Accessible::Extents
Sets the input focus to it.
-
#select ⇒ true, false
included
from Accessible::Selectable
Selects it.
Representative for collapse
-
#document ⇒ nil
No document.
-
#hyperlink ⇒ nil
(also: #link)
No hyperlink.
-
#image ⇒ nil
No image.
-
#table ⇒ nil
No table.
-
#text ⇒ nil
No text.
-
#value ⇒ nil
No value.
Representations collapse
-
#inspect ⇒ String
Itself as an inspectable string.
Instance Method Summary collapse
Instance Method Details
#actions ⇒ []
Returns it supports no actions.
133 134 135 |
# File 'lib/atspi/error_accessible.rb', line 133 def actions [] end |
#application ⇒ nil
Returns no application.
31 32 33 |
# File 'lib/atspi/error_accessible.rb', line 31 def application nil end |
#attributes ⇒ {}
Returns an empty hash.
94 95 96 |
# File 'lib/atspi/error_accessible.rb', line 94 def attributes {} end |
#children ⇒ []
Returns no children.
111 112 113 |
# File 'lib/atspi/error_accessible.rb', line 111 def children [] end |
#contains?(x, y, relative_to:) ⇒ true, false Originally defined in module Accessible::Extents
Checks if the given point lies within its bounds
#descendant_at(x, y, relative_to:) ⇒ Accessible? Originally defined in module Accessible::Extents
Returns the descendant at the given coordinates. nil
if it does not implement the component interface.
#descendant_by_path(*path) ⇒ nil
121 122 123 |
# File 'lib/atspi/error_accessible.rb', line 121 def descendant_by_path(*path) nil end |
#descendants ⇒ []
Returns no descendants.
116 117 118 |
# File 'lib/atspi/error_accessible.rb', line 116 def descendants [] end |
#description ⇒ String
Returns its inspection.
59 60 61 |
# File 'lib/atspi/error_accessible.rb', line 59 def description inspect end |
#deselect ⇒ true, false Originally defined in module Accessible::Selectable
Deselects it
#desktop ⇒ nil
Returns no desktop.
26 27 28 |
# File 'lib/atspi/error_accessible.rb', line 26 def desktop nil end |
#document ⇒ nil
Returns no document.
140 141 142 |
# File 'lib/atspi/error_accessible.rb', line 140 def document nil end |
#extends? ⇒ Boolean
7 8 9 |
# File 'lib/atspi/error_accessible.rb', line 7 def extends? false end |
#extents(relative_to:) ⇒ ATSPI::Extents Originally defined in module Accessible::Extents
Returns its extents. Will have a (0,0) position and a 0x0 size if it does not implement the component interface.
#grab_focus ⇒ true, false Originally defined in module Accessible::Extents
Sets the input focus to it.
#hyperlink ⇒ nil Also known as: link
Returns no hyperlink.
150 151 152 |
# File 'lib/atspi/error_accessible.rb', line 150 def hyperlink nil end |
#image ⇒ nil
Returns no image.
156 157 158 |
# File 'lib/atspi/error_accessible.rb', line 156 def image nil end |
#index_in_parent ⇒ -1 Also known as: index
Returns an invalid index.
41 42 43 |
# File 'lib/atspi/error_accessible.rb', line 41 def index_in_parent -1 end |
#inspect ⇒ String
Returns itself as an inspectable string.
173 174 175 |
# File 'lib/atspi/error_accessible.rb', line 173 def inspect "#<#{self.class.name}:0x#{'%x14' % __id__}>" end |
#interfaces ⇒ []
Returns no interfaces.
99 100 101 |
# File 'lib/atspi/error_accessible.rb', line 99 def interfaces [] end |
#layer ⇒ Symbol Originally defined in module Accessible::Extents
Returns its layer derived from libatspi’s AtspiComponentLayer enum by removing the prefix ATSPI_LAYER_
and making it lowercase. :invalid
if it does not implement the component interface.
#localized_role_name ⇒ 'Invalid'
74 75 76 |
# File 'lib/atspi/error_accessible.rb', line 74 def localized_role_name 'Invalid' end |
#mdi_z_order ⇒ Integer Originally defined in module Accessible::Extents
Returns its mdi_z_order. -1
if it does not implement the component interface.
#name ⇒ String
Returns its inspection.
54 55 56 |
# File 'lib/atspi/error_accessible.rb', line 54 def name inspect end |
#opacity ⇒ Float Also known as: alpha Originally defined in module Accessible::Extents
Returns its opacity between 0.0
(transparent) and 1.0
(opaque). 0.0
if it does not implement the component interface.
#parent ⇒ nil
Returns no parent.
106 107 108 |
# File 'lib/atspi/error_accessible.rb', line 106 def parent nil end |
#path ⇒ {}
Returns an empty path.
47 48 49 |
# File 'lib/atspi/error_accessible.rb', line 47 def path [] end |
#relations ⇒ {}
Returns no relations.
126 127 128 |
# File 'lib/atspi/error_accessible.rb', line 126 def relations {} end |
#role ⇒ :invalid
64 65 66 |
# File 'lib/atspi/error_accessible.rb', line 64 def role :invalid end |
#role_name ⇒ 'Invalid'
69 70 71 |
# File 'lib/atspi/error_accessible.rb', line 69 def role_name 'Invalid' end |
#select ⇒ true, false Originally defined in module Accessible::Selectable
Selects it
#selectable? ⇒ Boolean
12 13 14 |
# File 'lib/atspi/error_accessible.rb', line 12 def selectable? false end |
#selected? ⇒ true, false Originally defined in module Accessible::Selectable
Checks if it currently is selected
#states ⇒ StateSet
Returns an empty state set.
89 90 91 |
# File 'lib/atspi/error_accessible.rb', line 89 def states StateSet.new end |
#table ⇒ nil
Returns no table.
166 167 168 |
# File 'lib/atspi/error_accessible.rb', line 166 def table nil end |
#text ⇒ nil
Returns no text.
145 146 147 |
# File 'lib/atspi/error_accessible.rb', line 145 def text nil end |
#toolkit_name ⇒ ''
Returns an empty string.
79 80 81 |
# File 'lib/atspi/error_accessible.rb', line 79 def toolkit_name '' end |
#toolkit_version ⇒ ''
Returns an empty string.
84 85 86 |
# File 'lib/atspi/error_accessible.rb', line 84 def toolkit_version '' end |
#value ⇒ nil
Returns no value.
161 162 163 |
# File 'lib/atspi/error_accessible.rb', line 161 def value nil end |
#window ⇒ nil
Returns no window.
36 37 38 |
# File 'lib/atspi/error_accessible.rb', line 36 def window nil end |