mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-18 10:26:02 -05:00
32 lines
500 B
Go
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
|
||
|
}
|