mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
return Self implementation
This commit is contained in:
parent
bdad712690
commit
003486e3ed
22 changed files with 22 additions and 22 deletions
|
|
@ -6,7 +6,7 @@ pub struct Content {
|
|||
|
||||
impl Content {
|
||||
// Construct
|
||||
pub fn new() -> Content {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
widget: Box::builder().orientation(Orientation::Vertical).build(),
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ pub struct Reader {
|
|||
|
||||
impl Reader {
|
||||
// Construct
|
||||
pub fn new() -> Reader {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
widget: Label::builder()
|
||||
.halign(Align::Start)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ pub struct Text {
|
|||
|
||||
impl Text {
|
||||
// Construct
|
||||
pub fn new() -> Text {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
widget: ScrolledWindow::builder().build(),
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ pub struct Reader {
|
|||
|
||||
impl Reader {
|
||||
// Construct
|
||||
pub fn new() -> Reader {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
widget: Label::builder()
|
||||
.halign(Align::Start)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue