From 098a0b6df8ead381e19c15254b07f4ba33731cfc Mon Sep 17 00:00:00 2001 From: TheOddGarlic Date: Sun, 22 May 2022 12:54:33 +0300 Subject: [PATCH] clear debug prints --- abletk-cairo/src/lib.rs | 1 - abletk-common/src/lib.rs | 1 - src/main.rs | 2 +- src/window.rs | 3 --- 4 files changed, 1 insertion(+), 6 deletions(-) diff --git a/abletk-cairo/src/lib.rs b/abletk-cairo/src/lib.rs index a959bb7..61cd298 100644 --- a/abletk-cairo/src/lib.rs +++ b/abletk-cairo/src/lib.rs @@ -22,7 +22,6 @@ pub struct Renderer { impl Renderer { pub fn new(handle: XlibHandle) -> Self { - println!("{:#?}", handle); let (width, height) = unsafe { let mut root = mem::zeroed(); let mut x = mem::zeroed(); diff --git a/abletk-common/src/lib.rs b/abletk-common/src/lib.rs index 9405415..2f61424 100755 --- a/abletk-common/src/lib.rs +++ b/abletk-common/src/lib.rs @@ -62,7 +62,6 @@ impl Renderer { } pub fn draw_text>(&self, text: S) { - eprintln!("drawing text at ({}, {})", self.x, self.y); self.renderer.draw_text( text.as_ref(), Rect::new( diff --git a/src/main.rs b/src/main.rs index 82cc67e..8930b7d 100755 --- a/src/main.rs +++ b/src/main.rs @@ -20,7 +20,7 @@ fn launch() -> _ { .add(Column::new() .add(Label::new("World!")) .add(Label::new("AbleTK!"))) - .add(Label::new("this is a label! jjjjyyy") + .add(Label::new("this is a label!") .bg_color(rgb!(0xFF0000FF))) .padding_left(10)) .on_event(WindowEvent::Resized, |_, window| { diff --git a/src/window.rs b/src/window.rs index f467874..7a2af89 100755 --- a/src/window.rs +++ b/src/window.rs @@ -73,9 +73,6 @@ impl Window { pub(crate) fn render(&mut self) { let position = self.root.position(&mut self.renderer); - eprintln!("Rendering window with id {:?}", self.id()); - eprintln!("Root widget position: {position:?}"); - self.renderer.begin_draw(); self.renderer.clear(self.background); self.renderer.position_at(position.x(), position.y());