/* * OrbTK - The Orbital Widget Toolkit * * Copyright 2021 Ralf Zerres * SPDX-License-Identifier: (0BSD or MIT) */ use orbtk::prelude::*; mod main_view; mod receiver; mod sender; fn main() -> Result<(), Box> { // use this only if you want to run it as web application. orbtk::initialize(); Application::new() .window(|ctx| { Window::new() .name("Main") .title("OrbTK: example send/receive messages") .position((100.0, 100.0)) .resizeable(true) .size(450.0, 500.0) .child(main_view::MainView::new().build(ctx)) .build(ctx) }) .run(); Ok(()) }