forked from joejulian/gio
app: [windows] add missing cursors
Signed-off-by: Egon Elbre <egonelbre@gmail.com>
This commit is contained in:
@@ -115,13 +115,20 @@ const (
|
||||
|
||||
HTCLIENT = 1
|
||||
|
||||
IDC_ARROW = 32512
|
||||
IDC_IBEAM = 32513
|
||||
IDC_HAND = 32649
|
||||
IDC_CROSS = 32515
|
||||
IDC_SIZENS = 32645
|
||||
IDC_SIZEWE = 32644
|
||||
IDC_SIZEALL = 32646
|
||||
IDC_APPSTARTING = 32650 // Standard arrow and small hourglass
|
||||
IDC_ARROW = 32512 // Standard arrow
|
||||
IDC_CROSS = 32515 // Crosshair
|
||||
IDC_HAND = 32649 // Hand
|
||||
IDC_HELP = 32651 // Arrow and question mark
|
||||
IDC_IBEAM = 32513 // I-beam
|
||||
IDC_NO = 32648 // Slashed circle
|
||||
IDC_SIZEALL = 32646 // Four-pointed arrow pointing north, south, east, and west
|
||||
IDC_SIZENESW = 32643 // Double-pointed arrow pointing northeast and southwest
|
||||
IDC_SIZENS = 32645 // Double-pointed arrow pointing north and south
|
||||
IDC_SIZENWSE = 32642 // Double-pointed arrow pointing northwest and southeast
|
||||
IDC_SIZEWE = 32644 // Double-pointed arrow pointing west and east
|
||||
IDC_UPARROW = 32516 // Vertical arrow
|
||||
IDC_WAIT = 32514 // Hour
|
||||
|
||||
INFINITE = 0xFFFFFFFF
|
||||
|
||||
|
||||
@@ -734,6 +734,22 @@ func loadCursor(name pointer.CursorName) (syscall.Handle, error) {
|
||||
curID = windows.IDC_SIZENS
|
||||
case pointer.CursorGrab:
|
||||
curID = windows.IDC_SIZEALL
|
||||
case pointer.CursorTopLeftResize:
|
||||
curID = windows.IDC_SIZENWSE
|
||||
case pointer.CursorTopRightResize:
|
||||
curID = windows.IDC_SIZENESW
|
||||
case pointer.CursorBottomLeftResize:
|
||||
curID = windows.IDC_SIZENESW
|
||||
case pointer.CursorBottomRightResize:
|
||||
curID = windows.IDC_SIZENWSE
|
||||
case pointer.CursorLeftResize:
|
||||
curID = windows.IDC_SIZEWE
|
||||
case pointer.CursorRightResize:
|
||||
curID = windows.IDC_SIZEWE
|
||||
case pointer.CursorTopResize:
|
||||
curID = windows.IDC_SIZENS
|
||||
case pointer.CursorBottomResize:
|
||||
curID = windows.IDC_SIZENS
|
||||
case pointer.CursorNone:
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
@@ -111,21 +111,21 @@ const (
|
||||
// CursorNone hides the cursor. To show it again, use any other cursor.
|
||||
CursorNone CursorName = "none"
|
||||
// CursorTopLeftResize is the cursor for top-left corner resizing.
|
||||
CursorTopLeftResize = "top-left-resize"
|
||||
CursorTopLeftResize CursorName = "top-left-resize"
|
||||
// CursorTopRightResize is the cursor for top-right corner resizing.
|
||||
CursorTopRightResize = "top-right-resize"
|
||||
CursorTopRightResize CursorName = "top-right-resize"
|
||||
// CursorBottomLeftResize is the cursor for bottom-left corner resizing.
|
||||
CursorBottomLeftResize = "bottom-left-resize"
|
||||
CursorBottomLeftResize CursorName = "bottom-left-resize"
|
||||
// CursorBottomRightResize is the cursor for bottom-right corner resizing.
|
||||
CursorBottomRightResize = "bottom-right-resize"
|
||||
CursorBottomRightResize CursorName = "bottom-right-resize"
|
||||
// CursorLeftResize is the cursor for left resizing.
|
||||
CursorLeftResize = "left-resize"
|
||||
CursorLeftResize CursorName = "left-resize"
|
||||
// CursorRightResize is the cursor for right resizing.
|
||||
CursorRightResize = "right-resize"
|
||||
CursorRightResize CursorName = "right-resize"
|
||||
// CursorTopResize is the cursor for top resizing.
|
||||
CursorTopResize = "top-resize"
|
||||
CursorTopResize CursorName = "top-resize"
|
||||
// CursorBottomResize is the cursor for bottom resizing.
|
||||
CursorBottomResize = "bottom-resize"
|
||||
CursorBottomResize CursorName = "bottom-resize"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user