X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftext.h;h=6de3573fc6dfda35495b40d303065d412413a599;hb=81c4024fb6acf37df702a803dc4efdf82a81525a;hp=6ddbb231b37871089f90e6cc90ecfa3ba1a735e9;hpb=2aa99730d8c3106deeac1186e057055604835752;p=libs%2Fgltk.git diff --git a/source/text.h b/source/text.h index 6ddbb23..6de3573 100644 --- a/source/text.h +++ b/source/text.h @@ -3,6 +3,7 @@ #include #include +#include "mspgltk_api.h" #include "state.h" namespace Msp { @@ -16,21 +17,21 @@ class Style; /** Stores and renders text. Supports multiline text. */ -class Text +class MSPGLTK_API Text { private: struct Line { - unsigned start; - unsigned bytes; - unsigned length; - unsigned width; + unsigned start = 0; + unsigned bytes = 0; + unsigned length = 0; + unsigned width = 0; }; struct RenderData; struct CoordsToGeomData; - const Style *style; + const Style *style = nullptr; std::string text; std::vector lines;