github.com/rajveermalviya/gamen@v0.1.2-0.20220930195403-9be15877c1aa/cursors/cursors.go (about) 1 package cursors 2 3 type Icon uint8 4 5 const ( 6 Default Icon = iota + 1 7 ContextMenu 8 Help 9 Pointer 10 Progress 11 Wait 12 Cell 13 Crosshair 14 Text 15 VerticalText 16 Alias 17 Copy 18 Move 19 NoDrop 20 NotAllowed 21 Grab 22 Grabbing 23 AllScroll 24 ColResize 25 RowResize 26 NResize 27 EResize 28 SResize 29 WResize 30 NEResize 31 NWResize 32 SEResize 33 SWResize 34 EWResize 35 NSResize 36 NESWResize 37 NWSEResize 38 ZoomIn 39 ZoomOut 40 ) 41 42 func (i Icon) String() string { 43 switch i { 44 case Default: 45 return "default" 46 case ContextMenu: 47 return "context-menu" 48 case Help: 49 return "help" 50 case Pointer: 51 return "pointer" 52 case Progress: 53 return "progress" 54 case Wait: 55 return "wait" 56 case Cell: 57 return "cell" 58 case Crosshair: 59 return "crosshair" 60 case Text: 61 return "text" 62 case VerticalText: 63 return "vertical-text" 64 case Alias: 65 return "alias" 66 case Copy: 67 return "copy" 68 case Move: 69 return "move" 70 case NoDrop: 71 return "no-drop" 72 case NotAllowed: 73 return "not-allowed" 74 case Grab: 75 return "grab" 76 case Grabbing: 77 return "grabbing" 78 case AllScroll: 79 return "all-scroll" 80 case ColResize: 81 return "col-resize" 82 case RowResize: 83 return "row-resize" 84 case NResize: 85 return "n-resize" 86 case EResize: 87 return "e-resize" 88 case SResize: 89 return "s-resize" 90 case WResize: 91 return "w-resize" 92 case NEResize: 93 return "ne-resize" 94 case NWResize: 95 return "nw-resize" 96 case SEResize: 97 return "se-resize" 98 case SWResize: 99 return "sw-resize" 100 case EWResize: 101 return "ew-resize" 102 case NSResize: 103 return "ns-resize" 104 case NESWResize: 105 return "nesw-resize" 106 case NWSEResize: 107 return "nwse-resize" 108 case ZoomIn: 109 return "zoom-in" 110 case ZoomOut: 111 return "zoom-out" 112 } 113 114 panic("unreachable") 115 }