<< Introduction [Table of Contents] >> Window

uni.app.Application

At the core of any application lives one of these. But don't fear, it's not going to get in your way, promise!

import uni.group.app;

void main()
{
  auto app = new Application;
  
  while(app.interact)
  {
    app.rest;
  }
}

There can only be one application class, however it's up to you as to when and where you want to create it. The interact method looks for and handles messages and returns true if the application should continue running. The rest method waits for an input or system event and then continues execution. The use of this would indicate that this program is interested in rendering in response to input, rather than as often as possible.

[Table of Contents] >> Window