Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2020-07-02 | Mac: Fix implicit conversion warnings | David Robillard | 1 | -3/+3 | |
2020-07-02 | Mac: Declare instance variables in implementation | David Robillard | 1 | -3/+16 | |
Declaring instance variables in interfaces is deprecated, according to Wobjc-interface-vars (Apple clang version 11.0.0). | |||||
2020-06-13 | Mac: Only create an AutoreleasePool for programs | David Robillard | 1 | -5/+10 | |
Avoids crashes in some plugin scenarios when draining the AutoreleasePool. This is still probably not ideal, more fine-grained use of auto release facilities might be more appropriate here. | |||||
2020-06-13 | Add puglSetCursor() | Jean Pierre Cimalando | 1 | -1/+50 | |
2020-06-13 | Fix mouse position of events on high resolution MacOS | David Robillard | 1 | -1/+11 | |
2020-05-16 | Add default and maximum size | David Robillard | 1 | -7/+58 | |
2020-05-16 | Fix indentation | David Robillard | 1 | -3/+3 | |
2020-05-16 | Use email address in copyright headers | David Robillard | 1 | -1/+1 | |
Not really sure why I used a web link here (maybe because it's more stable), but this is more conventional. | |||||
2020-05-16 | Fix file documentation | David Robillard | 1 | -1/+2 | |
2020-04-08 | Mac: Use high-resolution backing surfaces | David Robillard | 1 | -37/+96 | |
2020-04-06 | Implement puglSetTransientFor() for Mac and Windows | David Robillard | 1 | -0/+17 | |
2020-04-03 | Mac: Use NSMakeRect over CGRectMake | David Robillard | 1 | -1/+1 | |
Using CGRectMake here apparently doesn't work on older versions of MacOS. | |||||
2020-04-01 | Consistently use "view" terminology in API | David Robillard | 1 | -2/+2 | |
The sloppy use of "window" caused quite a bit of confusion, since views only correspond to top-level windows in some cases, and on MacOS, a non-top-level view is not a "window" at all. | |||||
2020-04-01 | Replace puglShowWindow() with puglRealize() | David Robillard | 1 | -13/+16 | |
2020-03-31 | Mac: Fix various warnings | David Robillard | 1 | -16/+21 | |
2020-03-17 | Use clearer names for pointer events | David Robillard | 1 | -3/+3 | |
These old "notify" names are a smell from X11 which is a bit strange and inconsistent here, since nearly everything is a "notification" of sorts. I think the new names here are much more clear since they are consistent with the keyboard focus events. | |||||
2020-03-16 | Simplify puglRequestAttention() | David Robillard | 1 | -17/+0 | |
Now that timers are exposed, applications can repeatedly nag for attention themselves if they really want to. | |||||
2020-03-16 | Add timer events | David Robillard | 1 | -0/+44 | |
2020-03-16 | MacOS: Fix semantics of puglUpdate() with negative timeout | David Robillard | 1 | -0/+6 | |
2020-03-16 | MacOS: Move initial configure to just before map | David Robillard | 1 | -11/+10 | |
2020-03-16 | Factor out dispatching configure events in the drawing context | David Robillard | 1 | -1/+1 | |
The updates here need to happen whenever a configure is dispatched, even outside puglDispatchEvent(). This removes the last remaining direct calls to the event callback so the common implementation can always do the right thing. | |||||
2020-03-16 | Only send update events when the view is visible | David Robillard | 1 | -1/+4 | |
2020-03-15 | Unify event loop functions as puglUpdate() | David Robillard | 1 | -31/+20 | |
The previous separation between polling and dispatching was a lie, especially on MacOS where it is impossible to only poll for events without dispatching anything. Providing such an API is misleading, and problematic in various other ways. So, merge them into a single puglUpdate() function which can do the right thing on all platforms. This also adds the behaviour of actually processing all events in the given time interval, which is almost always what clients actually want to do when using a positive timeout (naively doing this before caused terrible input lag). | |||||
2020-03-15 | Add type and flags to world | David Robillard | 1 | -1/+2 | |
Unfortunately this is an API break, but there's no reasonable way to deprecate the old function and this is required for things to work correctly. The type will be used in following commits to tick the main loop and dispatch events correctly for either case. | |||||
2020-03-15 | Cleanup: Add puglDispatchSimpleEvent() internal utility | David Robillard | 1 | -8/+4 | |
2020-03-15 | Cleanup: Remove redundant PUGL_API declarations | David Robillard | 1 | -1/+1 | |
2020-03-15 | Remove backend resize method | David Robillard | 1 | -8/+0 | |
2020-03-09 | Add PuglEventClient and puglSendEvent() | David Robillard | 1 | -0/+48 | |
This event makes it possible to send an arbitrary event to a view, which is useful for many things. In particular, this method of communication with views will wake up the event loop, unlike hacks in applications that share data in some other way. | |||||
2020-03-09 | Add create, destroy, map, and unmap events | David Robillard | 1 | -4/+35 | |
These can be used to do things when a view is created or destroyed, in particular set up the GL context in a more controlled way. Map and unmap events are also added for when views are shown and hidden so application can react to this as well. Towards the deprecation of puglEnterContext() and puglLeaveContext(), which are prone to abuse. squash! Remove client event stuff | |||||
2020-03-08 | Mac: Prevent indefinite blocking of puglDispatchEvents | David Robillard | 1 | -0/+9 | |
2020-03-08 | Mac: Do not dispatch expose events if window is invisible | David Robillard | 1 | -0/+4 | |
2020-03-08 | Mac: Make windows initially invisible as on other platforms | David Robillard | 1 | -0/+1 | |
2020-03-08 | Mac: Fix stub backend | David Robillard | 1 | -17/+0 | |
2020-03-08 | Cleanup: Fix typo | David Robillard | 1 | -1/+1 | |
2020-03-02 | Omit deprecated implementations with PUGL_DISABLE_DEPRECATED | David Robillard | 1 | -0/+4 | |
2020-03-01 | Cleanup: Adjust some code to be more clang-format friendly | David Robillard | 1 | -40/+48 | |
2020-03-01 | Put PuglEventAny member of PuglEvent first for easy initialization | David Robillard | 1 | -6/+3 | |
2019-12-09 | Mac: Fix missing NSWindowStyleMask type on 10.11 | Hanspeter Portner | 1 | -0/+8 | |
2019-11-21 | Rename "backend" headers | David Robillard | 1 | -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-20 | Mac: Move puglGetProcAddress() to mac_gl.m | David Robillard | 1 | -17/+0 | |
2019-11-20 | Mac: Fix unused parameter warning | David Robillard | 1 | -1/+1 | |
2019-11-03 | Remove redisplay flag and add puglPostRedisplayRect() | David Robillard | 1 | -0/+9 | |
2019-11-03 | Add puglGetNativeWorld() | David Robillard | 1 | -0/+6 | |
2019-11-03 | Expose functional stub backend | David Robillard | 1 | -0/+15 | |
2019-11-03 | Fix puglFreeView() crashes when window creation failed | Jordan Halase | 1 | -10/+17 | |
2019-09-07 | Add clipboard support | David Robillard | 1 | -0/+40 | |
2019-09-03 | Make almost everything return a status | David Robillard | 1 | -6/+12 | |
Prepares the API for proper error handling, even though there isn't any for these functions yet. | |||||
2019-09-03 | Add puglSetWindowTitle() | David Robillard | 1 | -0/+18 | |
2019-09-03 | Replace size and aspect ratio init functions with dynamic ones | David Robillard | 1 | -0/+34 | |
2019-09-03 | Use consistent naming conventions | David Robillard | 1 | -9/+9 | |