mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 14:49:06 -04:00
Change API of Tooltip slightly (#7151)
We try to be consistent with our parameter order to reduce surprise for users. I also renamed a few things to clarify what is what
This commit is contained in:
@@ -35,7 +35,7 @@ You can test your code locally by running `./scripts/check.sh`.
|
||||
There are snapshots test that might need to be updated.
|
||||
Run the tests with `UPDATE_SNAPSHOTS=true cargo test --workspace --all-features` to update all of them.
|
||||
If CI keeps complaining about snapshots (which could happen if you don't use macOS, snapshots in CI are currently
|
||||
rendered with macOS), you can instead run `./scripts/update_snapshots_from_ci.sh` to update your local snapshots from
|
||||
rendered with macOS), you can instead run `./scripts/update_snapshots_from_ci.sh` to update your local snapshots from
|
||||
the last CI run of your PR (which will download the `test_results` artefact).
|
||||
For more info about the tests see [egui_kittest](./crates/egui_kittest/README.md).
|
||||
Snapshots and other big files are stored with git lfs. See [Working with git lfs](#working-with-git-lfs) for more info.
|
||||
@@ -125,6 +125,7 @@ While using an immediate mode gui is simple, implementing one is a lot more tric
|
||||
* Flip `if !condition {} else {}`
|
||||
* Sets of things should be lexicographically sorted (e.g. crate dependencies in `Cargo.toml`)
|
||||
* Put each type in their own file, unless they are trivial (e.g. a `struct` with no `impl`)
|
||||
* Put most generic arguments first (e.g. `Context`), and most specific last
|
||||
* Break the above rules when it makes sense
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user