How ramonunch/altsnap works
AltSnap is a Windows utility for moving and resizing windows with Alt+mouse actions. The principal workflow is user input, action handling, and applying window movement, resizing, or snapping; configurable snap layouts are a distinct branch. The map also includes the tray/configuration and localization surfaces, plus compatibility support. Several internal links are supported by source-index references; broader runtime wiring is described at a high level in the README, since most source excerpts are partial.
Main entry points: hooks.c Input and actions · altsnap.c Application entry · languages.c Localization · tray.c Tray controls
Components 16
Window interaction
- Input and actions
hooks.c - Action contracts
hooks.h - Snap state
snap.c
Snapping and layouts
- Snap layouts
zones.c
User controls
- Application entry
altsnap.c - Tray controls
tray.c - Settings dialogs
config.c - Dialog resources
resource.h - Localization
languages.c - Language strings
languages.h - Translation files
Lang
Runtime support
- Call thunks
thunks.c - Windows compatibility
unfuck.h - C library helpers
nanolibc.h
Other components
- Windows user
- Windows windows
Connections 16
- Windows user → Application entry: starts and configures
README.md - Windows user → Windows windows: selects windows
README.md - Application entry → Input and actions: enables interaction
- Input and actions → Windows windows: moves and resizes
README.md - Input and actions → Snap state: uses restore state
hooks.c - Input and actions → Snap layouts: dispatches layout actions
hooks.c - Input and actions → Call thunks: uses thunks
hooks.c - Input and actions → Action contracts: includes definitions
hooks.c - Application entry → Tray controls: updates tray
altsnap.c - Application entry → Settings dialogs: loads settings UI
altsnap.c - Application entry → Localization: uses translations
altsnap.c - Settings dialogs → Dialog resources: uses control IDs
config.c - Localization → Language strings: loads string definitions
languages.c - Localization → Translation files: reads language files
- Tray controls → Snap layouts: saves layouts
tray.c - Windows compatibility → C library helpers: includes helpers
unfuck.h