OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
MWGui::TypesetBookImpl Struct Reference
Inheritance diagram for MWGui::TypesetBookImpl:
Collaboration diagram for MWGui::TypesetBookImpl:

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, intPage
 
typedef std::vector< PagePages
 
- Public Types inherited from MWGui::TypesetBook
typedef boost::shared_ptr
< TypesetBook
Ptr
 
typedef intptr_t InteractiveId
 

Public Member Functions

virtual ~TypesetBookImpl ()
 
Range addContent (BookTypesetter::Utf8Span text)
 
size_t pageCount () const
 Returns the number of pages in the document. More...
 
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
 
StyleImplhitTestWithMargin (int left, int top)
 hit test with a margin for error. only hits on interactive text fragments are reported. More...
 
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 ( )
inlinevirtual

Member Function Documentation

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
inlinevirtual

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

Here is the caller graph for this function:

StyleImpl* MWGui::TypesetBookImpl::hitTestWithMargin ( int  left,
int  top 
)
inline

hit test with a margin for error. only hits on interactive text fragments are reported.

Here is the call graph for this function:

size_t MWGui::TypesetBookImpl::pageCount ( ) const
inlinevirtual

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

Here is the caller graph for this function:

template<typename Visitor >
void MWGui::TypesetBookImpl::visitRuns ( int  top,
int  bottom,
Visitor const &  visitor 
) const
inline

Here is the call graph for this function:

Member Data Documentation

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

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