OpenMW
|
Classes | |
struct | Line |
struct | Run |
struct | Section |
struct | StyleImpl |
struct | Typesetter |
Public Types | |
typedef std::vector< uint8_t > | Content |
typedef std::list< Content > | Contents |
typedef Utf8Stream::Point | Utf8Point |
typedef std::pair< Utf8Point, Utf8Point > | Range |
typedef std::list< StyleImpl > | Styles |
typedef std::vector< Run > | Runs |
typedef std::vector< Line > | Lines |
typedef std::vector< Section > | Sections |
typedef std::pair< int, int > | Page |
typedef std::vector< Page > | Pages |
Public Member Functions | |
virtual | ~TypesetBookImpl () |
Range | addContent (BookTypesetter::Utf8Span text) |
size_t | pageCount () const |
Returns the number of pages in the document. | |
std::pair< unsigned int, unsigned int > | getSize () const |
template<typename Visitor > | |
void | visitRuns (int top, int bottom, MyGUI::IFont *Font, Visitor const &visitor) const |
template<typename Visitor > | |
void | visitRuns (int top, int bottom, Visitor const &visitor) const |
StyleImpl * | hitTest (int left, int top) const |
MyGUI::IFont * | affectedFont (StyleImpl *style) |
Public Attributes | |
Pages | mPages |
Sections | mSections |
Contents | mContents |
Styles | mStyles |
MyGUI::IntRect | mRect |
typedef std::vector<uint8_t> MWGui::TypesetBookImpl::Content |
typedef std::vector<Line> MWGui::TypesetBookImpl::Lines |
typedef std::pair<int, int> MWGui::TypesetBookImpl::Page |
typedef std::vector<Page> MWGui::TypesetBookImpl::Pages |
typedef std::pair<Utf8Point, Utf8Point> MWGui::TypesetBookImpl::Range |
typedef std::vector<Run> MWGui::TypesetBookImpl::Runs |
typedef std::vector<Section> MWGui::TypesetBookImpl::Sections |
virtual MWGui::TypesetBookImpl::~TypesetBookImpl | ( | ) | [inline, virtual] |
Range MWGui::TypesetBookImpl::addContent | ( | BookTypesetter::Utf8Span | text | ) | [inline] |
MyGUI::IFont* MWGui::TypesetBookImpl::affectedFont | ( | StyleImpl * | style | ) | [inline] |
std::pair<unsigned int, unsigned int> MWGui::TypesetBookImpl::getSize | ( | ) | const [inline, virtual] |
Return the area covered by the document. The first integer is the maximum with of any line. This is not the largest coordinate of the right edge of any line, it is the largest distance from the left edge to the right edge. The second integer is the height of all text combined prior to pagination.
Implements MWGui::TypesetBook.
StyleImpl* MWGui::TypesetBookImpl::hitTest | ( | int | left, |
int | top | ||
) | const [inline] |
size_t MWGui::TypesetBookImpl::pageCount | ( | ) | const [inline, virtual] |
Returns the number of pages in the document.
Implements MWGui::TypesetBook.
void MWGui::TypesetBookImpl::visitRuns | ( | int | top, |
int | bottom, | ||
MyGUI::IFont * | Font, | ||
Visitor const & | visitor | ||
) | const [inline] |
void MWGui::TypesetBookImpl::visitRuns | ( | int | top, |
int | bottom, | ||
Visitor const & | visitor | ||
) | const [inline] |
MyGUI::IntRect MWGui::TypesetBookImpl::mRect |