Skip to content
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

improve documentation relating to WindowPlugin and Window #9173

Merged
merged 3 commits into from
Jul 30, 2023

Conversation

tsujp
Copy link
Contributor

@tsujp tsujp commented Jul 16, 2023

  • attempt to clarify with better docstrings the default behaviour of WindowPlugin and the component type it accepts.

Objective

  • I'm new to Rust and Bevy, I got a bit confused about how to customise some window parameters (title, height, width etc) and while the docs do show the struct code for that field Option<Window> I was a bit of a doofus and skipped that to read the docstring entry for primary_window and then the Window component directly which aren't linked together. This is a minor improvement which I think will help in-case others, like me, have a doofus moment.

- attempt to clarify with better docstrings the default behaviour of
  WindowPlugin and the component type it accepts.
@github-actions
Copy link
Contributor

Welcome, new contributor!

Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨

crates/bevy_window/src/lib.rs Outdated Show resolved Hide resolved
crates/bevy_window/src/window.rs Outdated Show resolved Hide resolved
@Selene-Amanita Selene-Amanita added C-Docs An addition or correction to our documentation A-Windowing Platform-agnostic interface layer to run your app in labels Jul 16, 2023
@Selene-Amanita Selene-Amanita added this to the 0.11.1 milestone Jul 16, 2023
tsujp and others added 2 commits July 18, 2023 21:56
Co-authored-by: Sélène Amanita <134181069+Selene-Amanita@users.noreply.github.com>
Co-authored-by: Sélène Amanita <134181069+Selene-Amanita@users.noreply.github.com>
@mockersf mockersf added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Jul 21, 2023
@mockersf mockersf added this pull request to the merge queue Jul 30, 2023
Merged via the queue into bevyengine:main with commit 04ca832 Jul 30, 2023
21 checks passed
cart pushed a commit that referenced this pull request Aug 10, 2023
- attempt to clarify with better docstrings the default behaviour of
WindowPlugin and the component type it accepts.

# Objective

- I'm new to Rust and Bevy, I got a bit confused about how to customise
some window parameters (title, height, width etc) and while the docs do
show the struct code for that field `Option<Window>` I was a bit of a
doofus and skipped that to read the docstring entry for `primary_window`
and then the `Window` component directly which aren't linked together.
This is a minor improvement which I think will help in-case others, like
me, have a doofus moment.

---------

Co-authored-by: Sélène Amanita <134181069+Selene-Amanita@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Windowing Platform-agnostic interface layer to run your app in C-Docs An addition or correction to our documentation S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants