Gin
Loading...
Searching...
No Matches
SynthesiserUsage Class Reference

Control for synth usage. More...

#include <gin_synthesiserusage.h>

Inherits juce::Component, and juce::Timer.

Public Member Functions

 SynthesiserUsage (gin::Synthesiser &s)
void timerCallback () override
void paint (juce::Graphics &g) override
void resized () override

Public Attributes

gin::Synthesiser & synthesiser
int voices = 0
int cpu = 0
juce::Path voicePath { parseSVGPath (gin::Assets::voice) }
juce::Path cpuPath { parseSVGPath (gin::Assets::cpu) }
SVGButton panic { "panic", gin::Assets::panic }

Detailed Description

Control for synth usage.

Constructor & Destructor Documentation

◆ SynthesiserUsage()

SynthesiserUsage::SynthesiserUsage ( gin::Synthesiser & s)

Member Function Documentation

◆ timerCallback()

void SynthesiserUsage::timerCallback ( )
override

References cpu, synthesiser, and voices.

◆ paint()

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

◆ resized()

void SynthesiserUsage::resized ( )
override

References panic.

Member Data Documentation

◆ synthesiser

gin::Synthesiser& SynthesiserUsage::synthesiser

Referenced by SynthesiserUsage(), and timerCallback().

◆ voices

int SynthesiserUsage::voices = 0

Referenced by paint(), and timerCallback().

◆ cpu

int SynthesiserUsage::cpu = 0

Referenced by paint(), and timerCallback().

◆ voicePath

juce::Path SynthesiserUsage::voicePath { parseSVGPath (gin::Assets::voice) }

Referenced by paint().

◆ cpuPath

juce::Path SynthesiserUsage::cpuPath { parseSVGPath (gin::Assets::cpu) }

Referenced by paint().

◆ panic

SVGButton SynthesiserUsage::panic { "panic", gin::Assets::panic }

Referenced by resized(), and SynthesiserUsage().


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