clear debug prints
This commit is contained in:
parent
0649c53695
commit
098a0b6df8
|
@ -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();
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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| {
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue