X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fscreen.h;h=bdadd8e9ad84326d5b37d61bf83e340ff7311ae8;hp=6b52a094730c06e6f089efe1e5244554095a2d37;hb=f28146cf72fc68c8d3690814b1f89d47b8c4e7b9;hpb=6dd539966821debd18e0b86ed126742cd81d7fc9 diff --git a/src/screen.h b/src/screen.h index 6b52a09..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. @@ -72,6 +72,11 @@ namespace IPDF void RequestQuit() {m_no_quit_requested = false;} bool QuitRequested() const {return !m_no_quit_requested;} + + 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(); @@ -104,6 +109,7 @@ namespace IPDF int m_debug_font_index_head; View * m_view; bool m_no_quit_requested; + bool m_show_debug_font; }; }