Documentation
Documentation
How to write, build, test and publish programs with Impossible SDK.
Start here
- InstallWhat do you need? Windows or WSL on 64-bit x86, Python 3.12 or newer, and Git. Nothing else is installed system-wide.
- Your first windowHow do you open a window and paint it? Fill in one structure, give it a function that writes pixels, and run it.
- A program of your ownWhere does your program live? In its own folder and repository, pinned to one commit of the SDK.
Guide
- TiersWhich Windows functions may a program call? The ones in its tier and the tiers before it, 153 in all.
- DrawingHow do you draw Windows 11's shapes and colours? Describe your canvas as a surface, then fill shapes with the brushes of the theme.
- Text and filesHow do you read, build and save text? Paths and text are UTF-8 everywhere, a file is read whole, and a file you write is there complete or not at all.
- Testing on WindowsHow do you prove a program works? Build it in WSL or on Windows, and let Windows itself run the tests against the same files.
- With Impossible OSHow do the two projects fit together? The SDK keeps the list of functions, the controls and the shared parts; Impossible OS builds every function on that list and imports programs at a pinned commit.
- Adding to the SDK from a programWhat if your program needs something a second program could use? Build it in the SDK, then move your program's pin.
Reference
- impossible/base.hStart-up, memory and console.
- impossible/text.hUTF-8 and UTF-16, program arguments and text building.
- impossible/file.hFiles and folders, with UTF-8 paths.
- impossible/window.hOne window whose program paints every pixel.
- ui/theme.hTheme values. Portable: integers only, no system calls.
- ui/draw.hDrawing into a buffer of opaque pixels. Portable.
- ui/button.hThe button, as WinUI's DefaultButtonStyle and AccentButtonStyle draw it.
- CommandsEvery tool of the SDK and what it takes, as the tool itself says it.
- ToolchainThe programs every build uses, pinned by version and hash.
Impossible UI
- How a control is comparedHow do we know it looks like Windows 11? A small program draws the same control with real WinUI 3, and the tests compare the two pixel by pixel.
- Theme valuesEvery number WinUI's templates name, in the three themes.
- ControlsWhich controls exist, and which are planned.
Project
- What works todayWhat is built, what is planned, and whether these pages still describe the code.
- ContributingThank you for looking at Impossible SDK. It is early, so a good bug report or a small, proved fix helps most.
- SecurityPlease do not open a public issue for a security problem. Use Security, Report a vulnerability on this repository's page: the report is private.
- ChangelogNo version has been released. What
mainhas so far:
GeneratedMade from
docs/guidePublished from dfbf2d3