Skip to content

Coordinate systems #3891

Open
Open
@madsmtm

Description

@madsmtm

While doing #3890, I reviewed all our instances of [Physical|Logical|]Position, and categorized them relative to their origin point:

Desktop coordinates:

  • MonitorHandle::position
  • WindowEvent::Moved
  • Window::outer_position

Window coordinates:

Surface coordinates:

  • Window::set_ime_cursor_area
  • Window::show_window_menu

MouseScrollDelta::PixelDelta is a delta, so it has no origin and hence no coordinate system.

I believe that we should make set_cursor_position, the pointer APIs and the DnD APIs use surface coordinates, since that's the easier coordinate system for users to work with.

Metadata

Metadata

Assignees

No one assigned

    Labels

    B - bugDang, that shouldn't have happenedC - needs discussionDirection must be ironed outC - nominatedNominated for discussion in the next meetingS - apiDesign and usability

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions