all: rename c to gtx for *layout.Context parameters

Short like `ctx` but not as easily confused with context.Context
values.

Suggested by Larry Clapp.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-09-25 09:31:24 +02:00
parent 4d84f46edb
commit a89c6d1c33
8 changed files with 176 additions and 176 deletions
+2 -2
View File
@@ -68,12 +68,12 @@ const (
)
// Init must be called before Rigid or Flexible.
func (f *Flex) Init(c *Context) *Flex {
func (f *Flex) Init(gtx *Context) *Flex {
if f.mode > modeBegun {
panic("must End the current child before calling Init again")
}
f.mode = modeBegun
f.ctx = c
f.ctx = gtx
f.size = 0
f.rigidSize = 0
f.maxCross = 0