mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 17:05:38 +00:00
io/pointer: unify area ops into a single AreaOp
Make Rect and Ellipse constructors of AreaOp. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -63,5 +63,5 @@ func (c *checkable) layout(gtx *layout.Context, checked bool) {
|
||||
})
|
||||
|
||||
flex.Layout(gtx, ico, lbl)
|
||||
pointer.RectAreaOp{Rect: image.Rectangle{Max: gtx.Dimensions.Size}}.Add(gtx.Ops)
|
||||
pointer.Rect(image.Rectangle{Max: gtx.Dimensions.Size}).Add(gtx.Ops)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user