(rect *sdl.FRect)
| 3220 | } |
| 3221 | |
| 3222 | func (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 | |
| 3229 | func (container *Container) NeedScroll() bool { |
| 3230 | return container.IdealSize().Y > container.Rect.H |