- virtual ~WindowSystem() {}
-
- //
- // Drawables
- //
-
- virtual Drawable *
- createDrawable(unsigned width = 0, unsigned height = 0) = 0;
-
- virtual void
- resizeDrawable(Drawable *drawable, unsigned width, unsigned height) = 0;
-
- virtual Void *
- destroyDrawable(void) = 0;
-
- //
- // Contexts
- //
-
- virtual Context *
- createContext(const Visual *visual) = 0;
-
- virtual void
- deleteContext(Context *) = 0;
-
- virtual bool
- makeCurrent(Drawable *drawable, Context *context) = 0;
-
- virtual bool
- processEvents(void) = 0;
-};