X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=simple_window.h;h=6339609747a0d55f33cc9c9068c81393007c29d4;hb=ea2a7fd04689794d3fb266e2b73bedb10953abb4;hp=37218ebef0795bc5c839022a267211746a25e902;hpb=3caf13085a6ae1ae41d6f489c8b69206b0ffa48d;p=universe.git diff --git a/simple_window.h b/simple_window.h index 37218eb..6339609 100644 --- a/simple_window.h +++ b/simple_window.h @@ -12,6 +12,12 @@ using namespace std; #include #include +#include + +#ifdef CAIRO_SUPPORT +#include +#include +#endif class SimpleEvent { public: @@ -31,6 +37,8 @@ public: class SimpleWindow { Display *_display; + int _screen; + Visual *_visual; Window _window; Pixmap _pixmap; GC _gc; @@ -61,6 +69,10 @@ public: virtual int file_descriptor(); virtual SimpleEvent event(); + +#ifdef CAIRO_SUPPORT + virtual cairo_t *get_cairo_context_resource(); +#endif }; #endif