f

package
v0.4.14 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2021 License: Unlicense, Unlicense Imports: 11 Imported by: 0

README

fui - Fluent User Interface

A wrapper for Gio GUI library using chained pass-through functions to minimise noisy boilerplate when using Gio

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(err error) bool

func Debug

func Debug(a ...interface{})

func Debugc

func Debugc(fn func() string)

func Debugf

func Debugf(format string, a ...interface{})

func Debugs

func Debugs(a interface{})

func Direction

func Direction() (out *direction)

Direction creates a directional layout that sets its contents to align according to the configured direction (8 cardinal directions and centered)

func Error

func Error(a ...interface{})

func Errorc

func Errorc(fn func() string)

func Errorf

func Errorf(format string, a ...interface{})

func Errors

func Errors(a interface{})

func Fatal

func Fatal(a ...interface{})

func Fatalc

func Fatalc(fn func() string)

func Fatalf

func Fatalf(format string, a ...interface{})

func Fatals

func Fatals(a interface{})

func Flex

func Flex() (out *flex)

Flex creates a new flex layout

func Info

func Info(a ...interface{})

func Infoc

func Infoc(fn func() string)

func Infof

func Infof(format string, a ...interface{})

func Infos

func Infos(a interface{})

func Inset

func Inset(pad int, w layout.Widget) (out *inset)

Inset creates a padded empty space around a widget

func List

func List() (out *list)

List returns a new scrollable list widget

func Stack

func Stack() (out *stack)

Stack starts a chain of widgets to compose into a stack

func Trace

func Trace(a ...interface{})

func Tracec

func Tracec(fn func() string)

func Tracef

func Tracef(format string, a ...interface{})

func Traces

func Traces(a interface{})

func Warn

func Warn(a ...interface{})

func Warnc

func Warnc(fn func() string)

func Warnf

func Warnf(format string, a ...interface{})

func Warns

func Warns(a interface{})

Types

type Window

type Window struct {
	Ctx    layout.Context
	Theme  *p9.Theme
	Window *app.Window

	Width  *int // stores the width at the beginning of render
	Height *int
	// contains filtered or unexported fields
}

func NewWindow

func NewWindow(th *p9.Theme) (out *Window)

NewWindow creates a new window

func (*Window) Open

func (w *Window) Open() (out *Window)

Open sets the window options and initialise the app.window

func (*Window) Run

func (w *Window) Run(frame func(ctx layout.Context) layout.Dimensions,
	overlay func(ctx layout.Context), destroy func(), quit qu.C) (err error)

func (*Window) Scale

func (w *Window) Scale(s float32) *Window

Scale sets the scale factor for rendering

func (*Window) Size

func (w *Window) Size(width, height float32) (out *Window)

Size sets the dimensions of the window

func (*Window) Title

func (w *Window) Title(title string) (out *Window)

Title sets the title of the window

Directories

Path Synopsis
examples
flex command
window command

Jump to

Keyboard shortcuts

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