aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_internal.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-29 06:08:19 +0000
committerDavid Robillard <d@drobilla.net>2012-04-29 06:08:19 +0000
commitd4b2829de83ca5f0efd3d1ee2683ee400e63ffe2 (patch)
treed2e514e1090cf34e77174503bfb4859e9448fdb8 /pugl/pugl_internal.h
parent48c439c06576092e1b3de89146c7f201a3f4453b (diff)
downloadpugl-d4b2829de83ca5f0efd3d1ee2683ee400e63ffe2.tar.gz
pugl-d4b2829de83ca5f0efd3d1ee2683ee400e63ffe2.tar.bz2
pugl-d4b2829de83ca5f0efd3d1ee2683ee400e63ffe2.zip
Scroll API.
Diffstat (limited to 'pugl/pugl_internal.h')
-rw-r--r--pugl/pugl_internal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/pugl/pugl_internal.h b/pugl/pugl_internal.h
index 8a7b217..3685522 100644
--- a/pugl/pugl_internal.h
+++ b/pugl/pugl_internal.h
@@ -35,6 +35,7 @@ struct PuglWindowImpl {
PuglMotionFunc motionFunc;
PuglMouseFunc mouseFunc;
PuglReshapeFunc reshapeFunc;
+ PuglScrollFunc scrollFunc;
PuglPlatformData* impl;
@@ -90,3 +91,9 @@ puglSetReshapeFunc(PuglWindow* window, PuglReshapeFunc reshapeFunc)
{
window->reshapeFunc = reshapeFunc;
}
+
+void
+puglSetScrollFunc(PuglWindow* window, PuglScrollFunc scrollFunc)
+{
+ window->scrollFunc = scrollFunc;
+}