clear debug prints

This commit is contained in:
TheOddGarlic 2022-05-22 12:54:33 +03:00
parent 0649c53695
commit 098a0b6df8
4 changed files with 1 additions and 6 deletions

View file

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

View file

@ -62,7 +62,6 @@ impl Renderer {
}
pub fn draw_text<S: AsRef<str>>(&self, text: S) {
eprintln!("drawing text at ({}, {})", self.x, self.y);
self.renderer.draw_text(
text.as_ref(),
Rect::new(

View file

@ -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| {

View file

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