We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5071e3d commit 385a449Copy full SHA for 385a449
1 file changed
widget/src/text_editor.rs
@@ -110,6 +110,21 @@ where
110
self
111
}
112
113
+ /// Sets the text size of the [`TextEditor`].
114
+ pub fn size(mut self, size: impl Into<Pixels>) -> Self {
115
+ self.text_size = Some(size.into());
116
+ self
117
+ }
118
+
119
+ /// Sets the [`text::LineHeight`] of the [`TextEditor`].
120
+ pub fn line_height(
121
+ mut self,
122
+ line_height: impl Into<text::LineHeight>,
123
+ ) -> Self {
124
+ self.line_height = line_height.into();
125
126
127
128
/// Sets the [`Padding`] of the [`TextEditor`].
129
pub fn padding(mut self, padding: impl Into<Padding>) -> Self {
130
self.padding = padding.into();
0 commit comments