Added easier way to set colors + tests
This commit is contained in:
18
src/main.rs
18
src/main.rs
@@ -3,8 +3,15 @@ use gtk::prelude::{BoxExt, ButtonExt, GtkWindowExt, OrientableExt, WidgetExt, Ge
|
||||
use gtk::cairo::{Context, Operator};
|
||||
use relm4::drawing::DrawHandler;
|
||||
|
||||
use waywrite::process_point::print_words;
|
||||
use waywrite::Point;
|
||||
use std::error::Error;
|
||||
|
||||
use anyhow::Result;
|
||||
|
||||
|
||||
mod wayland;
|
||||
mod process_point;
|
||||
|
||||
use process_point::{Point, print_words};
|
||||
|
||||
#[derive(Debug)]
|
||||
enum AppInput {
|
||||
@@ -148,7 +155,8 @@ fn draw(cx: &Context, points: &[Point]) {
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let app = RelmApp::new("simmer505.waywrite");
|
||||
app.run::<AppModel>(0);
|
||||
fn main() -> Result<(), Box<dyn Error>> {
|
||||
|
||||
wayland::run()?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user