summaryrefslogtreecommitdiff
path: root/pugl/pugl_internal.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-11-11 15:41:12 -0500
committerDavid Robillard <d@drobilla.net>2015-11-11 15:41:12 -0500
commit95a42df7a459fb089d2d55b52c7c84f2a296c0f4 (patch)
treeee94d5047914497d0322a53626d74fcd7b24e41e /pugl/pugl_internal.h
parentb10540d1ffddb487e8dacb6dc77d4e0d8bdf6be0 (diff)
Add API to set window class name
Diffstat (limited to 'pugl/pugl_internal.h')
-rw-r--r--pugl/pugl_internal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/pugl/pugl_internal.h b/pugl/pugl_internal.h
index 1006c90..7dc9cfa 100644
--- a/pugl/pugl_internal.h
+++ b/pugl/pugl_internal.h
@@ -47,6 +47,7 @@ struct PuglViewImpl {
PuglInternals* impl;
+ char* windowClass;
PuglNativeWindow parent;
PuglContextType ctx_type;
uintptr_t transient_parent;
@@ -117,6 +118,13 @@ puglInitWindowAspectRatio(PuglView* view,
}
void
+puglInitWindowClass(PuglView* view, const char* name)
+{
+ free(view->windowClass);
+ view->windowClass = strdup(name);
+}
+
+void
puglInitWindowParent(PuglView* view, PuglNativeWindow parent)
{
view->parent = parent;