From 20888aa06666ba40b908b995156f643a40a1a468 Mon Sep 17 00:00:00 2001 From: Brian Buller Date: Tue, 5 Mar 2019 07:54:26 -0600 Subject: [PATCH] A couple changes --- termbox_frame.go | 5 +++++ termbox_label.go | 2 ++ 2 files changed, 7 insertions(+) diff --git a/termbox_frame.go b/termbox_frame.go index fa1df36..747201f 100644 --- a/termbox_frame.go +++ b/termbox_frame.go @@ -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) { diff --git a/termbox_label.go b/termbox_label.go index 162dfe1..ed57fc4 100644 --- a/termbox_label.go +++ b/termbox_label.go @@ -25,6 +25,8 @@ func (i *Label) IsTabSkipped() bool { return true } +func (i *Label) SetTabSkip(v bool) {} + // GetID returns this control's ID func (i *Label) GetID() string { return i.id }