@@ -55,7 +55,7 @@ pub struct ScrollAreaOutput<R> {
55
55
/// What the user closure returned.
56
56
pub inner : R ,
57
57
58
- /// `Id` of the `ScrollArea`.
58
+ /// [ `Id`] of the [ `ScrollArea`] .
59
59
pub id : Id ,
60
60
61
61
/// The current state of the scroll area.
@@ -136,7 +136,7 @@ impl ScrollArea {
136
136
137
137
/// The maximum width of the outer frame of the scroll area.
138
138
///
139
- /// Use `f32::INFINITY` if you want the scroll area to expand to fit the surrounding `Ui` (default).
139
+ /// Use `f32::INFINITY` if you want the scroll area to expand to fit the surrounding [ `Ui`] (default).
140
140
///
141
141
/// See also [`Self::auto_shrink`].
142
142
pub fn max_width ( mut self , max_width : f32 ) -> Self {
@@ -146,7 +146,7 @@ impl ScrollArea {
146
146
147
147
/// The maximum height of the outer frame of the scroll area.
148
148
///
149
- /// Use `f32::INFINITY` if you want the scroll area to expand to fit the surrounding `Ui` (default).
149
+ /// Use `f32::INFINITY` if you want the scroll area to expand to fit the surrounding [ `Ui`] (default).
150
150
///
151
151
/// See also [`Self::auto_shrink`].
152
152
pub fn max_height ( mut self , max_height : f32 ) -> Self {
@@ -156,7 +156,7 @@ impl ScrollArea {
156
156
157
157
/// The minimum width of a horizontal scroll area which requires scroll bars.
158
158
///
159
- /// The `ScrollArea` will only become smaller than this if the content is smaller than this
159
+ /// The [ `ScrollArea`] will only become smaller than this if the content is smaller than this
160
160
/// (and so we don't require scroll bars).
161
161
///
162
162
/// Default: `64.0`.
@@ -167,7 +167,7 @@ impl ScrollArea {
167
167
168
168
/// The minimum height of a vertical scroll area which requires scroll bars.
169
169
///
170
- /// The `ScrollArea` will only become smaller than this if the content is smaller than this
170
+ /// The [ `ScrollArea`] will only become smaller than this if the content is smaller than this
171
171
/// (and so we don't require scroll bars).
172
172
///
173
173
/// Default: `64.0`.
@@ -183,7 +183,7 @@ impl ScrollArea {
183
183
self
184
184
}
185
185
186
- /// A source for the unique `Id`, e.g. `.id_source("second_scroll_area")` or `.id_source(loop_index)`.
186
+ /// A source for the unique [ `Id`] , e.g. `.id_source("second_scroll_area")` or `.id_source(loop_index)`.
187
187
pub fn id_source ( mut self , id_source : impl std:: hash:: Hash ) -> Self {
188
188
self . id_source = Some ( Id :: new ( id_source) ) ;
189
189
self
@@ -241,7 +241,7 @@ impl ScrollArea {
241
241
/// If `false`, the scroll area will not respond to user scrolling
242
242
///
243
243
/// This can be used, for example, to optionally freeze scrolling while the user
244
- /// is inputing text in a `TextEdit` widget contained within the scroll area.
244
+ /// is inputing text in a [ `TextEdit`] widget contained within the scroll area.
245
245
///
246
246
/// This controls both scrolling directions.
247
247
pub fn enable_scrolling ( mut self , enable : bool ) -> Self {
@@ -358,7 +358,7 @@ impl ScrollArea {
358
358
let mut inner_size = outer_size - current_bar_use;
359
359
360
360
// Don't go so far that we shrink to zero.
361
- // In particular, if we put a `ScrollArea` inside of a `ScrollArea`, the inner
361
+ // In particular, if we put a [ `ScrollArea`] inside of a [ `ScrollArea`] , the inner
362
362
// one shouldn't collapse into nothingness.
363
363
// See https://github.com/emilk/egui/issues/1097
364
364
for d in 0 ..2 {
@@ -414,7 +414,7 @@ impl ScrollArea {
414
414
}
415
415
}
416
416
417
- /// Show the `ScrollArea`, and add the contents to the viewport.
417
+ /// Show the [ `ScrollArea`] , and add the contents to the viewport.
418
418
///
419
419
/// If the inner area can be very long, consider using [`Self::show_rows`] instead.
420
420
pub fn show < R > (
0 commit comments