Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2019-07-29 | Clean up file documentation | David Robillard | 1 | -1/+1 | |
2019-07-29 | Completely separate backends from platform implementation | David Robillard | 1 | -18/+0 | |
This removes PuglContextType and allows the user to pass a backend directly. Normally this would come from one of the two accessors declared in the headers, but it would be possible to add backends without changing any of the existing code at all. Unfortunately, it is not possible to preserve backwards compatibility and achieve the ultimate goal of linking only to the required dependencies, so puglInitContextType() has just been removed. | |||||
2019-07-29 | Move trivial backend dispatch functions to common code | David Robillard | 1 | -18/+0 | |
2019-07-29 | Move backend to PuglView | David Robillard | 1 | -11/+11 | |
2019-07-28 | Make enterContext take a drawing parameter like leaveContext | David Robillard | 1 | -9/+10 | |
These need to be symmetric because sometimes different things need to happen in either situation when entering the context as well. | |||||
2019-07-28 | Give backends general names | David Robillard | 1 | -13/+13 | |
Towards making them opaque and exposing them to the user to decouple the core library from backends. The general names mean that it won't be possible to build multiple backends for one platform into the same binary, but that seems reasonable for now, and it will make things simpler without needing to add a bunch of dispatch code. That will still be possible if it's ever needed, though. | |||||
2019-07-28 | Rename getHandle to getContext for consistent terminology | David Robillard | 1 | -1/+1 | |
2019-07-28 | Rename PuglDrawContext to PuglBackend | David Robillard | 1 | -11/+11 | |
This name was pretty confusing since there is already the concept of a "context". | |||||
2019-07-25 | X11: Close input context on destruction | David Robillard | 1 | -0/+6 | |
2019-07-24 | Support additional special keys | David Robillard | 1 | -29/+36 | |
2019-07-24 | Unify key and character fields and separate text events | David Robillard | 1 | -23/+44 | |
Only one field is necessary to store any kind of key, including special keys, since PuglKey occupies a reserved Unicode region. This is generally much simpler to deal with since there is only one value to dispatch on. Text events are separated from key events (like Windows but unlike MacOS or X11) because it is not possible to derive text events from key press events when they occur on Windows. Since merging the two has been the source of some confusion, this approach has some advantages anyway, even though it introduces the need to handle another event type. In the process, text input has been almost completely rewritten. I have tested this with a compose key on X11 and dead keys on Windows and MacOS and everything seems to work correctly, though there may (as always) still be issues with more exotic input methods. | |||||
2019-07-24 | Rename PuglEventKey::utf8 to "string" with char type | David Robillard | 1 | -7/+6 | |
This matches Gtk and is generally less annoying to work with. | |||||
2019-07-24 | Remove view pointer from events | David Robillard | 1 | -3/+2 | |
This makes events POD, which is generally nice. The view was originally added to reflect the display and window references in XEvent, but doesn't seem very useful in Pugl applications. | |||||
2019-07-24 | Represent event time as double in seconds on all platforms | Stefan Westerfeld | 1 | -5/+5 | |
2019-07-24 | Simplify modifier translation code | David Robillard | 1 | -7/+5 | |
2019-07-23 | X11: Factor out impl variable for brevity | David Robillard | 1 | -11/+12 | |
2019-07-23 | X11: Improve live resize smoothness | David Robillard | 1 | -9/+15 | |
This avoids a double context swap when both a configure and expose event arrive in the same loop iteration, which happens often during resize. | |||||
2019-07-23 | X11: Factor out window event mask | David Robillard | 1 | -5/+6 | |
2019-07-21 | Fix some warnings | David Robillard | 1 | -8/+8 | |
2019-07-21 | Tidy up X11 code | David Robillard | 1 | -30/+16 | |
2019-07-21 | Add puglRequestAttention() | David Robillard | 1 | -0/+33 | |
2019-07-21 | Fix handling of WM_DELETE_WINDOW | David Robillard | 1 | -8/+11 | |
2019-07-21 | Use local display and window variables for brevity | David Robillard | 1 | -18/+18 | |
2019-07-21 | Make time start from approximately zero | David Robillard | 1 | -1/+1 | |
2019-07-20 | Remove redisplay flag and use system events instead | David Robillard | 1 | -11/+7 | |
2019-06-30 | Make translateKey take a PuglEventKey | David Robillard | 1 | -9/+9 | |
2019-06-30 | Send a configure event on initial window mapping | David Robillard | 1 | -0/+10 | |
2019-06-30 | Tidy up whitespace | David Robillard | 1 | -0/+1 | |
2019-06-27 | Add puglGetTime() | David Robillard | 1 | -0/+10 | |
2019-06-27 | Consistently use uint32_t everywhere | David Robillard | 1 | -2/+2 | |
2019-02-17 | Add configuration API | David Robillard | 1 | -3/+3 | |
2019-02-16 | Add missing default case | David Robillard | 1 | -0/+1 | |
2019-02-16 | Fix implicit double to int casts | David Robillard | 1 | -2/+2 | |
2019-02-16 | Clean up includes | David Robillard | 1 | -10/+9 | |
2019-02-16 | Factor out drawing context from platform window implementation | David Robillard | 1 | -188/+37 | |
2019-02-15 | Remove PUGL_CAIRO_GL | David Robillard | 1 | -36/+0 | |
The old cairo_gl.h header or something similar is easy enough to use in application code if someone wants to do this, and maintaining a separate context type for it is a hassle and arguably out of scope. | |||||
2018-09-15 | Fix minor clang-tidy warnings | David Robillard | 1 | -1/+1 | |
2018-09-11 | Fix GCC8 fall-through warnings | David Robillard | 1 | -1/+2 | |
2017-10-03 | Don't clear entire cairo surface on each expose | David Robillard | 1 | -6/+0 | |
2017-07-23 | Fix merging of expose events | David Robillard | 1 | -7/+13 | |
Thanks JP Cimalando | |||||
2016-09-20 | Move entire API to pugl.h | David Robillard | 1 | -1/+0 | |
2016-09-18 | Remove GLUT-like event callbacks | David Robillard | 1 | -0/+5 | |
2016-09-14 | Fix compose key | David Robillard | 1 | -3/+5 | |
Turns out the app needs to call setlocale(LC_ALL, "") for this to work. I am not sure if it is possible to make things work correctly purely in Pugl (since plugin UIs can't call setlocale). | |||||
2016-09-14 | Fix focus events | David Robillard | 1 | -1/+1 | |
2016-09-14 | Fix puglInitInternals prototype | David Robillard | 1 | -1/+1 | |
2016-09-01 | Add PUGL_CLOSE event | David Robillard | 1 | -11/+9 | |
This allows purely event-driven applications to handle window close. Something more extensible for WM message seems like it might be a good idea here, but I can't think of specific uses, so this will do. | |||||
2016-09-01 | Add puglGetVisible() | David Robillard | 1 | -0/+2 | |
2016-08-31 | Replace send_event with extensible flags | David Robillard | 1 | -3/+4 | |
This is currently functionally equivalent, but taking up space in the event struct for a single bool which could be used for 32 flags for any number of things that might show up in the future seems like a very bad idea. | |||||
2016-07-28 | Add support for Cairo on GL | David Robillard | 1 | -24/+90 | |
2016-07-28 | Clean up GL attributes and simplify configuration | David Robillard | 1 | -21/+32 | |