mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 09:25:38 +00:00
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
|
HTCLIENT = 1
|
||||||
|
|
||||||
IDC_ARROW = 32512
|
IDC_APPSTARTING = 32650 // Standard arrow and small hourglass
|
||||||
IDC_IBEAM = 32513
|
IDC_ARROW = 32512 // Standard arrow
|
||||||
IDC_HAND = 32649
|
IDC_CROSS = 32515 // Crosshair
|
||||||
IDC_CROSS = 32515
|
IDC_HAND = 32649 // Hand
|
||||||
IDC_SIZENS = 32645
|
IDC_HELP = 32651 // Arrow and question mark
|
||||||
IDC_SIZEWE = 32644
|
IDC_IBEAM = 32513 // I-beam
|
||||||
IDC_SIZEALL = 32646
|
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
|
INFINITE = 0xFFFFFFFF
|
||||||
|
|
||||||
|
|||||||
@@ -734,6 +734,22 @@ func loadCursor(name pointer.CursorName) (syscall.Handle, error) {
|
|||||||
curID = windows.IDC_SIZENS
|
curID = windows.IDC_SIZENS
|
||||||
case pointer.CursorGrab:
|
case pointer.CursorGrab:
|
||||||
curID = windows.IDC_SIZEALL
|
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:
|
case pointer.CursorNone:
|
||||||
return 0, nil
|
return 0, nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -111,21 +111,21 @@ const (
|
|||||||
// CursorNone hides the cursor. To show it again, use any other cursor.
|
// CursorNone hides the cursor. To show it again, use any other cursor.
|
||||||
CursorNone CursorName = "none"
|
CursorNone CursorName = "none"
|
||||||
// CursorTopLeftResize is the cursor for top-left corner resizing.
|
// 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 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 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 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 is the cursor for left resizing.
|
||||||
CursorLeftResize = "left-resize"
|
CursorLeftResize CursorName = "left-resize"
|
||||||
// CursorRightResize is the cursor for right resizing.
|
// CursorRightResize is the cursor for right resizing.
|
||||||
CursorRightResize = "right-resize"
|
CursorRightResize CursorName = "right-resize"
|
||||||
// CursorTopResize is the cursor for top resizing.
|
// CursorTopResize is the cursor for top resizing.
|
||||||
CursorTopResize = "top-resize"
|
CursorTopResize CursorName = "top-resize"
|
||||||
// CursorBottomResize is the cursor for bottom resizing.
|
// CursorBottomResize is the cursor for bottom resizing.
|
||||||
CursorBottomResize = "bottom-resize"
|
CursorBottomResize CursorName = "bottom-resize"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
Reference in New Issue
Block a user