MCPcopy Create free account
hub / github.com/cogentcore/core / Magnify

Method Magnify

events/source.go:165–169  ·  view source on GitHub ↗

Magnify creates and sends a [TouchMagnify] event with the given values.

(scaleFactor float32, where image.Point)

Source from the content-addressed store, hash-verified

163
164// Magnify creates and sends a [TouchMagnify] event with the given values.
165func (es *Source) Magnify(scaleFactor float32, where image.Point) {
166 ev := NewMagnify(scaleFactor, where)
167 ev.Init()
168 es.Deque.Send(ev)
169}
170
171// func (es *Source) DND(act dnd.Actions, where image.Point, data mimedata.Mimes) {
172// ev := dnd.NewEvent(act, where, em.Last.Mods)

Callers 2

scaledFunction · 0.80
scaledFunction · 0.80

Calls 3

NewMagnifyFunction · 0.85
InitMethod · 0.65
SendMethod · 0.45

Tested by

no test coverage detected