ui/layout,ui/text,ui/widget: shorten Widget function names to W

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-05-16 15:41:43 +02:00
parent 3e5e9b2df2
commit 2d96e760d3
4 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ func (e *Editor) caretWidth() fixed.Int26_6 {
return fixed.Int26_6(oneDp * 64)
}
func (e *Editor) Layout(ops *ui.Ops, cs layout.Constraints) layout.Dimens {
func (e *Editor) W(ops *ui.Ops, cs layout.Constraints) layout.Dimens {
twoDp := int(e.cfg.Pixels(ui.Dp(2)) + 0.5)
e.padLeft, e.padRight = twoDp, twoDp
maxWidth := cs.Width.Max