diff options
-rw-r--r-- | include/pugl/pugl.h | 5 | ||||
-rw-r--r-- | src/implementation.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/pugl/pugl.h b/include/pugl/pugl.h index c2dcd55..c13fa69 100644 --- a/include/pugl/pugl.h +++ b/include/pugl/pugl.h @@ -693,6 +693,11 @@ PUGL_API PuglStatus puglSetClassName(PuglWorld* world, const char* name); +/// Get the class name of the application, or null +PUGL_API +const char* +puglGetClassName(const PuglWorld* world); + /** Return the time in seconds. diff --git a/src/implementation.c b/src/implementation.c index df30730..145d53b 100644 --- a/src/implementation.c +++ b/src/implementation.c @@ -137,6 +137,12 @@ puglSetClassName(PuglWorld* const world, const char* const name) return PUGL_SUCCESS; } +const char* +puglGetClassName(const PuglWorld* world) +{ + return world->className; +} + PuglView* puglNewView(PuglWorld* const world) { |