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

Method SetGeom

system/window.go:94–94  ·  view source on GitHub ↗

SetGeom sets the position and size in one call -- use this if doing both because sequential calls to SetPos and SetSize might fail on some platforms. Size is in actual pixel units (i.e., same units as returned by Size()), and Pos is in OS-specific window manager units (i.e., as returned in Pos())

(pos image.Point, sz image.Point)

Source from the content-addressed store, hash-verified

92 // platforms. Size is in actual pixel units (i.e., same units as returned by Size()),
93 // and Pos is in OS-specific window manager units (i.e., as returned in Pos())
94 SetGeom(pos image.Point, sz image.Point)
95
96 // Raise requests that the window be at the top of the stack of windows,
97 // and receive focus. If it is iconified, it will be de-iconified. This

Callers 2

restoreAllMethod · 0.65
setNameMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected