File tree Expand file tree Collapse file tree 2 files changed +10
-17
lines changed Expand file tree Collapse file tree 2 files changed +10
-17
lines changed Original file line number Diff line number Diff line change 1
- #! [ allow ( dead_code ) ]
1
+
2
2
3
3
use std:: { cell:: RefCell , rc:: Rc } ;
4
4
Original file line number Diff line number Diff line change 1
- #![ allow( dead_code) ]
2
1
3
2
use easy_cast:: Cast ;
4
3
use std:: iter;
@@ -49,12 +48,6 @@ pub struct ScrollPos {
49
48
pub y : u16 ,
50
49
}
51
50
52
- impl ScrollPos {
53
- pub const fn new ( x : u16 , y : u16 ) -> Self {
54
- Self { x, y }
55
- }
56
- }
57
-
58
51
#[ derive( Debug , Copy , Clone , Default ) ]
59
52
pub struct ParagraphState {
60
53
/// Scroll
@@ -103,20 +96,20 @@ impl<'a> StatefulParagraph<'a> {
103
96
self
104
97
}
105
98
106
- pub const fn style ( mut self , style : Style ) -> Self {
107
- self . style = style;
108
- self
109
- }
110
-
111
99
pub const fn wrap ( mut self , wrap : Wrap ) -> Self {
112
100
self . wrap = Some ( wrap) ;
113
101
self
114
102
}
115
103
116
- pub const fn alignment ( mut self , alignment : Alignment ) -> Self {
117
- self . alignment = alignment;
118
- self
119
- }
104
+ // pub const fn style(mut self, style: Style) -> Self {
105
+ // self.style = style;
106
+ // self
107
+ // }
108
+
109
+ // pub const fn alignment(mut self, alignment: Alignment) -> Self {
110
+ // self.alignment = alignment;
111
+ // self
112
+ // }
120
113
}
121
114
122
115
impl < ' a > StatefulWidget for StatefulParagraph < ' a > {
You can’t perform that action at this time.
0 commit comments