OpenMW
Classes | Public Types | Public Member Functions | Public Attributes
MWGui::TypesetBookImpl Struct Reference

List of all members.

Classes

struct  Line
struct  Run
struct  Section
struct  StyleImpl
struct  Typesetter

Public Types

typedef std::vector< uint8_t > Content
typedef std::list< ContentContents
typedef Utf8Stream::Point Utf8Point
typedef std::pair< Utf8Point,
Utf8Point
Range
typedef std::list< StyleImplStyles
typedef std::vector< RunRuns
typedef std::vector< LineLines
typedef std::vector< SectionSections
typedef std::pair< int, int > Page
typedef std::vector< PagePages

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
StyleImplhitTest (int left, int top) const
MyGUI::IFont * affectedFont (StyleImpl *style)

Public Attributes

Pages mPages
Sections mSections
Contents mContents
Styles mStyles
MyGUI::IntRect mRect

Member Typedef Documentation

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::vector<Run> MWGui::TypesetBookImpl::Runs

Constructor & Destructor Documentation

virtual MWGui::TypesetBookImpl::~TypesetBookImpl ( ) [inline, virtual]

Member Function Documentation

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.

template<typename Visitor >
void MWGui::TypesetBookImpl::visitRuns ( int  top,
int  bottom,
MyGUI::IFont *  Font,
Visitor const &  visitor 
) const [inline]
template<typename Visitor >
void MWGui::TypesetBookImpl::visitRuns ( int  top,
int  bottom,
Visitor const &  visitor 
) const [inline]

Member Data Documentation


The documentation for this struct was generated from the following file: