Skip to content

v0.5.0

Compare
Choose a tag to compare
@AllenDang AllenDang released this 01 Jan 13:12
· 1388 commits to master since this release

Breaking changes

  1. Widget creation now use method chain to set various properties.
    For example:
    Old style widget creation
giu.InputTextMultiline("Text area", &content, 300, 100, 0, nil)
giu.Button("Click Me", func() { fmt.Println("Clicked") })

New style widget creation

giu.InputTextMultiline("Text area", &content).Size(300, 100)
giu.Button("Click Me").OnClick(func() {...})

All xxxV methods are removed.

With method chain, giu becomes more flexible to add properties and events to any widget in future.

  1. Rename MasterWindow.Main(...) to MasterWindow.Run(...).