| 28 | // -------------------------------------------------------------------------------------------------------------------- |
| 29 | |
| 30 | int main() |
| 31 | { |
| 32 | using DGL_NAMESPACE::Application; |
| 33 | using DGL_NAMESPACE::ApplicationQuitter; |
| 34 | using DGL_NAMESPACE::Window; |
| 35 | |
| 36 | // creating and destroying simple window |
| 37 | { |
| 38 | Application app(true); |
| 39 | Window win(app); |
| 40 | } |
| 41 | |
| 42 | // creating and destroying simple window, with a delay |
| 43 | { |
| 44 | Application app(true); |
| 45 | ApplicationQuitter appQuitter(app); |
| 46 | Window win(app); |
| 47 | app.exec(); |
| 48 | } |
| 49 | |
| 50 | // showing and closing simple window, MUST be visible on screen |
| 51 | { |
| 52 | Application app(true); |
| 53 | ApplicationQuitter appQuitter(app); |
| 54 | Window win(app); |
| 55 | win.show(); |
| 56 | app.exec(); |
| 57 | } |
| 58 | |
| 59 | // TODO |
| 60 | |
| 61 | return 0; |
| 62 | } |
| 63 | |
| 64 | // -------------------------------------------------------------------------------------------------------------------- |