#ifndef PING_VIEW_HPP_
#define PING_VIEW_HPP_

#include <GraphicsContext/GraphicsContext.hpp>
#include <Widget/Layout/CompoundWidget/CompoundWidget.hpp>
#include <Pinger/Pinger.hpp>

/**
 * @brief A widget which displays the state of a Pinger.
 */
class PingView : public CompoundWidget
{
private:
    Pinger& pinger;

public:
    PingView(Pinger &pinger);

    virtual void draw(GraphicsContext &context) override;
};

#endif