1 module des.gui.context;
2 
3 import des.gui.widget;
4 import des.gui.canvas;
5 
6 interface DiContext
7 {
8     ///
9     DiCanvas createTop( DiWidget );
10     ///
11     void removeTop( DiWidget );
12 
13     /+ TODO
14 
15     DiCanvas createCanvas()
16 
17     Frame Buffer Object for cached drawing
18 
19     +/
20 
21     ///
22     void quit();
23 
24     ///
25     void startTextInput();
26     ///
27     void stopTextInput();
28 }
29 
30 ///
31 class DiContextException : Exception
32 {
33     ///
34     this( string msg, string file=__FILE__, size_t line=__LINE__ ) pure nothrow @safe
35     { super( msg, file, line ); }
36 }