aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pugl_cpp_demo.cpp
AgeCommit message (Collapse)AuthorFilesLines
2023-01-14Add general string hint interfaceDavid Robillard1-2/+2
This replaces the window title and class name APIs with a more general one that can be easily extended to other things, like icon names, more detailed application hints, and so on.
2023-01-08Add support for raising windowsDavid Robillard1-1/+1
2022-10-07Use uppercase integer literal suffixesDavid Robillard1-1/+1
2022-05-21Use consistent integer types for view positions and sizesDavid Robillard1-2/+2
Actual window sizes and positions fit easily in a 16-bit integer. So, we use that in "representation contexts" like events. This makes structures smaller, and allows the values to be converted to float, double, or integer without casting (since any int16_t or uint16_t value can fit in them without loss). Setter APIs use native integers for convenience, to avoid casting hassles when doing arithmetic. Ranges are checked at runtime.
2022-05-21Add a uniform API for setting size hintsDavid Robillard1-4/+5
This collapses many functions into one, which makes the API more easily extensible and reduces code size.
2022-05-20Use consistent class names and titles in tests and examplesDavid Robillard1-2/+2
2021-12-17Adopt REUSE machine-readable licensing standardDavid Robillard1-15/+2
See https://reuse.software/ for details.
2021-05-24Add fancy constructor for C++ events and wrap puglSendEvent()David Robillard1-1/+6
2021-05-24Consistently refer to C++ as "cpp" and fix installationDavid Robillard1-0/+148