1
0
mirror of https://github.com/br0xen/termbox-util.git synced 2024-11-25 23:03:13 +00:00

Merge branch 'master' of github.com:br0xen/termbox-util

This commit is contained in:
Brian Buller 2019-03-09 20:40:44 +00:00
commit 27c7bb1808

View File

@ -130,6 +130,11 @@ func (i *Frame) GetLastControl() termboxControl {
return i.controls[len(i.controls)-1]
}
// RemoveAllControls clears the control slice
func (i *Frame) RemoveAllControls() {
i.controls = []termboxControl{}
}
// DrawControl figures out the relative position of the control,
// sets it, draws it, then resets it.
func (i *Frame) DrawControl(t termboxControl) {