aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-24 23:46:17 +0200
committerDavid Robillard <d@drobilla.net>2019-09-03 08:32:16 +0200
commit5081d49f9f08596c07a8ed32430a4fa3e1baf352 (patch)
tree1e654d4fc34ea582e356373ae5bd39fac91ae3bc /pugl/pugl.h
parentda0f76d22df1813a386f2b5e35ebe637da78889f (diff)
downloadpugl-5081d49f9f08596c07a8ed32430a4fa3e1baf352.tar.gz
pugl-5081d49f9f08596c07a8ed32430a4fa3e1baf352.tar.bz2
pugl-5081d49f9f08596c07a8ed32430a4fa3e1baf352.zip
Add puglHasFocus()
Diffstat (limited to 'pugl/pugl.h')
-rw-r--r--pugl/pugl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/pugl/pugl.h b/pugl/pugl.h
index f352766..b176696 100644
--- a/pugl/pugl.h
+++ b/pugl/pugl.h
@@ -641,6 +641,12 @@ PUGL_API PUGL_DEPRECATED_BY("puglInitWindowHint") void
puglIgnoreKeyRepeat(PuglView* view, bool ignore);
/**
+ Return true iff `view` has the input focus.
+*/
+PUGL_API bool
+puglHasFocus(const PuglView* view);
+
+/**
Grab the input focus.
*/
PUGL_API void