mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +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 {
|
impl Widget {
|
||||||
|
// Constructors
|
||||||
|
|
||||||
|
/// Create new default widget configuration
|
||||||
pub fn new(title: Option<&str>, description: Option<&str>) -> Self {
|
pub fn new(title: Option<&str>, description: Option<&str>) -> Self {
|
||||||
let gobject = StatusPage::builder()
|
let gobject = StatusPage::builder()
|
||||||
.child(
|
.child(
|
||||||
|
|
@ -27,6 +30,8 @@ impl Widget {
|
||||||
Self { gobject }
|
Self { gobject }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Getters
|
||||||
|
|
||||||
pub fn gobject(&self) -> &StatusPage {
|
pub fn gobject(&self) -> &StatusPage {
|
||||||
&self.gobject
|
&self.gobject
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue