MCPcopy Create free account
hub / github.com/SolarLune/masterplan / SetRectangle

Method SetRectangle

gui.go:3222–3227  ·  view source on GitHub ↗
(rect *sdl.FRect)

Source from the content-addressed store, hash-verified

3220}
3221
3222func (container *Container) SetRectangle(rect *sdl.FRect) {
3223 container.Rect.X = rect.X
3224 container.Rect.Y = rect.Y
3225 container.Rect.W = rect.W
3226 container.Rect.H = rect.H
3227}
3228
3229func (container *Container) NeedScroll() bool {
3230 return container.IdealSize().Y > container.Rect.H

Callers 1

NewContainerFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected