|
19 | 19 | //! * These are applied by the [`apply_text_edits` system.
|
20 | 20 | //! * [`TextInputTarget`] - Details of the render target the text input will be rendered to, such as size and scale factor.
|
21 | 21 | //!
|
| 22 | +//! |
| 23 | +//! Layouting is done in: |
| 24 | +//! |
| 25 | +//! * [`update_text_input_layouts`] - Updates the `TextLayoutInfo` for each text input for rendering. |
| 26 | +//! * [`update_placeholder_layouts`] - Updates the `TextLayoutInfo` for each [`Placeholder`] for rendering. |
| 27 | +//! |
22 | 28 | //! ## Configuring text input
|
23 | 29 | //!
|
24 | 30 | //! Several components are used to configure the text input, and belong on the [`TextInputBuffer`] entity:
|
@@ -337,9 +343,11 @@ impl TextInputFilter {
|
337 | 343 | /// Add this component to hide the text input buffer contents
|
338 | 344 | /// by replacing the characters with `mask_char`.
|
339 | 345 | ///
|
340 |
| -/// It is strongly recommended to only use a `PasswordMask` with fixed-width fonts. |
| 346 | +/// It is strongly recommended to only use a [`PasswordMask` with fixed-width fonts. |
341 | 347 | /// With variable width fonts mouse picking and horizontal scrolling
|
342 | 348 | /// may not work correctly.
|
| 349 | +/// |
| 350 | +/// This is updated in [`update_password_masks`]. |
343 | 351 | #[derive(Component)]
|
344 | 352 | pub struct PasswordMask {
|
345 | 353 | /// If true the password will not be hidden
|
@@ -1143,7 +1151,9 @@ impl Placeholder {
|
1143 | 1151 | }
|
1144 | 1152 | }
|
1145 | 1153 |
|
1146 |
| -/// Layout for the [`Placeholder`] text |
| 1154 | +/// Layout for the [`Placeholder`] text. |
| 1155 | +/// |
| 1156 | +/// This is laid out in [`update_placeholder_layouts`]. |
1147 | 1157 | #[derive(Component)]
|
1148 | 1158 | pub struct PlaceholderLayout {
|
1149 | 1159 | /// A [`Placeholder`] text's cosmic-text buffer (not an Editor as it isn't editable).
|
|
0 commit comments