From 2378c9e617f14ece50d7fe36a8a8bdc3cf3eb2d1 Mon Sep 17 00:00:00 2001 From: Brian Buller Date: Fri, 31 Mar 2023 07:27:22 -0500 Subject: [PATCH] Updated widdle api --- ui/widdle_addtagtotimers.go | 2 ++ ui/widdle_manageparts.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ui/widdle_addtagtotimers.go b/ui/widdle_addtagtotimers.go index af79b4f..4b13ce4 100644 --- a/ui/widdle_addtagtotimers.go +++ b/ui/widdle_addtagtotimers.go @@ -136,6 +136,8 @@ func (w *PromptForTagWiddle) Measure() { w.cancelButton.SetWidth(10) w.cancelButton.SetHeight(1) } +func (w *PromptForTagWiddle) SetPos(x, y int) { w.x, w.y = x, y } +func (w *PromptForTagWiddle) SetSize(wdt, hgt int) { w.w, w.h = wdt, hgt } func (w *PromptForTagWiddle) handleTermboxEvent(msg termbox.Event) wandle.Cmd { if msg.Key == termbox.KeyEsc { diff --git a/ui/widdle_manageparts.go b/ui/widdle_manageparts.go index 7af2498..031fbbf 100644 --- a/ui/widdle_manageparts.go +++ b/ui/widdle_manageparts.go @@ -125,6 +125,8 @@ func (w *PartManager) Measure() { w.input.SetWidth(w.w - 2) w.input.SetHeight(1) } +func (w *PartManager) SetPos(x, y int) { w.x, w.y = x, y } +func (w *PartManager) SetSize(wdt, hgt int) { w.w, w.h = wdt, hgt } func (w *PartManager) SetLabel(lbl string) { w.label = lbl } func (w *PartManager) SetType(tp string) { w.typeString = tp }