Initialization and Message Loop

Because GUI on any platform cannot escape the message loop and some functionality/API registration, initialization and event loop methods are indispensable.

use flor::{FlorGui, views};

fn main() -> Result<(), Box<dyn Error>> {
    // Initialize, and register some things
    FlorGui.init()?;

    // Omit window creation and business code

    // Enter event loop, this method blocks
    FlorGui.event_loop()?;
    Ok(())
}