mirror of
https://github.com/br0xen/termbox-util.git
synced 2024-11-29 16:13:14 +00:00
A couple changes
This commit is contained in:
parent
1df4d54fd1
commit
20888aa066
@ -130,6 +130,11 @@ func (i *Frame) GetLastControl() termboxControl {
|
|||||||
return i.controls[len(i.controls)-1]
|
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,
|
// DrawControl figures out the relative position of the control,
|
||||||
// sets it, draws it, then resets it.
|
// sets it, draws it, then resets it.
|
||||||
func (i *Frame) DrawControl(t termboxControl) {
|
func (i *Frame) DrawControl(t termboxControl) {
|
||||||
|
@ -25,6 +25,8 @@ func (i *Label) IsTabSkipped() bool {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (i *Label) SetTabSkip(v bool) {}
|
||||||
|
|
||||||
// GetID returns this control's ID
|
// GetID returns this control's ID
|
||||||
func (i *Label) GetID() string { return i.id }
|
func (i *Label) GetID() string { return i.id }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user