gui

package
v0.0.0-...-4e4ff22 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2021 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Leland is the open source MuseScore font, distributed under the OFL-1.1
	// license. See https://github.com/MuseScoreFonts/Leland
	Leland *opentype.Font
)

Functions

This section is empty.

Types

type C

type C = layout.Context

type D

type D = layout.Dimensions

type GUI

type GUI struct{}

func New

func New() (*GUI, error)

func (*GUI) ChooseDevice

func (t *GUI) ChooseDevice() device.Device

func (*GUI) ChooseDeviceError

func (t *GUI) ChooseDeviceError(err error)

func (*GUI) DidChooseDevice

func (t *GUI) DidChooseDevice(func(device.Device) error)

func (*GUI) Main

func (g *GUI) Main()

func (*GUI) Start

func (g *GUI) Start() error

type GrandStaff

type GrandStaff struct {
	StaffLineWeight int // Thickness in pixels of staff lines
	StaffLines      int // Number of staff and ledger lines to make space for.
	TopStaffLine    int // Number of ledger lines before the top staff starts (i.e. F).
	BottomStaffLine int // Number of staff and ledger lines where the bottom staff ends (i.e. G).

	T.Time
	T.Key
	// contains filtered or unexported fields
}

GrandStaff is a Gio widget that renders the grand staff.

func (*GrandStaff) Layout

func (g *GrandStaff) Layout(gtx C) D

Jump to

Keyboard shortcuts

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