| Trees | Indices | Help |
|---|
|
|
object --+
|
baseObject.AutoPropertyObject --+
|
baseObject.ScriptableObject --+
|
NVDAObject
NVDA's representation of a single control/widget.
Every widget, regardless of how it is exposed by an application or the operating system, is represented by a single NVDAObject instance.
This allows NVDA to work with all widgets in a uniform way.
An NVDAObject provides information about the widget (e.g. its name, role and value),
as well as functionality to manipulate it (e.g. perform an action or set focus).
Events for the widget are handled by special event methods on the object.
Commands triggered by input from the user can also be handled by special methods called scripts.
See L{ScriptableObject} for more details.
The only attribute that absolutely must be provided is L{processID}.
However, subclasses should provide at least the L{name} and L{role} attributes in order for the object to be meaningful to the user.
Attributes such as L{parent}, L{firstChild}, L{next} and L{previous} link an instance to other NVDAObjects in the hierarchy.
In order to facilitate access to text exposed by a widget which supports text content (e.g. an editable text control),
a L{textInfos.TextInfo} should be implemented and the L{TextInfo} attribute should specify this class.
There are two main types of NVDAObject classes:
* API classes, which provide the core functionality to work with objects exposed using a particular API (e.g. MSAA/IAccessible).
* Overlay classes, which supplement the core functionality provided by an API class to handle a specific widget or type of widget.
Most developers need only be concerned with overlay classes.
The overlay classes to be used for an instance are determined using the L{findOverlayClasses} method on the API class.
An L{AppModule} can also choose overlay classes for an instance using the L{AppModule.chooseNVDAObjectOverlayClasses} method.
|
|||
| __metaclass__ | |||
|
TextInfo A default TextInfo which is used to enable text review of information about widgets that don't support text content. |
|||
|
|||
|
|||
|
|||
| boolean |
|
||
|
|||
|
|||
|
|||
| treeInterceptorHandler.TreeInterceptor |
|
||
|
|||
| appModuleHandler.AppModule |
|
||
| basestring |
|
||
| int |
|
||
| basestring |
|
||
| basestring |
|
||
|
|||
| basestring |
|
||
|
|||
|
|||
| basestring |
|
||
|
|||
| set of int |
|
||
| tuple of int |
|
||
| NVDAObject or None |
|
||
|
|||
| NVDAObject or None |
|
||
| NVDAObject or None |
|
||
| NVDAObject or None |
|
||
| NVDAObject or None |
|
||
| list of NVDAObject |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
| NVDAObject |
|
||
| generator of NVDAObject |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| int |
|
||
| NVDAObject or None |
|
||
|
|||
|
|||
| NVDAObject or None |
|
||
| dict |
|
||
| int |
|
||
| boolean |
|
||
| int |
|
||
| NVDAObject |
|
||
| NVDAObject |
|
||
| textInfos.TextInfo |
|
||
| bool |
|
||
| NVDAObject or None |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| list of str |
|
||
|
Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
| DynamicNVDAObjectType |
|
||
| generator |
|
||
| boolean |
|
||
|
Inherited from |
|||
|
|||
| NVDAObject |
|
||
| NVDAObject |
|
||
| NVDAObject |
|
||
|
|||
cachePropertiesByDefault = True
|
|||
beTransparentToMouse = FalseIf true then NVDA will never consider the mouse to be on this object, rather it will be on an ancestor. |
|||
tableCellCoordsInName = FalseTrue if the object's name contains the cell coordinates, such as 'A1'. |
|||
presType_unavailable = "unavailable"
|
|||
presType_layout = "layout"
|
|||
presType_content = "content"
|
|||
|
|||
|
Inherited from |
|||
|
|||
Finds out the highest-level APIClass this object can get to given these kwargs, and updates the kwargs and returns the APIClass.
|
Provides a generator which can generate all the possible API classes (in priority order) that inherit directly from the class it was called on.
|
Finds out if this class can be instanciated from the given super kwargs. If so it updates the kwargs to contain everything it will need to instanciate this class, and returns True. If this class can not be instanciated, it returns False and kwargs is not touched.
|
Chooses overlay classes which should be added to this object's class
structure after the object has been initially instantiated. After an
NVDAObject class (normally an API-level class) is instantiated, this
method is called on the instance to choose appropriate overlay classes.
This method may use properties, etc. on the instance to make this choice.
The object's class structure is then mutated to contain these classes.
|
Retreaves an NVDAObject instance representing a control in the Operating System at the given x and y coordinates.
|
Retreaves the object representing the control currently with focus in the Operating System. This differens from NVDA's focus object as this focus object is the real focus object according to the Operating System, not according to NVDA.
|
Retreaves the object representing the current foreground control according to the Operating System. This differes from NVDA's foreground object as this object is the real foreground object according to the Operating System, not according to NVDA.
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Calculates if this object is equal to another object. Used by NVDAObject.__eq__.
|
If this NVDAObject should use a treeInterceptor, then this property provides the treeInterceptorHandler.TreeInterceptor class it should use. If not then it should be not implemented. |
Retreaves the treeInterceptor associated with this object. If a treeInterceptor has not been specifically set, the treeInterceptorHandler is asked if it can find a treeInterceptor containing this object.
|
Retreaves the appModule representing the application this object is a part of by asking appModuleHandler.
|
The role or type of control this object represents (example: button, list, dialog).
|
Retreaves the name of an action supported by this object. If index is not given then the default action will be used if it exists.
|
Performs an action supported by this object. If index is not given then the default action will be used if it exists. |
Retreaves the current states of this object (example: selected, focused).
|
The location of this object on the screen.
|
Retreaves this object's parent (the object that contains this object).
|
Exactly like parent, however another object at this same sibling level may be retreaved first (e.g. a groupbox). Mostly used when presenting context such as focus ancestry. |
Retreaves the object directly after this object with the same parent.
|
Retreaves the object directly before this object with the same parent.
|
Retreaves the first object that this object contains.
|
Retreaves the last object that this object contains.
|
Recursively traverse and return the descendants of this object. This is a depth-first forward traversal.
|
Retreaves the child of this object that currently has, or contains, the focus.
|
Retreaves the object that this object is labeled by (example: the static text label beside an edit field).
|
Retreaves position information for this object such as its level, its index with in a group, and the number of items in that group.
|
|
The index of this object in its parent object.
|
The object to which content flows from this object.
|
The object from which content flows to this object.
|
Retrieve the parent text range which embeds this object. The returned text range will have its start positioned on the embedded object character associated with this object. That is, calling textInfos.TextInfo.getEmbeddedObject() on the returned text range will return this object.
|
Determine if this object should be presented to the user in the focus ancestry.
|
Finds the closest status bar in relation to this object.
|
Called when the foreground window changes. This method should only perform tasks specific to the foreground window changing. event_focusEntered or event_gainFocus will be called for this object, so this method should not speak/braille the object, etc. |
Information about this object useful to developers. Subclasses may extend this, calling the superclass property first.
|
|
|||
tableCellCoordsInNameTrue if the object's name contains the cell coordinates, such as 'A1'. Speech and Braille can choose to in this case not present the actual row and column information as the name is already enough.
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Fri Nov 18 17:45:54 2011 | http://epydoc.sourceforge.net |