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 9e2181a..c2dcd55 100644 --- a/include/pugl/pugl.h +++ b/include/pugl/pugl.h @@ -1003,6 +1003,11 @@ PUGL_API PuglStatus puglSetWindowTitle(PuglView* view, const char* title); +/// Return the title of the window, or null +PUGL_API +const char* +puglGetWindowTitle(const PuglView* view); + /** Set the parent window for embedding a view in an existing window. diff --git a/src/implementation.c b/src/implementation.c index f7b15ff..df30730 100644 --- a/src/implementation.c +++ b/src/implementation.c @@ -227,6 +227,12 @@ puglGetViewHint(const PuglView* view, PuglViewHint hint) return (hint < PUGL_NUM_VIEW_HINTS) ? view->hints[hint] : PUGL_DONT_CARE; } +const char* +puglGetWindowTitle(const PuglView* const view) +{ + return view->title; +} + PuglStatus puglSetParentWindow(PuglView* view, PuglNativeView parent) { |