 5479047aa2
			
		
	
	
		5479047aa2
		
	
	
	
	
		
			
			# Objective The window's cursor should be settable without having to implement a custom cursor icon solution. This will especially be helpful when creating user-interfaces that might like to use the cursor to denote some meaning (e.g., _clickable_, _resizable_, etc.). ## Solution Added a `CursorIcon` enum that maps one-to-one to winit's `CursorIcon` enum, as well as a method to set/get it for the given `Window`.
		
			
				
	
	
		
			40 lines
		
	
	
		
			580 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			580 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| /// The icon to display for a window's cursor
 | |
| #[derive(Debug, Hash, PartialEq, Eq, Clone, Copy)]
 | |
| pub enum CursorIcon {
 | |
|     Default,
 | |
|     Crosshair,
 | |
|     Hand,
 | |
|     Arrow,
 | |
|     Move,
 | |
|     Text,
 | |
|     Wait,
 | |
|     Help,
 | |
|     Progress,
 | |
|     NotAllowed,
 | |
|     ContextMenu,
 | |
|     Cell,
 | |
|     VerticalText,
 | |
|     Alias,
 | |
|     Copy,
 | |
|     NoDrop,
 | |
|     Grab,
 | |
|     Grabbing,
 | |
|     AllScroll,
 | |
|     ZoomIn,
 | |
|     ZoomOut,
 | |
|     EResize,
 | |
|     NResize,
 | |
|     NeResize,
 | |
|     NwResize,
 | |
|     SResize,
 | |
|     SeResize,
 | |
|     SwResize,
 | |
|     WResize,
 | |
|     EwResize,
 | |
|     NsResize,
 | |
|     NeswResize,
 | |
|     NwseResize,
 | |
|     ColResize,
 | |
|     RowResize,
 | |
| }
 |