X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsupertux%2Finfo_box_line.hpp;h=56c6bca96822fec87c6eddb322d1ed2cb8756c46;hb=5240d812e12e6b53dc3c36bf313361d2d457382a;hp=ac1f07982a8da544064dbf45b7fa3954f86fad15;hpb=1cda2772a8bd261ef8746e13e10d5d8abbe741d6;p=supertux.git diff --git a/src/supertux/info_box_line.hpp b/src/supertux/info_box_line.hpp index ac1f07982..56c6bca96 100644 --- a/src/supertux/info_box_line.hpp +++ b/src/supertux/info_box_line.hpp @@ -19,13 +19,14 @@ #include #include +#include #include "video/color.hpp" +#include "video/font_ptr.hpp" +#include "video/surface_ptr.hpp" class DrawingContext; -class Font; -class Rect; -class Surface; +class Rectf; /** * Helper class for InfoBox: Represents a line of text @@ -38,17 +39,17 @@ public: InfoBoxLine(char format_char, const std::string& text); ~InfoBoxLine(); - void draw(DrawingContext& context, const Rect& bbox, int layer); + void draw(DrawingContext& context, const Rectf& bbox, int layer); float get_height(); static const std::vector split(const std::string& text, float width); private: InfoBoxLine::LineType lineType; - Font* font; + FontPtr font; Color color; std::string text; - Surface* image; + SurfacePtr image; private: InfoBoxLine(const InfoBoxLine&);