osci-render/Source/txt/TextParser.h

21 wiersze
525 B
C
Czysty Zwykły widok Historia

2023-02-05 20:36:51 +00:00
#pragma once
#include "../shape/OsciPoint.h"
2023-02-05 20:36:51 +00:00
#include <JuceHeader.h>
#include "../shape/Shape.h"
class OscirenderAudioProcessor;
2023-02-05 20:36:51 +00:00
class TextParser {
public:
TextParser(OscirenderAudioProcessor &p, juce::String text, juce::Font font);
2023-02-05 20:36:51 +00:00
~TextParser();
std::vector<std::unique_ptr<Shape>> draw();
private:
void parse(juce::String text, juce::Font font);
OscirenderAudioProcessor &audioProcessor;
2023-02-05 20:36:51 +00:00
std::vector<std::unique_ptr<Shape>> shapes;
juce::Font lastFont;
juce::String text;
};