summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2022-02-01 13:51:04 +0100
committerRené 'Necoro' Neumann <necoro@necoro.eu>2022-02-01 13:51:04 +0100
commit41f28ae0ced9c1b2ee57116c781b571feb674b7f (patch)
treec24f1d8c45dd07d5b3b9158b1b8c13546dc051d5
parent8adf674209b50bce835dbb05d2f37427ec0192e8 (diff)
downloadengarde-importer-41f28ae0ced9c1b2ee57116c781b571feb674b7f.tar.gz
engarde-importer-41f28ae0ced9c1b2ee57116c781b571feb674b7f.tar.bz2
engarde-importer-41f28ae0ced9c1b2ee57116c781b571feb674b7f.zip
Fix warning
-rw-r--r--gui.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/gui.go b/gui.go
index 7b7908c..10a2d55 100644
--- a/gui.go
+++ b/gui.go
@@ -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()