Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 564 Bytes

README.md

File metadata and controls

34 lines (29 loc) · 564 Bytes

GDUF

Golang Decarative UI Framework based on GTK3.

You can write code in this way:

    core.Window{
		Title: "TestWindow",
		DefaultSize: core.Vector2{
			X: 200,
			Y: 500,
		},
		Body: &core.Column{
			Children:       []core.Element{
				&core.Button{
					Text:    "Here",
					OnClick: func() {
						fmt.Println("Here")
					},
				},
			},
			ElementPadding: 4,
		},
	}

When you want to build your custom widget,you should make sure these functions are in your *widget:

func Build() Element
func Init() error
func Update() error