add comments

This commit is contained in:
yggverse 2024-10-29 01:12:11 +02:00
parent 385586ca3d
commit 1d4a3cbd42

View file

@ -8,6 +8,9 @@ pub struct Widget {
}
impl Widget {
// Constructors
/// Create new default widget configuration
pub fn new(title: Option<&str>, description: Option<&str>) -> Self {
let gobject = StatusPage::builder()
.child(
@ -27,6 +30,8 @@ impl Widget {
Self { gobject }
}
// Getters
pub fn gobject(&self) -> &StatusPage {
&self.gobject
}