giorun

package module
v0.0.0-...-1f748fc Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: MIT Imports: 11 Imported by: 1

README

giorun

Simplified runtime and project structure for Gio UI
https://github.com/gioui/gio

Usage

see examples

Documentation

Index

Constants

View Source
const (
	WatcherTimeoutDefault = 5 * time.Millisecond
)

Variables

View Source
var (
	WatcherFunc            func() invalidateWatcher
	LayoutUniformInsetFunc func() layout.Inset
	WidgetListFunc         func() layout.List
)

Functions

This section is empty.

Types

type Run

type Run struct {
	// contains filtered or unexported fields
}

Run wrap gioui application

func NewRun

func NewRun(widgets []runWidget.Item, gioOpts []app.Option) *Run

func (*Run) Display

func (ui *Run) Display()

Display show app window after init see app.Main for details

func (*Run) InvalidateUI

func (ui *Run) InvalidateUI()

InvalidateUI re Run

func (*Run) Layout

func (ui *Run) Layout(gtx layout.Context, th *material.Theme) layout.Dimensions

Layout set gio ui layout

func (*Run) Loop

func (ui *Run) Loop() error

Directories

Path Synopsis
examples
hello Module

Jump to

Keyboard shortcuts

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