Skip to content

Commit

Permalink
Remove manual getters from custom code, now they're generated
Browse files Browse the repository at this point in the history
  • Loading branch information
C47D committed Jan 12, 2025
1 parent 8a6d7b9 commit 52ad533
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions lvgl/src/widgets/arc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ impl Arc<'_> {
// Ok(())
// }

/// Gets the current value of the arc
pub fn get_value(&self) -> i32 {
unsafe { lvgl_sys::lv_bar_get_value(self.core.raw().as_ptr()) }
}
// Gets the current value of the arc
// pub fn get_value(&self) -> i32 {
// unsafe { lvgl_sys::lv_bar_get_value(self.core.raw().as_ptr()) }
// }
}
/*
/// The different parts, of an arc object.
Expand Down
8 changes: 4 additions & 4 deletions lvgl/src/widgets/bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ impl Bar<'_> {
}
}

/// Gets the current value of the bar
pub fn get_value(&self) -> i32 {
unsafe { lvgl_sys::lv_bar_get_value(self.core.raw().as_ptr()) }
}
// Gets the current value of the bar
// pub fn get_value(&self) -> i32 {
// unsafe { lvgl_sys::lv_bar_get_value(self.core.raw().as_ptr()) }
// }
}
/*
/// The different parts, of a bar object.
Expand Down
2 changes: 1 addition & 1 deletion lvgl/src/widgets/label.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ mod alloc_imp {
// text.try_into().unwrap()
let text_cstr = CString::new(text.as_ref()).unwrap();
let mut label = Label::new().unwrap();
label.set_text(text_cstr.as_c_str()).unwrap();
label.set_text(text_cstr.as_c_str());
label
}
}
Expand Down

0 comments on commit 52ad533

Please sign in to comment.