aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/win.c
AgeCommit message (Collapse)AuthorFilesLines
2019-11-21Rename "backend" headersDavid Robillard1-1/+1
Working on Vulkan clarified what has always been slightly smelly about the design and organization here: not everything that is API specific is really in a "backend" (a PuglBackend). The concrete example is puglGetProcAddress(), which only makes sense for GL and is actually implemented in the "backend" files. Arguably puglGetContext() is also such a thing. So, rename the headers so they can be the place where API-specific things go in general, which happens to include a backend most of the time. The stub is a bit of an exception to this, but whatever. The includes look tidier this way. In place of the old headers are compatibility stubs that just emit a warning and include the new version, which will be maintained for a while.
2019-11-03Remove redisplay flag and add puglPostRedisplayRect()David Robillard1-9/+15
2019-11-03Add puglGetNativeWorld()David Robillard1-0/+6
2019-11-03Windows: Do not require backends to have a surfaceDavid Robillard1-1/+1
This was just leftover cruft from before error handling was cleaned up, any failure to configure must now be reported by the backend.
2019-11-03Expose functional stub backendDavid Robillard1-0/+38
2019-11-03Fix puglFreeView() crashes when window creation failedJordan Halase1-1/+4
2019-09-07Clean up error handlingDavid Robillard1-9/+9
2019-09-07Add clipboard supportDavid Robillard1-0/+82
2019-09-07Cleanup: Fix whitespaceDavid Robillard1-13/+13
2019-09-07Windows: Fix library leak during world creationDavid Robillard1-0/+2
2019-09-03Make almost everything return a statusDavid Robillard1-11/+17
Prepares the API for proper error handling, even though there isn't any for these functions yet.
2019-09-03Add puglSetWindowTitle()David Robillard1-4/+16
2019-09-03Add puglSetClassName()David Robillard1-7/+3
2019-09-03Replace size and aspect ratio init functions with dynamic onesDavid Robillard1-0/+22
2019-09-03Use consistent naming conventionsDavid Robillard1-14/+14
2019-09-03Windows: Fix configured size of child viewsDavid Robillard1-0/+5
2019-09-03Windows: Draw while application menu is openDavid Robillard1-0/+2
2019-09-03Windows: Improve resize smoothness slightlyDavid Robillard1-3/+1
2019-09-03Windows: Improve puglPostRedisplay() performanceDavid Robillard1-5/+12
2019-09-03Windows: Prevent event loop from running foreverDavid Robillard1-3/+20
2019-09-03Add functions to get and set view size and positionDavid Robillard1-8/+38
2019-09-03Add puglDispatchEvents()David Robillard1-3/+9
2019-09-03Add puglPollEvents()David Robillard1-0/+14
This allows waiting for events for any view in the world. It also improves on puglWaitForEvent() by the addition of a time parameter that allows indefinite blocking, non-blocking polling, and blocking polling with a timeout.
2019-09-03Move puglGetTime() to PuglWorldDavid Robillard1-3/+3
2019-09-03Add PuglWorldDavid Robillard1-8/+22
The old API was broken for programs that manage multiple views, since it was impossible to wait for events on any view. There are also several functions in the API which are not actually associated with views at all, so those can now be moved to the more appropriate PuglWorld to make this more clear. The old puglInit() and puglDestroy() functions are preserved for compatibility, but marked as deprecated.
2019-09-03Add puglHasFocus()David Robillard1-1/+7
2019-09-03Windows: Fix class registration for multiple viewsDavid Robillard1-14/+24
2019-09-03Simplify hints implementationDavid Robillard1-1/+1
2019-08-02Fix unnecessary conversionsDavid Robillard1-1/+1
2019-08-02Replace puglIgnoreKeyRepeat() with a hintDavid Robillard1-1/+1
2019-07-31Windows: Support UTF8 in window titlesDavid Robillard1-1/+19
2019-07-29Cleanup: Clean up includes and call IWYU in lint targetDavid Robillard1-0/+2
2019-07-29Fix various clang-tidy warningsDavid Robillard1-13/+13
2019-07-29Reorganize source to separate private implementation detailsDavid Robillard1-0/+677
Taking a page from C++ convention, where "detail" is for things that should not be included in user code.