From e638a9dde4e9912b953cd3cac774ebca79e4c488 Mon Sep 17 00:00:00 2001 From: Greg Date: Thu, 15 Aug 2019 18:36:22 -0400 Subject: [PATCH] Fixup. --- README.md | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 340cdd9..3b9f9b8 100644 --- a/README.md +++ b/README.md @@ -22,13 +22,6 @@ type Widget interface { Layout(Context) Context } -func LayoutWithContext(ctx Context, ws ...Widget) Context { - for _, w := range ws { - ctx = w.Layout(ctx) - } - return ctx -} - type WidgetCombinator func(...Widget) Widget type Enclosure interface { @@ -55,14 +48,13 @@ func (f Flex) Flexible(v float32) Widget { } ... - ctx = giowrap.LayoutWithContext(ctx, - myFlex( + ctx = myFlex( w1, giowrap.Flexible(0.5), w2, giowrap.Flexible(1), w3, - )) + ).Layout(ctx) ctx.Draw() ... ```