aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pugl_cpp_demo.cpp
AgeCommit message (Collapse)AuthorFilesLines
2025-02-09Use angle brackets for puglutil includesDavid Robillard1-1/+1
The convention here is that quotes are used for paths relative to the current file only.
2025-02-08Replace frame with size and position hintsDavid Robillard1-1/+2
2025-02-07Use angle brackets for library includes and clean up include pathsDavid Robillard1-3/+3
2025-02-07Move test utilities to a separate subprojectDavid Robillard1-1/+2
Towards sorting out sloppy include directories, and avoiding upward-relative paths in includes. A subproject seems like overkill, but this is the only way I can think of that makes for a clean local dependency that doesn't rely on anything non-standard or trigger any linters.
2025-01-23Rename puglPostRedisplay() to puglObscureView()David Robillard1-2/+2
For consistency with event types (since "obscure" is opposite "expose") and the upcoming puglObscureRegion().
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