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
|
|
|
|
|
2024-07-19 02:55:05 +00:00
|
|
|
IsVisible bool
|
|
|
|
Position Vector2D
|
|
|
|
Size Vector2D
|
2024-07-18 13:03:21 +00:00
|
|
|
}
|
|
|
|
|
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
|
|
|
|
}
|