mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
add comments
This commit is contained in:
parent
385586ca3d
commit
1d4a3cbd42
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue