aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/implementation.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-04-01 19:36:01 +0200
committerDavid Robillard <d@drobilla.net>2020-04-01 19:41:37 +0200
commit00e0a5f2ce568f56cbfebed1a7eef4ced5ef09eb (patch)
treebc0b4601e79da7fe97635e76d1ccaab0f7154a85 /pugl/detail/implementation.c
parent5988b8bc72bfe3fc93f5fb434354ee122c7d941b (diff)
downloadpugl-00e0a5f2ce568f56cbfebed1a7eef4ced5ef09eb.tar.gz
pugl-00e0a5f2ce568f56cbfebed1a7eef4ced5ef09eb.tar.bz2
pugl-00e0a5f2ce568f56cbfebed1a7eef4ced5ef09eb.zip
Consistently use "view" terminology in API
The sloppy use of "window" caused quite a bit of confusion, since views only correspond to top-level windows in some cases, and on MacOS, a non-top-level view is not a "window" at all.
Diffstat (limited to 'pugl/detail/implementation.c')
-rw-r--r--pugl/detail/implementation.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pugl/detail/implementation.c b/pugl/detail/implementation.c
index 1454899..6bb019d 100644
--- a/pugl/detail/implementation.c
+++ b/pugl/detail/implementation.c
@@ -62,8 +62,8 @@ puglStrerror(const PuglStatus status)
case PUGL_BAD_BACKEND: return "Invalid or missing backend";
case PUGL_BAD_PARAMETER: return "Invalid parameter";
case PUGL_BACKEND_FAILED: return "Backend initialisation failed";
- case PUGL_REGISTRATION_FAILED: return "Window class registration failed";
- case PUGL_CREATE_WINDOW_FAILED: return "Window creation failed";
+ case PUGL_REGISTRATION_FAILED: return "Class registration failed";
+ case PUGL_REALIZE_FAILED: return "View creation failed";
case PUGL_SET_FORMAT_FAILED: return "Failed to set pixel format";
case PUGL_CREATE_CONTEXT_FAILED: return "Failed to create drawing context";
case PUGL_UNSUPPORTED_TYPE: return "Unsupported data type";
@@ -237,7 +237,7 @@ puglGetWorld(PuglView* view)
PuglStatus
puglSetViewHint(PuglView* view, PuglViewHint hint, int value)
{
- if (hint < PUGL_NUM_WINDOW_HINTS) {
+ if (hint < PUGL_NUM_VIEW_HINTS) {
view->hints[hint] = value;
return PUGL_SUCCESS;
}
@@ -246,7 +246,7 @@ puglSetViewHint(PuglView* view, PuglViewHint hint, int value)
}
PuglStatus
-puglSetParentWindow(PuglView* view, PuglNativeWindow parent)
+puglSetParentWindow(PuglView* view, PuglNativeView parent)
{
view->parent = parent;
return PUGL_SUCCESS;