diff options
| author | faiface <faiface2202@gmail.com> | 2019-05-02 01:01:02 +0200 |
|---|---|---|
| committer | faiface <faiface2202@gmail.com> | 2019-05-02 01:01:02 +0200 |
| commit | 7bbe7dc9618949f2fe023efcb896a70150966e44 (patch) | |
| tree | 26c04eafd111309558272bc453106c63307b61ee /layout | |
| parent | d07cc4a0af7f602fe3d519faca01b3abfce2e9b2 (diff) | |
| download | gui-7bbe7dc9618949f2fe023efcb896a70150966e44.zip | |
revamp the whole thing for a fresh new start
Diffstat (limited to 'layout')
| -rw-r--r-- | layout/interface.go | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/layout/interface.go b/layout/interface.go deleted file mode 100644 index 28b6a01..0000000 --- a/layout/interface.go +++ /dev/null @@ -1,23 +0,0 @@ -package layout - -import ( - "fmt" - "image" - "image/draw" -) - -type EventDrawer interface { - Event() <-chan Event - Draw() chan<- func(draw.Image) image.Rectangle -} - -type Event string - -func Eventf(format string, a ...interface{}) Event { - return Event(fmt.Sprintf(format, a...)) -} - -func (e Event) Matches(format string, a ...interface{}) bool { - _, err := fmt.Sscanf(string(e), format, a...) - return err == nil -} |