diff options
Diffstat (limited to 'widgets/dialog.go')
-rw-r--r-- | widgets/dialog.go | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/widgets/dialog.go b/widgets/dialog.go deleted file mode 100644 index 1af4456a..00000000 --- a/widgets/dialog.go +++ /dev/null @@ -1,24 +0,0 @@ -package widgets - -import ( - "git.sr.ht/~rjarry/aerc/lib/ui" -) - -type Dialog interface { - ui.DrawableInteractive - ContextHeight() (func(int) int, func(int) int) -} - -type dialog struct { - ui.DrawableInteractive - y func(int) int - h func(int) int -} - -func (d *dialog) ContextHeight() (func(int) int, func(int) int) { - return d.y, d.h -} - -func NewDialog(d ui.DrawableInteractive, y func(int) int, h func(int) int) Dialog { - return &dialog{DrawableInteractive: d, y: y, h: h} -} |