#ifndef FORM_SECTION_HPP_
#define FORM_SECTION_HPP_

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

/**
 * @brief A form section with a background.
 */
class FormSection : public CompoundWidget
{
private:
    static constexpr int margin = 2;

public:
    /**
     * @brief Construct this form section with the sepcified child.
     */
    FormSection(Widget *child);

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

#endif