-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document RenderRoot fields #824
Conversation
Remove duplicate CursorIcon field.
/// The IME area last sent to the platform. | ||
/// | ||
/// This allows only sending the area to the platform when the area has changed. | ||
|
||
/// The area in which text is being edited. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is worse than what was there before? How does this improve clarity?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall I'm trying to document "what does this field represent" more than "when is it updated".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd claim that this new doc comment is actively worse than not having a comment at all. The name of the field is clearer for what it is for...
I do agree that we should have documented this workaround more clearly, but I'm not sure I agree that gutting the existing documentation is the right way to force that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really like the new gaps between fields. I would rather that related fields (size_policy, size, scale_factor for example) were grouped without newlines.
pub(crate) scroll_request_targets: Vec<(WidgetId, Rect)>, | ||
|
||
/// List of ancestors of the currently hovered widget. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe here would be a good reason to explain why we store this (i.e. so that hover state can be properly tracked after a reparenting)
Remove duplicate CursorIcon field.