bevy/crates/bevy_winit/src
Friz64 565616622b
Correctly feature gate custom_cursor (#16093)
# Objective

Currently there's no way to change the window's cursor icon with the
`custom_cursor` feature **disabled**. You should still be able to set
system cursor icons.

Connections:

- https://github.com/bevyengine/bevy/pull/15649

## Solution

Move some `custom_cursor` feature gates around, as to expose the
`CursorIcon` type again.

Note this refactoring was mainly piloted by hunting after the compiler
warnings -- I shouldn't have missed anything, but FYI.

## Testing

Disabled the `custom_cursor` feature, ran the `window_settings` example.
2024-11-02 01:47:32 +00:00
..
accessibility.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
converters.rs Correctly feature gate custom_cursor (#16093) 2024-11-02 01:47:32 +00:00
cursor.rs Correctly feature gate custom_cursor (#16093) 2024-11-02 01:47:32 +00:00
lib.rs Correctly feature gate custom_cursor (#16093) 2024-11-02 01:47:32 +00:00
state.rs Correctly feature gate custom_cursor (#16093) 2024-11-02 01:47:32 +00:00
system.rs Add the functions start_drag_move and start_drag_resize to Window (#15674) 2024-10-08 16:32:07 +00:00
winit_config.rs Simpler lint fixes: makes ci lints work but disables a lint for now (#15376) 2024-09-24 11:42:59 +00:00
winit_monitors.rs Simpler lint fixes: makes ci lints work but disables a lint for now (#15376) 2024-09-24 11:42:59 +00:00
winit_windows.rs Support prefers_home_indicator_hidden (#16005) 2024-10-31 16:09:30 +00:00