(rect *sdl.FRect, worldSpace bool)
| 2997 | } |
| 2998 | |
| 2999 | func 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 | |
| 3013 | func (container *Container) Update() { |
| 3014 |
no test coverage detected