#ifndef LABEL_H_INCLUDED
#define LABEL_H_INCLUDED

#include "graphics.hpp"
#include "color.h"
#include "widget.h"

/// Statikus szöveg megjelenítésére szolgáló osztály

const char align_left = 1;
const char align_right = 2;
const char align_center = 3;

class label : public widget
{
protected:
    std::string Text;
    Color fontColor;
    Color backgroundColor;
    float marginLeft, marginTop;
    bool visible;
    bool background;
    char align;

    void init();

public:
    label(float x0, float y0, float width0, float height0);
    label(float x0, float y0, float width0, float height0, std::string txt);
    void setText(std::string txt);
    std::string getText() const;
    void setMargin(float mL, float mT);
    void draw() const;
};

#endif // LABEL_H_INCLUDED
