mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 09:05:45 +00:00
add as_gstring method
This commit is contained in:
parent
48c7676788
commit
e96771b926
1 changed files with 7 additions and 0 deletions
|
|
@ -62,6 +62,13 @@ impl Text {
|
|||
},
|
||||
);
|
||||
}
|
||||
|
||||
// Getters
|
||||
|
||||
/// Get `Self` as `glib::GString`
|
||||
pub fn as_gstring(&self) -> &GString {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
|
||||
impl std::fmt::Display for Text {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue