Skip to content

Commit d73d7b7

Browse files
authored
Better document node non-persistence in accessibility method. (#1544)
1 parent 4a87e37 commit d73d7b7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

masonry_core/src/core/widget.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ pub trait Widget: AsDynWidget + Any {
284284
/// This method takes a mutable reference to a node which is already initialized
285285
/// with some information about the current widget (coordinates, status flags), and
286286
/// and mutates that node to set widget-specific information.
287+
///
288+
/// **Note:** A new node is created each time this method is called.
289+
/// Changes to the node don't persist between accessibility passes, and must instead
290+
/// be re-applied by this method every time it's called.
287291
fn accessibility(
288292
&mut self,
289293
ctx: &mut AccessCtx<'_>,

0 commit comments

Comments
 (0)