aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl.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.h
parent48c439c06576092e1b3de89146c7f201a3f4453b (diff)
downloadpugl-d4b2829de83ca5f0efd3d1ee2683ee400e63ffe2.tar.gz
pugl-d4b2829de83ca5f0efd3d1ee2683ee400e63ffe2.tar.bz2
pugl-d4b2829de83ca5f0efd3d1ee2683ee400e63ffe2.zip
Scroll API.
Diffstat (limited to 'pugl/pugl.h')
-rw-r--r--pugl/pugl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/pugl/pugl.h b/pugl/pugl.h
index a764620..f173525 100644
--- a/pugl/pugl.h
+++ b/pugl/pugl.h
@@ -55,6 +55,7 @@ typedef void (*PuglMouseFunc)(PuglWindow* handle,
int button, bool down,
int x, int y);
typedef void (*PuglReshapeFunc)(PuglWindow* handle, int width, int height);
+typedef void (*PuglScrollFunc)(PuglWindow* handle, int dx, int dy);
/**
Create a new GL window.
@@ -120,6 +121,12 @@ void
puglSetMouseFunc(PuglWindow* window, PuglMouseFunc mouseFunc);
/**
+ Set the function to call on scroll events.
+*/
+void
+puglSetScrollFunc(PuglWindow* window, PuglScrollFunc scrollFunc);
+
+/**
Set the function to call when the window size changes.
*/
void