forked from joejulian/gio
app,io/pointer: [API] remove CursorNameOp and rename CursorName -> Cursor
It's now possible to directly user pointer.Cursor to add to the ops. pointer.CursorText.Add(gtx.Ops) This is an API change. Use pointer.Cursor directly instead of CursorNameOp. Signed-off-by: Egon Elbre <egonelbre@gmail.com>
This commit is contained in:
+2
-2
@@ -574,9 +574,9 @@ var webCursor = [...]string{
|
||||
pointer.CursorNorthWestSouthEastResize: "nwse-resize",
|
||||
}
|
||||
|
||||
func (w *window) SetCursor(name pointer.CursorName) {
|
||||
func (w *window) SetCursor(cursor pointer.Cursor) {
|
||||
style := w.cnv.Get("style")
|
||||
style.Set("cursor", webCursor[name])
|
||||
style.Set("cursor", webCursor[cursor])
|
||||
}
|
||||
|
||||
func (w *window) Wakeup() {
|
||||
|
||||
Reference in New Issue
Block a user