1 #ifndef MWGUI_FORMATTING_H
2 #define MWGUI_FORMATTING_H
4 #include <MyGUI_Colour.h>
28 mAlign(MyGUI::Align::Left | MyGUI::Align::Top)
79 typedef std::pair<int, int>
Page;
80 typedef std::vector<Page>
Pages;
149 const TextStyle & textStyle,
const std::string & text);
162 const std::string & src,
int width,
int height);
Definition: formatting.hpp:44
Definition: formatting.hpp:47
BookTextParser(const std::string &text)
Definition: formatting.cpp:26
int mTextSize
Definition: formatting.hpp:22
Events
Definition: formatting.hpp:39
TextStyle()
Definition: formatting.hpp:13
bool mIgnoreNewlineTags
Definition: formatting.hpp:67
size_t mIndex
Definition: formatting.hpp:63
TextStyle mTextStyle
Definition: formatting.hpp:154
MyGUI::EditBox * mEditBox
Definition: formatting.hpp:155
void flushBuffer()
Definition: formatting.cpp:111
MyGUI::Colour mColour
Definition: formatting.hpp:20
Attributes mAttributes
Definition: formatting.hpp:69
bool isClosingTag() const
Definition: formatting.cpp:122
void registerTag(const std::string &tag, Events type)
Definition: formatting.cpp:41
Definition: formatting.hpp:43
Definition: formatting.hpp:11
bool mIgnoreLineEndings
Definition: formatting.hpp:68
virtual int pageSplit()
Definition: formatting.cpp:427
std::map< std::string, Events > mTagTypes
Definition: formatting.hpp:72
std::map< std::string, std::string > Attributes
Definition: formatting.hpp:38
Definition: formatting.hpp:41
std::string mFont
Definition: formatting.hpp:21
int currentFontHeight() const
Definition: formatting.cpp:413
std::string getReadyText() const
Definition: formatting.cpp:46
Definition: formatting.hpp:42
Events next()
Definition: formatting.cpp:51
void parseTag(std::string tag)
Definition: formatting.cpp:127
virtual int getHeight()
Definition: formatting.cpp:422
std::string mTag
Definition: formatting.hpp:70
std::string mReadyText
Definition: formatting.hpp:65
TextElement(MyGUI::Widget *parent, Paginator &pag, const BlockStyle &blockStyle, const TextStyle &textStyle, const std::string &text)
Definition: formatting.cpp:392
std::string mBuffer
Definition: formatting.hpp:73
Definition: formatting.hpp:35
Definition: formatting.hpp:145
bool mClosingTag
Definition: formatting.hpp:71
Definition: formatting.hpp:45
Definition: formatting.hpp:46
const Attributes & getAttributes() const
Definition: formatting.cpp:117
std::string mText
Definition: formatting.hpp:64