screen: add GetCurrentPageMeta()
authorMax Kellermann <max@musicpd.org>
Mon, 10 Sep 2018 12:39:08 +0000 (14:39 +0200)
committerMax Kellermann <max@musicpd.org>
Mon, 10 Sep 2018 12:39:08 +0000 (14:39 +0200)
src/screen.hxx

index 9baff31..4550eb0 100644 (file)
@@ -115,6 +115,10 @@ public:
                return {0, (int)title_bar.GetHeight()};
        }
 
+       const PageMeta &GetCurrentPageMeta() const {
+               return *current_page->first;
+       }
+
        PageMap::iterator MakePage(const PageMeta &sf);
 
        void OnResize();