waveform

package
v0.0.0-...-84f7cb4 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2022 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Waveform

type Waveform struct {
	widget.BaseWidget // Inherit from BaseWidget

	StretchSamples          bool
	TransparentBackground   bool
	OverrideForeground      bool
	OverrideForegroundColor color.Color
	OverrideBackground      bool
	OverrideBackgroundColor color.Color
	// contains filtered or unexported fields
}

Widget code starts here

A visualisation of an audio stream widget with themed or overridden background and foreground

func NewWaveform

func NewWaveform(data []int32) *Waveform

Create a Widget and Extend (initialiase) the BaseWidget

func (*Waveform) CreateRenderer

func (w *Waveform) CreateRenderer() fyne.WidgetRenderer

Create the renderer. This is called by the fyne application

func (*Waveform) SetMinSize

func (w *Waveform) SetMinSize(newSize fyne.Size)

Set the minsize (default is 200x64)

Jump to

Keyboard shortcuts

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