summaryrefslogtreecommitdiff
path: root/pugl/pugl_internal.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-30 01:45:40 +0000
committerDavid Robillard <d@drobilla.net>2012-04-30 01:45:40 +0000
commit10d37a3f559e3c94101253227954ddc08d845f6a (patch)
tree553c0bae05536ea8102031ab76b816076620b318 /pugl/pugl_internal.h
parent11f56420c1fc7b4b3a04a13d48bf47a995b2efde (diff)
PuglWindow => PuglView.
Diffstat (limited to 'pugl/pugl_internal.h')
-rw-r--r--pugl/pugl_internal.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/pugl/pugl_internal.h b/pugl/pugl_internal.h
index 3685522..0b04e5d 100644
--- a/pugl/pugl_internal.h
+++ b/pugl/pugl_internal.h
@@ -27,7 +27,7 @@
typedef struct PuglPlatformDataImpl PuglPlatformData;
-struct PuglWindowImpl {
+struct PuglViewImpl {
PuglHandle handle;
PuglCloseFunc closeFunc;
PuglDisplayFunc displayFunc;
@@ -45,55 +45,55 @@ struct PuglWindowImpl {
};
void
-puglSetHandle(PuglWindow* window, PuglHandle handle)
+puglSetHandle(PuglView* view, PuglHandle handle)
{
- window->handle = handle;
+ view->handle = handle;
}
PuglHandle
-puglGetHandle(PuglWindow* window)
+puglGetHandle(PuglView* view)
{
- return window->handle;
+ return view->handle;
}
void
-puglSetCloseFunc(PuglWindow* window, PuglCloseFunc closeFunc)
+puglSetCloseFunc(PuglView* view, PuglCloseFunc closeFunc)
{
- window->closeFunc = closeFunc;
+ view->closeFunc = closeFunc;
}
void
-puglSetDisplayFunc(PuglWindow* window, PuglDisplayFunc displayFunc)
+puglSetDisplayFunc(PuglView* view, PuglDisplayFunc displayFunc)
{
- window->displayFunc = displayFunc;
+ view->displayFunc = displayFunc;
}
void
-puglSetKeyboardFunc(PuglWindow* window, PuglKeyboardFunc keyboardFunc)
+puglSetKeyboardFunc(PuglView* view, PuglKeyboardFunc keyboardFunc)
{
- window->keyboardFunc = keyboardFunc;
+ view->keyboardFunc = keyboardFunc;
}
void
-puglSetMotionFunc(PuglWindow* window, PuglMotionFunc motionFunc)
+puglSetMotionFunc(PuglView* view, PuglMotionFunc motionFunc)
{
- window->motionFunc = motionFunc;
+ view->motionFunc = motionFunc;
}
void
-puglSetMouseFunc(PuglWindow* window, PuglMouseFunc mouseFunc)
+puglSetMouseFunc(PuglView* view, PuglMouseFunc mouseFunc)
{
- window->mouseFunc = mouseFunc;
+ view->mouseFunc = mouseFunc;
}
void
-puglSetReshapeFunc(PuglWindow* window, PuglReshapeFunc reshapeFunc)
+puglSetReshapeFunc(PuglView* view, PuglReshapeFunc reshapeFunc)
{
- window->reshapeFunc = reshapeFunc;
+ view->reshapeFunc = reshapeFunc;
}
void
-puglSetScrollFunc(PuglWindow* window, PuglScrollFunc scrollFunc)
+puglSetScrollFunc(PuglView* view, PuglScrollFunc scrollFunc)
{
- window->scrollFunc = scrollFunc;
+ view->scrollFunc = scrollFunc;
}