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

Method Rectangle

gui.go:3218–3220  ·  view source on GitHub ↗

func (container *Container) Add(element MenuElement) { container.Elements = append(container.Elements, element) }

()

Source from the content-addressed store, hash-verified

3216// }
3217
3218func (container *Container) Rectangle() *sdl.FRect {
3219 return &sdl.FRect{container.Rect.X, container.Rect.Y, container.Rect.W, container.Rect.H}
3220}
3221
3222func (container *Container) SetRectangle(rect *sdl.FRect) {
3223 container.Rect.X = rect.X

Callers 1

DrawMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected