GaspardOS C++ reference¶
x64 system calls and newlib: native ABI, current directory and collected backend sources.
Each page contains a description, usage, a complete program, Windows build commands and class methods.
| Class / structure | Description |
|---|---|
| File | Noncopyable RAII owner of a newlib stdio stream. |
| NativeFile | Noncopyable owner of an x64 file or directory handle. |
| FileSystem | Static facade for native path operations. |
| Window | Noncopyable native x64 window with asynchronous creation. |
| Socket | Noncopyable owner of an IPv4 TCP/UDP socket. |
| FileAccess | Abstract desktop filesystem interface. |
| NativeFileAccess | FileAccess adapter for x64 syscalls. |
| DirectoryListing | Noncopyable incremental directory loader. |
| FileExplorer | Noncopyable navigation and path selection model. |
| DirectoryTree | Noncopyable lazily loaded directory tree. |
| CodeBuffer | UTF-8 multiline buffer with cursor, dirty state and undo. |
| TextInput | Single-line UTF-8 input state. |
| PaintQueue | Drawing command queue that resumes after backpressure. |
| FileDialog | File dialog embedded in the parent window. |
| Painter | Abstract rectangle and text rendering interface. |
| NativePainter | Painter adapter for a Window. |
| Widgets | Noncopyable manager for at most 32 widgets. |
| Widget | Common control description. |
| Button | Activatable button. |
| TextField | ASCII input field limited to 63 bytes. |
| Menu | Drop-down menu title. |
| MenuItem | Command attached to a parent menu. |
| Label | Noninteractive text. |
| Event | Kernel-independent UI event. |
| FileEntry | UTF-8 filesystem entry. |
| TreeRow | Visible DirectoryTree row. |
| Framebuffer | Owned RGBX8888 software pixel buffer. Use it to draw in memory before presenting pixels in a window. |
| FramebufferPresenter | Incrementally present a Framebuffer to a Window using WINDOW_BLIT=146. Use it for software rendering after READY. |
| Shapes3D | Create origin-centered triangle meshes for basic shapes. Use it to start a scene without manually specifying vertices. |
| Rasterizer3D | CPU filled/wireframe triangle rasterizer with perspective projection, depth testing and near-plane clipping. Use it to draw meshes in a Framebuffer. |
| Vec3 | Three-component floating-point vector. Use with Shapes3D and Rasterizer3D. |
| Triangle | Three vertex indices and a color. Use with Shapes3D and Rasterizer3D. |
| Mesh | Mesh containing vertices and triangles. Use with Shapes3D and Rasterizer3D. |
| Pose | Object position and rotation. Use with Shapes3D and Rasterizer3D. |
Calling Fortran from C++: C interface, types, arrays and mixed-language builds.
Fortran basics: structure, variables, conditions, loops, functions and subroutines.
GaspardOS API for Fortran: files, sockets, GUI, editing, graphics and system services.