ladybird/Applications/SoundPlayer/SampleWidget.h
Till Mayer 112d36bfa0 SoundPlayer: Make sample widget display contents of the whole buffer
The SampleWidget now displays the contents of the whole buffer.
2019-11-04 20:55:46 +01:00

18 lines
346 B
C++

#pragma once
#include <LibGUI/GFrame.h>
class ABuffer;
class SampleWidget final : public GFrame {
C_OBJECT(SampleWidget)
public:
virtual ~SampleWidget() override;
void set_buffer(ABuffer*);
private:
explicit SampleWidget(GWidget* parent);
virtual void paint_event(GPaintEvent&) override;
RefPtr<ABuffer> m_buffer;
};