From 95a42df7a459fb089d2d55b52c7c84f2a296c0f4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 11 Nov 2015 15:41:12 -0500 Subject: Add API to set window class name --- pugl/pugl_internal.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pugl/pugl_internal.h') 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; @@ -116,6 +117,13 @@ puglInitWindowAspectRatio(PuglView* view, view->max_aspect_y = max_y; } +void +puglInitWindowClass(PuglView* view, const char* name) +{ + free(view->windowClass); + view->windowClass = strdup(name); +} + void puglInitWindowParent(PuglView* view, PuglNativeWindow parent) { -- cgit v1.2.3