aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/types.h
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/types.h
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/types.h')
-rw-r--r--pugl/detail/types.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pugl/detail/types.h b/pugl/detail/types.h
index e750ca1..eb450e1 100644
--- a/pugl/detail/types.h
+++ b/pugl/detail/types.h
@@ -43,7 +43,7 @@ typedef struct PuglWorldInternalsImpl PuglWorldInternals;
typedef struct PuglInternalsImpl PuglInternals;
/** View hints. */
-typedef int PuglHints[PUGL_NUM_WINDOW_HINTS];
+typedef int PuglHints[PUGL_NUM_VIEW_HINTS];
/** Blob of arbitrary data. */
typedef struct {
@@ -60,7 +60,7 @@ struct PuglViewImpl {
PuglEventFunc eventFunc;
char* title;
PuglBlob clipboard;
- PuglNativeWindow parent;
+ PuglNativeView parent;
uintptr_t transientParent;
PuglHints hints;
PuglRect frame;