1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-16 04:25:23 +00:00
OpenDiablo2/d2core/d2gui/spacer.go
Alex Yatskov 6f2c212417
Continued work on GUI (#316)
* Configuration cleanup

* Cleanup

* Continued UI work
2020-02-24 22:35:21 -05:00

32 lines
500 B
Go

package d2gui
type SpacerStatic struct {
widgetBase
width int
height int
}
func createSpacerStatic(width, height int) *SpacerStatic {
spacer := &SpacerStatic{width: width, height: height}
spacer.SetVisible(true)
return spacer
}
func (s *SpacerStatic) getSize() (int, int) {
return s.width, s.height
}
type SpacerDynamic struct {
widgetBase
}
func createSpacerDynamic() *SpacerDynamic {
spacer := &SpacerDynamic{}
spacer.SetVisible(true)
spacer.SetExpanding(true)
return spacer
}