Gin
Public Types | Public Member Functions | List of all members
WaveformComponent Class Reference

Draws a waveform. More...

Inherits juce::Component.

Public Types

enum  ColourIds { lineColourId = 0x1231e10 , backgroundColourId = 0x1231e11 , traceColourId = 0x1231e12 , envelopeColourId = 0x1231f13 }
 

Public Member Functions

 WaveformComponent ()
 
 ~WaveformComponent () override
 Destructor. More...
 
void setHorizontalZoom (float zoom)
 
void setHorizontalOffset (float offset)
 
void setBuffer (juce::AudioSampleBuffer &buffer)
 
void paint (juce::Graphics &g) override
 
void resized () override
 

Detailed Description

Draws a waveform.

Member Enumeration Documentation

◆ ColourIds

Enumerator
lineColourId 
backgroundColourId 
traceColourId 
envelopeColourId 

Constructor & Destructor Documentation

◆ WaveformComponent()

WaveformComponent::WaveformComponent ( )

◆ ~WaveformComponent()

WaveformComponent::~WaveformComponent ( )
override

Destructor.

Member Function Documentation

◆ setHorizontalZoom()

void WaveformComponent::setHorizontalZoom ( float  zoom)

◆ setHorizontalOffset()

void WaveformComponent::setHorizontalOffset ( float  offset)

◆ setBuffer()

void WaveformComponent::setBuffer ( juce::AudioSampleBuffer &  buffer)

◆ paint()

void WaveformComponent::paint ( juce::Graphics &  g)
override

◆ resized()

void WaveformComponent::resized ( )
override

The documentation for this class was generated from the following file: