github.com/jmigpin/editor@v1.6.0/util/uiutil/event/requests.go (about) 1 package event 2 3 import ( 4 "image" 5 "image/draw" 6 ) 7 8 type Request interface{} 9 10 //---------- 11 12 type ReqClose struct{} 13 type ReqWindowSetName struct{ Name string } 14 type ReqImage struct{ ReplyImg draw.Image } 15 type ReqImagePut struct{ Rect image.Rectangle } 16 type ReqImageResize struct{ Rect image.Rectangle } 17 type ReqCursorSet struct{ Cursor Cursor } 18 type ReqPointerQuery struct{ ReplyP image.Point } 19 type ReqPointerWarp struct{ P image.Point } 20 21 type ReqClipboardDataGet struct { 22 Index ClipboardIndex 23 ReplyS string 24 } 25 type ReqClipboardDataSet struct { 26 Index ClipboardIndex 27 Str string 28 } 29 30 // TODO: possibly lower level requests like drawtriangle