aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/mac.m
AgeCommit message (Collapse)AuthorFilesLines
2019-09-07Add clipboard supportDavid Robillard1-0/+40
2019-09-03Make almost everything return a statusDavid Robillard1-6/+12
Prepares the API for proper error handling, even though there isn't any for these functions yet.
2019-09-03Add puglSetWindowTitle()David Robillard1-0/+18
2019-09-03Replace size and aspect ratio init functions with dynamic onesDavid Robillard1-0/+34
2019-09-03Use consistent naming conventionsDavid Robillard1-9/+9
2019-09-03Add functions to get and set view size and positionDavid Robillard1-14/+84
2019-09-03Add puglDispatchEvents()David Robillard1-7/+13
2019-09-03Add puglPollEvents()David Robillard1-14/+20
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-2/+2
2019-09-03Add PuglWorldDavid Robillard1-12/+26
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-0/+9
2019-09-03Fix puglGrabFocus() to work between parent and childrenDavid Robillard1-1/+4
2019-09-03Simplify hints implementationDavid Robillard1-2/+2
2019-09-03Mac: Dispatch expose events from drawing viewMichael Fisher1-2/+2
2019-09-02Cleanup: Fix whitespaceDavid Robillard1-8/+8
2019-08-02Mac: Disable annoying bell on tab or other special key pressesDavid Robillard1-0/+5
2019-08-02Replace puglIgnoreKeyRepeat() with a hintDavid Robillard1-1/+1
2019-07-29Mac: Separate backends from platform implementationDavid Robillard1-390/+36
2019-07-29Mac: Add Cairo on Quartz supportDavid Robillard1-29/+113
This avoids the general hassles of OpenGL, which is deprecated on MacOS, and Cairo apps look much nicer and more integrated this way. As far as I can tell, Cairo actually works best here out of all the platforms, the Windows and X11 backends aren't quite as smooth.
2019-07-29Mac: Make drawView a generic NSViewDavid Robillard1-20/+46
2019-07-29Mac: Separate NSOpenGLView from input handling viewDavid Robillard1-113/+142
2019-07-29Mac: Use scrolling delta for scroll eventsDavid Robillard1-2/+2
I am not sure exactly what the difference is between these, but the documentation says to use these for scroll events. They do have different values for touchpads and the scrolling one feels a bit nicer.
2019-07-29Cleanup: Clean up includes and call IWYU in lint targetDavid Robillard1-0/+1
2019-07-29Reorganize source to separate private implementation detailsDavid Robillard1-0/+1069
Taking a page from C++ convention, where "detail" is for things that should not be included in user code.