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

Method setPos

core/windowgeometry.go:406–409  ·  view source on GitHub ↗
(ps image.Point)

Source from the content-addressed store, hash-verified

404}
405
406func (wg *windowGeometry) setPos(ps image.Point) {
407 wg.PX = ps.X
408 wg.PY = ps.Y
409}
410
411// constrainGeom constrains geometry based on screen params
412func (wg *windowGeometry) constrainGeom(sc *system.Screen) {

Callers 1

recordPrefMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected