Added easier way to set colors + tests

This commit is contained in:
2024-04-15 23:28:10 -05:00
parent 98a96f9f5f
commit 60aff508bd
9 changed files with 148 additions and 20 deletions

View File

@@ -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(())
}