Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grahamtallen/windowtracker
My solution to a coding interview challenge: Design a simple data structure to keep track of windows for a 2D windows system similar to what is seen in Windows or MacOSX.
https://github.com/grahamtallen/windowtracker
Last synced: 26 days ago
JSON representation
My solution to a coding interview challenge: Design a simple data structure to keep track of windows for a 2D windows system similar to what is seen in Windows or MacOSX.
- Host: GitHub
- URL: https://github.com/grahamtallen/windowtracker
- Owner: grahamtallen
- Created: 2019-10-26T21:56:17.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-26T05:20:30.000Z (over 4 years ago)
- Last Synced: 2024-10-22T13:54:50.462Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
My solution to a coding interview challenge:
Design a simple data structure to keep track of windows for a 2D windows system similar to what is seen in Windows or MacOSX. The windows should have a parent child relationship, and 2D position (x,y) and size (w,h) dimensions. Child
windows should be positioned relative to their parent (if their parent x,y moves then the child position should change).
Each window should have a getGlobalPosition() method which gives its position in screen space, and a
getLocalPosition method which gives its position relative to its parent. There should be a way to output a
report of all windows, their names, and both their global and local positions.