io/input,io/transfer: [API] replace OfferOp with command

Also delete two tests that are no longer relevant.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2023-10-09 17:38:53 -05:00
parent eed93aaffe
commit a3c539b3c2
8 changed files with 73 additions and 221 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ func ExampleDraggable_Layout() {
// drag must respond with an Offer event when requested.
// Use the drag method for this.
if m, ok := drag.Update(gtx); ok {
drag.Offer(gtx.Ops, m, offer{Data: "hello world"})
drag.Offer(gtx, m, offer{Data: "hello world"})
}
// Setup the area for drops.