Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2025-02-08 | Replace frame with size and position hints | David Robillard | 32 | -226/+315 | |
2025-02-08 | Add PUGL_CURRENT_SIZE hint and make size hints dynamic | David Robillard | 5 | -34/+55 | |
2025-02-08 | Remove puglSetFrame() | David Robillard | 6 | -124/+7 | |
Towards fully separating position from size. | |||||
2025-02-08 | MacOS: Avoid puglSetFrame() in puglRealize() | David Robillard | 1 | -7/+15 | |
2025-02-08 | MacOS: Avoid puglSetFrame() in puglSetPosition() and puglSetSize() | David Robillard | 1 | -20/+19 | |
2025-02-08 | Simplify and shorten enumerator comments | David Robillard | 1 | -3/+3 | |
2025-02-08 | Add missing C++ binding definitions | David Robillard | 1 | -0/+8 | |
2025-02-07 | Fix accidentally exported symbol | David Robillard | 1 | -1/+0 | |
2025-02-07 | Update clang-format configuration | David Robillard | 15 | -186/+103 | |
2025-02-07 | Use angle brackets for library includes and clean up include paths | David Robillard | 87 | -187/+156 | |
2025-02-07 | Move test utilities to a separate subproject | David Robillard | 42 | -52/+74 | |
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-02-07 | Add C++ bindings to meson configuration summary | Nedko Arnaudov | 1 | -0/+1 | |
2025-02-06 | Add option to disable C++ bindings | David Robillard | 5 | -9/+29 | |
2025-02-06 | Remove deprecated API | David Robillard | 12 | -660/+1 | |
As far as I can tell, nobody actually cares about this in practice now, and it's slated for removal anyway. | |||||
2025-02-06 | Suppress new checks in clang-tidy 19 | David Robillard | 1 | -0/+1 | |
I get that these aren't all intended to be universal, but suggesting the replacement of standard functions with boost ones is completely backwards. This is what a lack of a pluggable architecture gets you. | |||||
2025-02-06 | Fully parenthesize mathematical expressions | David Robillard | 6 | -21/+23 | |
Well, on X11 where I'm running clang-tidy anyway, there may be some stragglers in the other platform implementations. Appeases the readability-math-missing-parentheses check added in clang-tidy 19. | |||||
2025-02-06 | Fully parenthesize mathematical expressions | David Robillard | 3 | -7/+8 | |
2025-02-06 | Explicitly specify all PuglKey values | David Robillard | 1 | -71/+71 | |
Appeases the cert-int09-c and readability-enum-initial-value checks added in clang-tidy 19. | |||||
2025-02-06 | Gracefully handle failing return from ftell() | David Robillard | 2 | -8/+17 | |
Again I don't think this is actually a concern, but it appeases clang-tidy. | |||||
2025-02-06 | X11: Gracefully handle failure of clock_gettime() | David Robillard | 1 | -1/+4 | |
As gracefully as possible given the API anyway. I don't think this is an error case that happens enough to really need transparent error handling, if the clock doesn't work all is lost anyway. Appeases cert-err33-c, which started caring about clock_gettime() in clang-tidy 19. | |||||
2025-02-06 | Update whitespace | David Robillard | 1 | -1/+2 | |
Apparently clang-format 19 decided to get even worse in this case. The C and C++ committes really, really should have sorted out this nonsense a decade ago. | |||||
2025-02-06 | Fix typo | David Robillard | 1 | -2/+2 | |
2025-02-01 | Consistently use unsigned literals for event flags | David Robillard | 5 | -33/+33 | |
2025-01-31 | Windows: Improve clipboard reliability | David Robillard | 1 | -2/+15 | |
2025-01-31 | Windows: Actually use impl variables | David Robillard | 1 | -14/+13 | |
2025-01-31 | Windows: Ignore return value of SetForegroundWindow | David Robillard | 1 | -1/+1 | |
It turns out that this is flaky for reasons that aren't terribly clear from the documentation. So, just ignore it, it's not the end of the world if raising doesn't happen anyway. | |||||
2025-01-31 | Windows: Improve error handling | David Robillard | 1 | -46/+30 | |
2025-01-31 | Windows: Simplify message polling | David Robillard | 1 | -21/+6 | |
The internal puglPollWinEvents() abstraction was doing more harm than good. | |||||
2025-01-31 | Windows: Avoid using a floating point loop counter | David Robillard | 1 | -1/+3 | |
2025-01-23 | Replace puglPostRedisplayRect() with puglObscureRegion() | David Robillard | 9 | -66/+129 | |
2025-01-23 | Rename puglPostRedisplay() to puglObscureView() | David Robillard | 18 | -44/+58 | |
For consistency with event types (since "obscure" is opposite "expose") and the upcoming puglObscureRegion(). | |||||
2025-01-23 | Draw position, size, and scale in pugl_management_demo | David Robillard | 1 | -3/+21 | |
2025-01-23 | Update clant configuration | David Robillard | 1 | -4/+0 | |
2025-01-23 | Simplify some conditionals | David Robillard | 1 | -3/+4 | |
2025-01-22 | Simplify initial position code and place children at the origin | David Robillard | 5 | -134/+121 | |
The code to find the initial size and position for a view had a lot of duplication, and was inconsistent between platforms. Flaky positioning and attempting to center embedded children has historically caused a bunch of problems in general, particularly since windows can be resized. So, factor out all the initial size and position code so that the logic is in one centralized place used by all platforms, and always position embedded children within their parent at the top/left origin. For top-level windows, the view is centered on its transient parent or the screen (as before). A new platform function puglGetAncestorCenter() is used to do this in general code. Also towards a total separation of position and size, towards support for Wayland, where applications don't dictate their own positions. | |||||
2025-01-22 | Factor out puglIsValidSize() | David Robillard | 5 | -5/+14 | |
2025-01-22 | Factor out puglIsValidPosition() | David Robillard | 6 | -8/+17 | |
2025-01-22 | Rename PuglViewSize to PuglArea | David Robillard | 7 | -36/+36 | |
2025-01-22 | Make puglSetSizeHint() consistent with puglSetSize() | David Robillard | 7 | -37/+45 | |
In general, it's more convenient to have full-width integers as parameters, since C will promote any arithmetic on smaller types to them anyway. Using narrow types here, then, doesn't really make anything stricter, just forces an annoying cast when lots of warnings are enabled, which is likely unchecked. Better to handle it here, since it's more convenient, and the integer range checks the compiler can do aren't correct anyway (the max width/height is intentionally smaller than the max PuglSpan, so it can fit in a signed 16-bit integer). | |||||
2025-01-22 | Windows: Avoid waiting less than a millisecond | David Robillard | 1 | -2/+4 | |
There is API to access the minimum timer resolution, but it seems to always be 1 millisecond, which is also the unit of the MsgWaitForMultipleObjects parameter, so just avoid the fuss and hardcode this as the minimum. This should slightly reduce overhead when the main loop is running without much of a margin until the frame needs to be drawn. | |||||
2025-01-21 | Update stale deprecations | David Robillard | 1 | -3/+3 | |
2025-01-21 | Use a consistent naming scheme for parent functions | David Robillard | 6 | -15/+40 | |
These could be combined into a hint-like general get/set mechanism, but currently there's only two window relationships and no immediate plans to add more, so that feels a bit over-engineered. So, just rename for consistency with puglSetTransientParent(). | |||||
2025-01-21 | Use PuglSpan for view sizes | David Robillard | 5 | -21/+19 | |
2025-01-21 | Fix strict header warning test build | David Robillard | 2 | -2/+9 | |
2025-01-21 | Fix pugl_shader_demo refresh rate on Windows | David Robillard | 2 | -6/+7 | |
2025-01-21 | Support building for Windows with or without UNICODE | David Robillard | 3 | -40/+70 | |
2025-01-21 | Use enums for WGL constants | David Robillard | 1 | -24/+36 | |
2025-01-21 | X11: Generate text events for keypad symbols | Martin Preinfalk | 1 | -1/+2 | |
2025-01-21 | Make MacOS touchpad scroll sensitivity closer to other platforms | David Robillard | 1 | -3/+3 | |
2025-01-21 | Fix Windows test build with Vulkan | David Robillard | 2 | -2/+2 | |