#ifndef FGUI_SCALED_TEXT_HEADER
#define FGUI_SCALED_TEXT_HEADER




#include <allegro5/allegro_color.h>
#include <flare_gui/widget.h>


class FGUIScaledText : public FGUIWidget
{
private:
	ALLEGRO_BITMAP *render;
	std::string font_filename;
	int font_size;
	float render_scale;
	ALLEGRO_COLOR font_color;
	std::string text;

	std::string _get_font_index_str();
	void refresh_render();

public:
	FGUIScaledText(FGUIParent *parent, float x, float y, std::string font_filename, int font_size, std::string text);
	FGUIScaledText(FGUIParent *parent, float x, float y, std::string font_string, std::string text);

	void set_font_color(ALLEGRO_COLOR color);
	void on_draw();
	void set_text(std::string text);
};





#endif