Scoop API

scoop:scoop.ui.component:0.1.0

platform/desktop/cursor.scoop

Selected production source · platform/desktop/cursor.scoop

1package scoop.ui.component
3import scoop.ui.style.Orientation
4import scoop.window.*
6internal val resizeCursor: ((Window, Orientation?) -> Unit)? = Some { window, orientation ->
7 window.setCursorIcon(when (orientation) {
8 case Some(Horizontal) -> CursorIcon.ResizeHorizontal
9 case Some(Vertical) -> CursorIcon.ResizeVertical
10 case None -> CursorIcon.Default
11 })