1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-18 02:16:23 -05: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
}