#include <string>
#include <vector>
+#include "mspgltk_api.h"
#include "state.h"
namespace Msp {
/**
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<Line> lines;