mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2026-04-19 23:02:43 +00:00
25 lines
429 B
C++
25 lines
429 B
C++
#pragma once
|
|
|
|
#include <imgui.h>
|
|
#include <imgui_internal.h>
|
|
#include <dsp/stream.h>
|
|
#include <mutex>
|
|
|
|
namespace ImGui {
|
|
class SymbolDiagram {
|
|
public:
|
|
SymbolDiagram(float _scale = 1.0f);
|
|
|
|
void draw(const ImVec2& size_arg = ImVec2(0, 0));
|
|
|
|
float* acquireBuffer();
|
|
|
|
void releaseBuffer();
|
|
|
|
private:
|
|
std::mutex bufferMtx;
|
|
float buffer[1024];
|
|
float _scale;
|
|
|
|
};
|
|
} |