X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fscreen.h;h=bdadd8e9ad84326d5b37d61bf83e340ff7311ae8;hp=aed042d51ae345b6b0cdd05d8e65c7cccdcb2e8a;hb=f0b6c9b6b95fde134927c395afbfbbbc057868e6;hpb=d9c0c3792133f87cd224dc22be428be8ddc016d8 diff --git a/src/screen.h b/src/screen.h index aed042d..bdadd8e 100644 --- a/src/screen.h +++ b/src/screen.h @@ -18,7 +18,7 @@ namespace IPDF class Screen { public: - Screen(); + Screen(bool visible = true); ~Screen(); // 'Pumps' the system event queue. @@ -75,6 +75,8 @@ namespace IPDF void ShowDebugFont(bool show = true) {m_show_debug_font = show;} bool DebugFontShown() const {return m_show_debug_font;} + + bool Valid() const {return m_window != NULL;} private: void ResizeViewport(int width, int height); void DebugFontFlush();