diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2022-02-01 13:51:04 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2022-02-01 13:51:04 +0100 |
commit | 41f28ae0ced9c1b2ee57116c781b571feb674b7f (patch) | |
tree | c24f1d8c45dd07d5b3b9158b1b8c13546dc051d5 /gui.go | |
parent | 8adf674209b50bce835dbb05d2f37427ec0192e8 (diff) | |
download | engarde-importer-41f28ae0ced9c1b2ee57116c781b571feb674b7f.tar.gz engarde-importer-41f28ae0ced9c1b2ee57116c781b571feb674b7f.tar.bz2 engarde-importer-41f28ae0ced9c1b2ee57116c781b571feb674b7f.zip |
Fix warning
Diffstat (limited to '')
-rw-r--r-- | gui.go | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -20,22 +20,22 @@ var ( guiCfg EngardeConfig ) -type gridLayout struct { +type GridLayout struct { size float32 widgets []g.Widget labels []*g.LabelWidget } -type gridLine struct { +type GridLine struct { label string widget g.Widget } -func Line(label string, widget g.Widget) gridLine { - return gridLine{label, widget} +func Line(label string, widget g.Widget) GridLine { + return GridLine{label, widget} } -func Grid(lines ...gridLine) *gridLayout { +func Grid(lines ...GridLine) *GridLayout { var size float32 widgets := make([]g.Widget, len(lines)) labels := make([]*g.LabelWidget, len(lines)) @@ -53,10 +53,10 @@ func Grid(lines ...gridLine) *gridLayout { // add a default padding size = size + 10 - return &gridLayout{size, widgets, labels} + return &GridLayout{size, widgets, labels} } -func (grid *gridLayout) Build() { +func (grid *GridLayout) Build() { for i := range grid.labels { g.AlignTextToFramePadding() grid.labels[i].Build() |