gutter

module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2023 License: MIT

README ¶

Gutter 💦

A Flutter inspired UI framework using Go with OpenGL

Documentation

package main

import (
	"github.com/Zephyr75/gutter/test"
	"github.com/Zephyr75/gutter/app"
)

func main() {

  app := app.App {
    Name: "Gutter",
    Width: 800,
    Height: 600,
  }

  app.Run(test.MainWindow)

}
Widgets
Row
ui.Row{
    Style: ui.Style{
        Color: black,
    },
    Children: []ui.UIElement{
        ... 
    },
}
Column
ui.Row{
    Style: ui.Style{
        Color: black,
    },
    Children: []ui.UIElement{
        ... 
    },
}
Button
ui.Button{
  Properties: ui.Properties{
    Size: ui.Size{
      Scale:  ui.ScaleRelative,
      Width:  50,
      Height: 50,
    }, 
  },
  Style: ui.Style{
    BorderWidth: 10,
    BorderColor: white,
    CornerRadius: 25,
    Color: blue,
  },
  Image: "white_on_black.png",
},

Directories ¶

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL