X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=src%2Fscreen.h;h=bdadd8e9ad84326d5b37d61bf83e340ff7311ae8;hb=f8b8daf1828b8a8028b9344dd0feca1b8d9e859a;hp=aed042d51ae345b6b0cdd05d8e65c7cccdcb2e8a;hpb=398e6b2732decd57cdb57deb3f91d3ff08669e8b;p=ipdf%2Fcode.git 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();