diff options
author | David Robillard <d@drobilla.net> | 2015-11-11 15:41:12 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-11-11 15:41:12 -0500 |
commit | 95a42df7a459fb089d2d55b52c7c84f2a296c0f4 (patch) | |
tree | ee94d5047914497d0322a53626d74fcd7b24e41e /pugl/pugl_internal.h | |
parent | b10540d1ffddb487e8dacb6dc77d4e0d8bdf6be0 (diff) | |
download | pugl-95a42df7a459fb089d2d55b52c7c84f2a296c0f4.tar.gz pugl-95a42df7a459fb089d2d55b52c7c84f2a296c0f4.tar.bz2 pugl-95a42df7a459fb089d2d55b52c7c84f2a296c0f4.zip |
Add API to set window class name
Diffstat (limited to 'pugl/pugl_internal.h')
-rw-r--r-- | pugl/pugl_internal.h | 8 |
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; |