8000 GitHub - ismiyati/giu: Cross platform rapid GUI for golang based on imgui
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ giu Public
forked from AllenDang/giu

Cross platform rapid GUI for golang based on imgui

License

Notifications You must be signed in to change notification settings

ismiyati/giu

 
 

Repository files navigation

giu

Cross platform rapid GUI framework for golang based on imgui and the great golang binding imgui-go.

Features

Compare to other imgui golang bindings, giu has following features:

  • Live-update during the resizing of OS window (implemented on GLFW 3.3 and OpenGL 3.2).
  • Redraw only when user event occurred. Costs only 0.5% CPU usage with 60FPS.
  • Declarative UI (see examples for more detail).
  • Drop in usage, no need to implement render and platform.
  • Freetype font rendering support.
  • OS clipboard support.

Screenshot

Hello world

package main

import (
    "fmt"

    g "github.com/AllenDang/giu"
)

func onClickMe() {
    fmt.Println("Hello world!")
}

func onImSoCute() {
    fmt.Println("Im sooooooo cute!!")
}

func loop(w *g.MasterWindow) {
    g.SingleWindow(w, "hello world", g.Layout{
        g.Label("Hello world from giu"),
        g.Line(
            g.Button("Click Me", onClickMe),
            g.Button("I'm so cute", onImSoCute)),
        })
}

func main() {
    wnd := g.NewMasterWindow("Hello world", 400, 200, false, nil)
    wnd.Main(loop)
}

Here is result.

Helloworld

Projects using giu

PipeIt is a text transformation, conversion, cleansing and ex 53B8 traction tool.

PipeIt Demo

About

Cross platform rapid GUI for golang based on imgui

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 77.5%
  • C 13.1%
  • Go 9.4%
0