mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
Slightly improve CursorIcon
doc. (#10289)
# Objective - When finding the `CursorIcon` doc, it should be easier to find out where to use it. - When saying it is partially copied from the browser, be more clear about the provenance and link to the spec document. ## Solution - Link to the example code. - Link to the CSS3 UI spec document.
This commit is contained in:
parent
f48e68508c
commit
8eeb01e935
1 changed files with 5 additions and 1 deletions
|
@ -7,7 +7,11 @@ use bevy_reflect::{ReflectDeserialize, ReflectSerialize};
|
|||
///
|
||||
/// Examples of all of these cursors can be found [here](https://www.w3schools.com/cssref/playit.php?filename=playcss_cursor&preval=crosshair).
|
||||
/// This `enum` is simply a copy of a similar `enum` found in [`winit`](https://docs.rs/winit/latest/winit/window/enum.CursorIcon.html).
|
||||
/// `winit`, in turn, mostly copied cursor types available in the browser.
|
||||
/// `winit`, in turn, is based upon the [CSS3 UI spec](https://www.w3.org/TR/css-ui-3/#cursor).
|
||||
///
|
||||
/// See the [`window_settings`] example for usage.
|
||||
///
|
||||
/// [`window_settings`]: https://github.com/bevyengine/bevy/blob/latest/examples/window/window_settings.rs
|
||||
#[derive(Default, Debug, Hash, PartialEq, Eq, Clone, Copy, Reflect)]
|
||||
#[cfg_attr(
|
||||
feature = "serialize",
|
||||
|
|
Loading…
Reference in a new issue