Skip to content

Commit

Permalink
examples: add some pkg comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Oct 1, 2024
1 parent d570c9d commit 470f4fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/extrawidgets/extrawidgets.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package main presents giu extra widgets (Widgets created in giu, not native to imgui).
package main

import (
Expand All @@ -7,7 +8,7 @@ import (
)

var (
showPD bool = true
showPD = true
radius float32 = 20
stack int32
)
Expand Down
3 changes: 2 additions & 1 deletion examples/rangebuilder/rangebuilder.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package main presents usage of giu.RangeBuilder.
package main

import (
Expand All @@ -21,7 +22,7 @@ func loop() {
),
g.Dummy(0, 8),
g.Label("Below buttons are generated by RangeBuilder"),
g.RangeBuilder("Buttons", []string{"Button1", "Button2", "Button3"}, func(i int, str string) g.Widget {
g.RangeBuilder("Buttons", []string{"Button1", "Button2", "Button3"}, func(_ int, str string) g.Widget {
return g.Button(str).OnClick(func() {
fmt.Println(str, "is clicked")
})
Expand Down
1 change: 1 addition & 0 deletions examples/transparent/transparent.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package main shows how to create a transparent window with custom drawing.
package main

import (
Expand Down

0 comments on commit 470f4fc

Please sign in to comment.