graphic

package
v0.0.0-...-0307568 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyImageWidget = widget.Image{
	Src:      paint.NewImageOp(image.NewRGBA(image.Rect(0, 0, 256, 256))),
	Scale:    1,
	Position: layout.Center,
}
View Source
var HintTextBody = createTextBody("  Scan the QR code with your mobile device\n")
View Source
var InitialTextBody = createTextBody("  This device and the mobile device must be connected to the same WiFi")
View Source
var ProcessingTextBody = createTextBody("  processing...\n")

Functions

func CreateOutputDirHint

func CreateOutputDirHint(s string) material.LabelStyle

func CreateQrImage

func CreateQrImage(s string) widget.Image

func LayoutButton

func LayoutButton(buttonWidget *widget.Clickable, buttonText string) layout.FlexChild

func LayoutImage

func LayoutImage(qrImage *widget.Image) layout.FlexChild

func LayoutText

func LayoutText(textBody material.LabelStyle) layout.FlexChild

Types

type C

type C = layout.Context

type D

type D = layout.Dimensions

Jump to

Keyboard shortcuts

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