CodingLand/pkg/internal/land/object_ui.go

22 lines
311 B
Go
Raw Normal View History

2024-07-18 13:03:21 +00:00
package land
import "github.com/veandco/go-sdl2/sdl"
2024-07-18 14:59:03 +00:00
type BaseWidget struct {
2024-07-18 13:03:21 +00:00
BaseObject
Position Vector2D
Size Vector2D
}
2024-07-18 14:59:03 +00:00
func (p *BaseWidget) Draw(pen *sdl.Renderer) {
2024-07-18 13:03:21 +00:00
}
2024-07-18 14:59:03 +00:00
func (p *BaseWidget) GetPosition() Vector2D {
2024-07-18 13:03:21 +00:00
return p.Position
}
2024-07-18 14:59:03 +00:00
func (p *BaseWidget) GetSize() Vector2D {
2024-07-18 13:03:21 +00:00
return p.Size
}