Work
This commit is contained in:
@@ -55,13 +55,14 @@ const (
|
||||
)
|
||||
|
||||
func NewRelativeLayout(id string, s tcell.Style) *RelativeLayout {
|
||||
ret := &RelativeLayout{style: s}
|
||||
ret.Init(id)
|
||||
ret := &RelativeLayout{}
|
||||
ret.Init(id, s)
|
||||
return ret
|
||||
}
|
||||
|
||||
func (w *RelativeLayout) Init(id string) {
|
||||
func (w *RelativeLayout) Init(id string, style tcell.Style) {
|
||||
w.id = id
|
||||
w.style = style
|
||||
w.visible = true
|
||||
}
|
||||
func (w *RelativeLayout) Id() string { return w.id }
|
||||
|
||||
Reference in New Issue
Block a user