Skip to content

Add a getObjectFromPointRedirect method on the NVDAObject class #16788

@Emil-18

Description

@Emil-18

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

Add a getObjectFromPointRedirect method on the NVDAObject class that takes x and y coordinates as parameters and returns None in the default implementation. Call this method inside the objectFromPoint method, and send the x and y coordinates as parameters. If it returns an object, treat that object as the new objectFromPoint. In this way, add-ons can implement proper mouse reading and touch support for objects that has a location that differs from the location provided by the API class. This is useful if you for example are implementing support for a custom list control that don't support any accessibillity apis, and have to rely on win32 messages. The objectFromPoint method will normaly just return the root object. You could then implement getObjectFromPointRedirect on it to instead return the list item in that exact location.

Describe alternatives you've considered

None

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Addon/APIChanges to NVDA's API for addons to support addon development.p5https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#prioritytriagedHas been triaged, issue is waiting for implementation.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions