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

Function NewContainer

gui.go:2999–3011  ·  view source on GitHub ↗
(rect *sdl.FRect, worldSpace bool)

Source from the content-addressed store, hash-verified

2997}
2998
2999func NewContainer(rect *sdl.FRect, worldSpace bool) *Container {
3000 container := &Container{
3001 Rect: &sdl.FRect{},
3002 Rows: []*ContainerRow{},
3003 WorldSpace: worldSpace,
3004 Scrollbar: NewScrollbar(&sdl.FRect{0, 0, 32, 32}, 0, 1, worldSpace, nil),
3005 DisplayScrollbar: !worldSpace,
3006 }
3007
3008 container.SetRectangle(rect)
3009
3010 return container
3011}
3012
3013func (container *Container) Update() {
3014

Callers 3

AddPageMethod · 0.85
newDefaultContentsFunction · 0.85
ConstructMenusFunction · 0.85

Calls 2

SetRectangleMethod · 0.95
NewScrollbarFunction · 0.85

Tested by

no test coverage detected