CodingLand/pkg/internal/land/object_ui.go
2024-07-18 22:59:03 +08:00

22 lines
311 B
Go

package land
import "github.com/veandco/go-sdl2/sdl"
type BaseWidget struct {
BaseObject
Position Vector2D
Size Vector2D
}
func (p *BaseWidget) Draw(pen *sdl.Renderer) {
}
func (p *BaseWidget) GetPosition() Vector2D {
return p.Position
}
func (p *BaseWidget) GetSize() Vector2D {
return p.Size
}