You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
neovide/src/main.rs

26 lines
582 B
Rust

#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
5 years ago
mod bridge;
mod editor;
mod window;
mod renderer;
mod error_handling;
mod redraw_scheduler;
#[macro_use] extern crate derive_new;
5 years ago
#[macro_use] extern crate rust_embed;
use std::sync::{Arc, Mutex};
use window::ui_loop;
use editor::Editor;
use bridge::Bridge;
5 years ago
const INITIAL_DIMENSIONS: (u64, u64) = (100, 50);
5 years ago
fn main() {
let editor = Arc::new(Mutex::new(Editor::new(INITIAL_DIMENSIONS)));
let bridge = Bridge::new(editor.clone(), INITIAL_DIMENSIONS);
ui_loop(editor, bridge, INITIAL_DIMENSIONS);
}