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

Draws a wavetable. More...

Inherits juce::Component, and juce::FileDragAndDropTarget.

Public Types

enum  ColourIds {
  lineColourId = 0x3331e10 , backgroundColourId = 0x3331e11 , waveColourId = 0x3331e12 , activeWaveColourId = 0x3331f13 ,
  phaseWaveColourId = 0x3331f14
}
 
enum  Style { a , b }
 

Public Member Functions

 WavetableComponent ()
 
 ~WavetableComponent () override
 
void showPhase (float start, float len)
 
void hidePhase ()
 
void paint (juce::Graphics &g) override
 
void resized () override
 
void setParams (WTOscillator::Params params)
 
void setWavetables (juce::OwnedArray< BandLimitedLookupTable > *)
 
bool isInterestedInFileDrag (const juce::StringArray &files) override
 
void fileDragEnter (const juce::StringArray &files, int x, int y) override
 
void fileDragExit (const juce::StringArray &files) override
 
void filesDropped (const juce::StringArray &files, int x, int y) override
 
void setStyle (Style s)
 

Public Attributes

std::function< void(const juce::File &)> onFileDrop
 

Detailed Description

Draws a wavetable.

Member Enumeration Documentation

◆ ColourIds

Enumerator
lineColourId 
backgroundColourId 
waveColourId 
activeWaveColourId 
phaseWaveColourId 

◆ Style

Enumerator

Constructor & Destructor Documentation

◆ WavetableComponent()

WavetableComponent::WavetableComponent ( )

◆ ~WavetableComponent()

WavetableComponent::~WavetableComponent ( )
override

Member Function Documentation

◆ showPhase()

void WavetableComponent::showPhase ( float  start,
float  len 
)

◆ hidePhase()

void WavetableComponent::hidePhase ( )

◆ paint()

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

◆ resized()

void WavetableComponent::resized ( )
override

◆ setParams()

void WavetableComponent::setParams ( WTOscillator::Params  params)

◆ setWavetables()

void WavetableComponent::setWavetables ( juce::OwnedArray< BandLimitedLookupTable > *  )

◆ isInterestedInFileDrag()

bool WavetableComponent::isInterestedInFileDrag ( const juce::StringArray &  files)
override

◆ fileDragEnter()

void WavetableComponent::fileDragEnter ( const juce::StringArray &  files,
int  x,
int  y 
)
override

◆ fileDragExit()

void WavetableComponent::fileDragExit ( const juce::StringArray &  files)
override

◆ filesDropped()

void WavetableComponent::filesDropped ( const juce::StringArray &  files,
int  x,
int  y 
)
override

◆ setStyle()

void WavetableComponent::setStyle ( Style  s)

Member Data Documentation

◆ onFileDrop

std::function<void (const juce::File&)> WavetableComponent::onFileDrop

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