Source files¶
Headers, implementation files and example programs referenced by the API documentation. This section is maintained in English. Each page displays the source and provides a download link. Source listings and downloads are refreshed from the repository before each site build. Program examples are extracted from the English API reference pages.
Building the examples¶
Run the commands in the API reference from the repository root. The Windows cross-compilers
must be installed under build-x64-install/bin/, with their matching runtime and sysroot.
Compiler executables and runtime libraries are not included in these source downloads.
Download bindings with their directory structure intact. Save each example under
build/api-examples/ as indicated in its reference page. The native wrappers are compiled
as C before linking with the C++ program. The resulting ELF runs on GaspardOS.
Fortran modules, C++ bridge sources and examples are also available below.
Build the complete Fortran library and examples with python bindings/fortran/build.py.
The modern GUI bridge requires the C++ and native binding sources alongside it.
Fortran 77 sources use a separate ABI and are included for compatibility.
The Newlib x64 backend section includes current-directory handling and the
transport adapter. Compile the shared backend with GASPARDOS_NEWLIB_X64;
its i686 compatibility branches are preserved in the downloads.
The x64 system call reference explains the ABI and newlib mapping.
C++ bindings¶
- code_buffer.cpp
- code_buffer.hpp
- desktop_gui.cpp
- desktop_gui.hpp
- desktop_native.cpp
- desktop_native.hpp
- file_explorer.cpp
- file_explorer.hpp
- framebuffer.hpp
- framebuffer_window.hpp
- gaspardos.hpp
- gui.hpp
- raster3d.cpp
- raster3d.hpp
- widgets.hpp
Native wrappers¶
Fortran bindings¶
- build.py
- gaspardos_gui.f90
- gaspardos_native.f90
- generate.py
- gui_bridge.cpp
- gui_bridge.h
- fs.f
- gui.f
- native_bridge.c
- sockets.f
- widgets.f
Fortran examples¶
Newlib x64 backend¶
Program examples¶
- Button.cpp
- CodeBuffer.cpp
- DirectoryListing.cpp
- DirectoryTree.cpp
- Event.cpp
- File.cpp
- FileAccess.cpp
- FileDialog.cpp
- FileEntry.cpp
- FileExplorer.cpp
- FileSystem.cpp
- Fortran.cpp
- Framebuffer.cpp
- FramebufferPresenter.cpp
- Label.cpp
- Menu.cpp
- MenuItem.cpp
- Mesh.cpp
- NativeFile.cpp
- NativeFileAccess.cpp
- NativePainter.cpp
- Painter.cpp
- PaintQueue.cpp
- Pose.cpp
- Rasterizer3D.cpp
- Shapes3D.cpp
- Socket.cpp
- TextField.cpp
- TextInput.cpp
- TreeRow.cpp
- Triangle.cpp
- Vec3.cpp
- Widget.cpp
- Widgets.cpp
- Window.cpp